diff options
author | Nathan Jones <nathanj@insightbb.com> | 2009-07-10 20:09:11 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-07-13 13:34:46 +0100 |
commit | 9592bac00d9506e5e6d7571228d8604ef5cf1a99 (patch) | |
tree | 05113fceee42866b59fde02409c4e384fbe45adc /textual.cc | |
parent | a5d69b6d076f55ad90a0995c00f20560bf8fb1ab (diff) | |
download | fork-ledger-9592bac00d9506e5e6d7571228d8604ef5cf1a99.tar.gz fork-ledger-9592bac00d9506e5e6d7571228d8604ef5cf1a99.tar.bz2 fork-ledger-9592bac00d9506e5e6d7571228d8604ef5cf1a99.zip |
Compilation fixes for gcc 4.4
Diffstat (limited to 'textual.cc')
-rw-r--r-- | textual.cc | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -298,8 +298,8 @@ transaction_t * parse_transaction(char * line, account_t * account, DEBUG_PRINT("ledger.textual.parse", "line " << linenum << ": " << "Parsed a note '" << xact->note << "'"); - if (char * b = std::strchr(xact->note.c_str(), '[')) - if (char * e = std::strchr(xact->note.c_str(), ']')) { + if (const char * b = std::strchr(xact->note.c_str(), '[')) + if (const char * e = std::strchr(xact->note.c_str(), ']')) { char buf[256]; std::strncpy(buf, b + 1, e - b - 1); buf[e - b - 1] = '\0'; |