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/stats.cc | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'src/stats.cc') diff --git a/src/stats.cc b/src/stats.cc index 0966fee2..a12420b6 100644 --- a/src/stats.cc +++ b/src/stats.cc @@ -55,15 +55,12 @@ value_t report_statistics(call_scope_t& args) assert(is_valid(statistics.earliest_post)); assert(is_valid(statistics.latest_post)); - { - straccstream accum; - out << ACCUM(accum << _("Time period: %1 to %2 (%3 days)") - << format_date(statistics.earliest_post) - << format_date(statistics.latest_post) - << (statistics.latest_post - - statistics.earliest_post).days()) - << std::endl << std::endl; - } + out << format(_f("Time period: %1% to %2% (%3% days)") + % format_date(statistics.earliest_post) + % format_date(statistics.latest_post) + % (statistics.latest_post - + statistics.earliest_post).days()) + << std::endl << std::endl; out << _(" Files these postings came from:") << std::endl; -- cgit v1.2.3