diff options
author | John Wiegley <johnw@newartisans.com> | 2011-08-18 14:46:36 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2011-08-18 14:46:36 -0400 |
commit | add6f6ca2a711e3337f83bd15be5a03e22842591 (patch) | |
tree | 7d0735ef510319f1eda492c5d3876bc063eefde5 /src/report.cc | |
parent | bed70c8670cd328447f61439832ffc7b3a7affb4 (diff) | |
download | fork-ledger-add6f6ca2a711e3337f83bd15be5a03e22842591.tar.gz fork-ledger-add6f6ca2a711e3337f83bd15be5a03e22842591.tar.bz2 fork-ledger-add6f6ca2a711e3337f83bd15be5a03e22842591.zip |
Removed unused variables
Diffstat (limited to 'src/report.cc')
-rw-r--r-- | src/report.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/report.cc b/src/report.cc index 91b9025d..473308a0 100644 --- a/src/report.cc +++ b/src/report.cc @@ -657,7 +657,8 @@ value_t report_t::fn_quoted(call_scope_t& args) std::ostringstream out; out << '"'; - foreach (const char ch, args.get<string>(0)) { + string arg(args.get<string>(0)); + foreach (const char ch, arg) { if (ch == '"') out << "\\\""; else @@ -672,7 +673,8 @@ value_t report_t::fn_join(call_scope_t& args) { std::ostringstream out; - foreach (const char ch, args.get<string>(0)) { + string arg(args.get<string>(0)); + foreach (const char ch, arg) { if (ch != '\n') out << ch; else |