summaryrefslogtreecommitdiff
path: root/textual.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-08-17 04:57:38 -0400
committerJohn Wiegley <johnw@newartisans.com>2004-08-17 04:57:38 -0400
commit325cf53ea74f7a7fe51fc30103594a3a92989f37 (patch)
tree4fe4cd9a0a943a6bd7c39c9487bdd0b592c954cd /textual.cc
parent9e235d04a1aa9d38fa6f1503902873d2f7ad8419 (diff)
downloadfork-ledger-325cf53ea74f7a7fe51fc30103594a3a92989f37.tar.gz
fork-ledger-325cf53ea74f7a7fe51fc30103594a3a92989f37.tar.bz2
fork-ledger-325cf53ea74f7a7fe51fc30103594a3a92989f37.zip
several significant speed improvements (removed excessive copying of strings)
Diffstat (limited to 'textual.cc')
-rw-r--r--textual.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/textual.cc b/textual.cc
index 03953141..15aa33e0 100644
--- a/textual.cc
+++ b/textual.cc
@@ -385,13 +385,12 @@ unsigned int parse_textual_journal(std::istream& in, journal_t * journal,
in >> c;
in >> date;
in >> time;
+ date += " ";
+ date += time;
in.getline(line, MAX_LINE);
linenum++;
- date += " ";
- date += time;
-
struct std::tm when;
if (strptime(date.c_str(), "%Y/%m/%d %H:%M:%S", &when)) {
entry_t * curr = new entry_t;