diff options
author | dbear496 <70439542+dbear496@users.noreply.github.com> | 2024-09-14 17:44:18 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2024-09-16 14:40:23 -0400 |
commit | 62f626fa73bd6832028f43c204c43cf15bd5f409 (patch) | |
tree | 3dfa709b37deb207f86f4f3fb49397f4c804c7bb /src/filters.cc | |
parent | f6750ed89b46926d1f0859f3b25d18ed62ac219e (diff) | |
download | fork-ledger-62f626fa73bd6832028f43c204c43cf15bd5f409.tar.gz fork-ledger-62f626fa73bd6832028f43c204c43cf15bd5f409.tar.bz2 fork-ledger-62f626fa73bd6832028f43c204c43cf15bd5f409.zip |
promote compatability with Boost <1.86.0
Diffstat (limited to 'src/filters.cc')
-rw-r--r-- | src/filters.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/filters.cc b/src/filters.cc index eb397232..71d835e6 100644 --- a/src/filters.cc +++ b/src/filters.cc @@ -238,7 +238,7 @@ void anonymize_posts::render_commodity(amount_t& amt) void anonymize_posts::operator()(post_t& post) { boost::uuids::detail::sha1 sha; - unsigned char message_digest[20]; + boost::uuids::detail::sha1::digest_type message_digest; bool copy_xact_details = false; if (last_xact != post.xact) { @@ -260,7 +260,7 @@ void anonymize_posts::operator()(post_t& post) sha.process_bytes(buf.str().c_str(), buf.str().length()); sha.get_digest(message_digest); - xact.payee = to_hex(message_digest); + xact.payee = digest_to_hex(message_digest, 8); xact.note = none; } else { xact.journal = post.xact->journal; @@ -278,7 +278,7 @@ void anonymize_posts::operator()(post_t& post) sha.process_bytes(buf.str().c_str(), buf.str().length()); sha.get_digest(message_digest); - account_names.push_front(to_hex(message_digest)); + account_names.push_front(digest_to_hex(message_digest, 8)); } account_t * new_account = |