diff options
author | John Wiegley <johnw@newartisans.com> | 2004-08-17 04:57:38 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2004-08-17 04:57:38 -0400 |
commit | 325cf53ea74f7a7fe51fc30103594a3a92989f37 (patch) | |
tree | 4fe4cd9a0a943a6bd7c39c9487bdd0b592c954cd /textual.cc | |
parent | 9e235d04a1aa9d38fa6f1503902873d2f7ad8419 (diff) | |
download | fork-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.cc | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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; |