summaryrefslogtreecommitdiff
path: root/src/driver/report.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2007-06-08 04:13:20 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 03:39:08 -0400
commitb7b4c079266e0e9ef18dbe006a4a135643cf890b (patch)
treec1196c1e39dc97024f9b306d564f7b1e0dac84d3 /src/driver/report.cc
parentec850814fdd6424db791ef79cab82eb2a2e5afbe (diff)
downloadfork-ledger-b7b4c079266e0e9ef18dbe006a4a135643cf890b.tar.gz
fork-ledger-b7b4c079266e0e9ef18dbe006a4a135643cf890b.tar.bz2
fork-ledger-b7b4c079266e0e9ef18dbe006a4a135643cf890b.zip
r384@user1022: johnw | 2007-06-08 00:08:53 -0400
Corrected several minor warnings
Diffstat (limited to 'src/driver/report.cc')
-rw-r--r--src/driver/report.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/driver/report.cc b/src/driver/report.cc
index ee3382da..0404adc7 100644
--- a/src/driver/report.cc
+++ b/src/driver/report.cc
@@ -59,13 +59,14 @@ value_t report_t::abbrev(xml::xpath_t::call_scope_t& args)
elision_style_t style = session.elision_style;
if (args.size() == 3)
- style = (elision_style_t)args[2].as_long();
+ style = static_cast<elision_style_t>(args[2].as_long());
long abbrev_len = session.abbrev_length;
if (args.size() == 4)
abbrev_len = args[3].as_long();
- return value_t(abbreviate(str, wid, style, true, (int)abbrev_len), true);
+ return value_t(abbreviate(str, wid, style, true,
+ static_cast<int>(abbrev_len)), true);
}
value_t report_t::ftime(xml::xpath_t::call_scope_t& args)