From f4f3058b8cd75c04080f9b68cb54b9584eafb39f Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 14 May 2012 21:36:42 -0600 Subject: Switch to using Boost.Format --- src/report.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/report.h') diff --git a/src/report.h b/src/report.h index d04b3e15..085cfa48 100644 --- a/src/report.h +++ b/src/report.h @@ -434,7 +434,7 @@ public: OTHER(limit_).on(whence, predicate); } else { throw_(std::invalid_argument, - _("Could not determine beginning of period '%1'") << str); + _f("Could not determine beginning of period '%1%'") % str); } }); @@ -651,8 +651,8 @@ public: parent->terminus = datetime_t(*end); } else { throw_(std::invalid_argument, - _("Could not determine end of period '%1'") - << str); + _f("Could not determine end of period '%1%'") + % str); } }); @@ -770,8 +770,8 @@ public: ledger::epoch = parent->terminus = datetime_t(*begin); } else { throw_(std::invalid_argument, - _("Could not determine beginning of period '%1'") - << str); + _f("Could not determine beginning of period '%1%'") + % str); } }); @@ -1002,7 +1002,7 @@ public: format_t::default_style = format_t::TRUNCATE_TRAILING; else throw_(std::invalid_argument, - _("Unrecognized truncation style: '%1'") << style); + _f("Unrecognized truncation style: '%1%'") % style); format_t::default_style_changed = true; }); -- cgit v1.2.3