From 842359474e36d8406305b874e82c12594dbc154c Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 8 Sep 2004 03:33:56 -0400 Subject: optimize python iterations of entries, transactions; use exceptions more --- textual.cc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'textual.cc') diff --git a/textual.cc b/textual.cc index b066fdd0..8f231b5e 100644 --- a/textual.cc +++ b/textual.cc @@ -576,11 +576,8 @@ unsigned int textual_parser_t::parse(std::istream& in, time_commodity->flags |= COMMODITY_STYLE_NOMARKET; } - if (errors > 0) { - std::ostringstream msg; - msg << "Errors parsing file '" << path << "'"; - throw error(msg.str()); - } + if (errors > 0) + throw error(std::string("Errors parsing file '") + path + "'"); return count; } -- cgit v1.2.3