From 9592bac00d9506e5e6d7571228d8604ef5cf1a99 Mon Sep 17 00:00:00 2001 From: Nathan Jones Date: Fri, 10 Jul 2009 20:09:11 -0400 Subject: Compilation fixes for gcc 4.4 --- textual.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'textual.cc') diff --git a/textual.cc b/textual.cc index 2033106b..d8973680 100644 --- a/textual.cc +++ b/textual.cc @@ -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'; -- cgit v1.2.3