diff options
author | John Wiegley <johnw@newartisans.com> | 2009-10-25 21:27:56 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-10-25 21:27:56 -0400 |
commit | 9dadaebfeb461ba795124281018d0f7eac200cf4 (patch) | |
tree | 941243868b1dcacd68cbd52a2f96e40bf70a5d3b /src/filters.cc | |
parent | f35bc939c96c3a3bf09c5881d638b5ba60449c03 (diff) | |
parent | e696bfd913a10edd19f9e35eb1aee2c97b11e7f6 (diff) | |
download | fork-ledger-9dadaebfeb461ba795124281018d0f7eac200cf4.tar.gz fork-ledger-9dadaebfeb461ba795124281018d0f7eac200cf4.tar.bz2 fork-ledger-9dadaebfeb461ba795124281018d0f7eac200cf4.zip |
Merge branch 'next'
Diffstat (limited to 'src/filters.cc')
-rw-r--r-- | src/filters.cc | 24 |
1 files changed, 4 insertions, 20 deletions
diff --git a/src/filters.cc b/src/filters.cc index 967e0843..08e7a22f 100644 --- a/src/filters.cc +++ b/src/filters.cc @@ -133,21 +133,6 @@ void sort_posts::post_accumulated_posts() posts.clear(); } -namespace { - string to_hex(uint_least32_t * message_digest) - { - std::ostringstream buf; - - for(int i = 0; i < 5 ; i++) { - buf.width(8); - buf.fill('0'); - buf << std::hex << message_digest[i]; - break; // only output the first dword - } - return buf.str(); - } -} - void anonymize_posts::operator()(post_t& post) { SHA1 sha; @@ -531,15 +516,14 @@ void subtotal_posts::report_subtotal(const char * spec_fmt, std::ostringstream out_date; if (spec_fmt) { - out_date << format_date(*range_finish, string(spec_fmt)); + out_date << format_date(*range_finish, FMT_CUSTOM, spec_fmt); } else if (date_format) { - string fmt = "- "; - fmt += *date_format; - out_date << format_date(*range_finish, string(fmt)); + out_date << "- " << format_date(*range_finish, FMT_CUSTOM, + date_format->c_str()); } else { - out_date << format_date(*range_finish, std::string("- ") + output_date_format); + out_date << "- " << format_date(*range_finish); } xact_temps.push_back(xact_t()); |