From b84f676946941df6f7e8476d77d1db0cbe7736c5 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 20 Apr 2007 02:14:53 +0000 Subject: Did some optimization and memory cleanup --- qif.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'qif.cc') diff --git a/qif.cc b/qif.cc index 75c927f6..8cd332dc 100644 --- a/qif.cc +++ b/qif.cc @@ -11,7 +11,7 @@ namespace ledger { #define MAX_LINE 1024 static char line[MAX_LINE + 1]; -static std::string path; +static string path; static unsigned int src_idx; static unsigned int linenum; @@ -40,7 +40,7 @@ bool qif_parser_t::test(std::istream& in) const unsigned int qif_parser_t::parse(std::istream& in, journal_t * journal, account_t * master, - const std::string *) + const string *) { std::auto_ptr entry; std::auto_ptr amount; @@ -95,7 +95,7 @@ unsigned int qif_parser_t::parse(std::istream& in, std::strcmp(line, "Type:Cat") == 0 || std::strcmp(line, "Type:Class") == 0 || std::strcmp(line, "Type:Memorized") == 0) - throw new parse_error(std::string("QIF files of type ") + line + + throw new parse_error(string("QIF files of type ") + line + " are not supported."); break; -- cgit v1.2.3