summaryrefslogtreecommitdiff
path: root/src/report.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2011-08-18 14:46:36 -0400
committerJohn Wiegley <johnw@newartisans.com>2011-08-18 14:46:36 -0400
commitadd6f6ca2a711e3337f83bd15be5a03e22842591 (patch)
tree7d0735ef510319f1eda492c5d3876bc063eefde5 /src/report.cc
parentbed70c8670cd328447f61439832ffc7b3a7affb4 (diff)
downloadfork-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.cc6
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