diff options
author | John Wiegley <johnw@newartisans.com> | 2007-05-02 03:04:40 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 03:38:35 -0400 |
commit | 76b2066b8ba41f51e8199bd91d93508cf464558c (patch) | |
tree | 500c5b3f38c881a0c9088f1066be91082b4858a5 /src/report.cc | |
parent | 230e03166f061387e7e25591bd2df6acad4195ee (diff) | |
download | fork-ledger-76b2066b8ba41f51e8199bd91d93508cf464558c.tar.gz fork-ledger-76b2066b8ba41f51e8199bd91d93508cf464558c.tar.bz2 fork-ledger-76b2066b8ba41f51e8199bd91d93508cf464558c.zip |
More work to use boost/operators.hpp.
Diffstat (limited to 'src/report.cc')
-rw-r--r-- | src/report.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/report.cc b/src/report.cc index 2d49b62b..65ceabd1 100644 --- a/src/report.cc +++ b/src/report.cc @@ -20,16 +20,16 @@ void report_t::abbrev(value_t& result, xml::xpath_t::scope_t * locals) if (locals->args.size() < 2) throw_(std::logic_error, "usage: abbrev(STRING, WIDTH [, STYLE, ABBREV_LEN])"); - string str = locals->args[0].to_string(); + string str = locals->args[0].string_value(); long wid = locals->args[1]; elision_style_t style = session->elision_style; if (locals->args.size() == 3) - style = (elision_style_t)locals->args[2].to_integer(); + style = (elision_style_t)locals->args[2].integer(); long abbrev_len = session->abbrev_length; if (locals->args.size() == 4) - abbrev_len = locals->args[3].to_integer(); + abbrev_len = locals->args[3].integer(); result.set_string(abbreviate(str, wid, style, true, (int)abbrev_len)); } @@ -39,11 +39,11 @@ void report_t::ftime(value_t&, xml::xpath_t::scope_t * locals) if (locals->args.size() < 1) throw_(std::logic_error, "usage: ftime(DATE [, DATE_FORMAT])"); - moment_t date = locals->args[0].to_datetime(); + moment_t date = locals->args[0].datetime(); string date_format; if (locals->args.size() == 2) - date_format = locals->args[1].to_string(); + date_format = locals->args[1].string_value(); #if 0 // jww (2007-04-18): Need to setup an output facet here else |