diff options
author | John Wiegley <johnw@newartisans.com> | 2012-05-14 21:36:42 -0600 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2012-05-14 21:44:00 -0600 |
commit | f4f3058b8cd75c04080f9b68cb54b9584eafb39f (patch) | |
tree | eca9ca6ceca001209fb93c05b52e21031280d18c /src/amount.cc | |
parent | 96172669053bbba7263a370f109f70615049a0c6 (diff) | |
download | fork-ledger-f4f3058b8cd75c04080f9b68cb54b9584eafb39f.tar.gz fork-ledger-f4f3058b8cd75c04080f9b68cb54b9584eafb39f.tar.bz2 fork-ledger-f4f3058b8cd75c04080f9b68cb54b9584eafb39f.zip |
Switch to using Boost.Format
Diffstat (limited to 'src/amount.cc')
-rw-r--r-- | src/amount.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/amount.cc b/src/amount.cc index 5e933215..803787e8 100644 --- a/src/amount.cc +++ b/src/amount.cc @@ -397,8 +397,8 @@ int amount_t::compare(const amount_t& amt) const if (has_commodity() && amt.has_commodity() && commodity() != amt.commodity()) { throw_(amount_error, - _("Cannot compare amounts with different commodities: '%1' and '%2'") - << commodity() << amt.commodity()); + _f("Cannot compare amounts with different commodities: '%1%' and '%2%'") + % commodity() % amt.commodity()); } return mpq_cmp(MP(quantity), MP(amt.quantity)); @@ -432,8 +432,8 @@ amount_t& amount_t::operator+=(const amount_t& amt) if (has_commodity() && amt.has_commodity() && commodity() != amt.commodity()) { throw_(amount_error, - _("Adding amounts with different commodities: '%1' != '%2'") - << commodity() << amt.commodity()); + _f("Adding amounts with different commodities: '%1%' != '%2%'") + % commodity() % amt.commodity()); } _dup(); @@ -462,8 +462,8 @@ amount_t& amount_t::operator-=(const amount_t& amt) if (has_commodity() && amt.has_commodity() && commodity() != amt.commodity()) { throw_(amount_error, - _("Subtracting amounts with different commodities: '%1' != '%2'") - << commodity() << amt.commodity()); + _f("Subtracting amounts with different commodities: '%1%' != '%2%'") + % commodity() % amt.commodity()); } _dup(); |