diff options
author | John Wiegley <johnw@newartisans.com> | 2010-05-26 00:58:04 -0600 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2010-05-26 00:58:04 -0600 |
commit | 04461f49fdc0f70d74172c77843be3e0a9fe313f (patch) | |
tree | 9a6d61007fb16be8a4d372b96d75b46ef69e902c /src/amount.h | |
parent | dd8f4ce88f22f7ec6712738af7cac635e388fd69 (diff) | |
download | fork-ledger-04461f49fdc0f70d74172c77843be3e0a9fe313f.tar.gz fork-ledger-04461f49fdc0f70d74172c77843be3e0a9fe313f.tar.bz2 fork-ledger-04461f49fdc0f70d74172c77843be3e0a9fe313f.zip |
Optimized amount_t::in_place_truncate
Diffstat (limited to 'src/amount.h')
-rw-r--r-- | src/amount.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/amount.h b/src/amount.h index 5c1bca46..ae0e5a69 100644 --- a/src/amount.h +++ b/src/amount.h @@ -346,9 +346,7 @@ public: temp.in_place_truncate(); return temp; } - void in_place_truncate() { - *this = amount_t(to_string()); - } + void in_place_truncate(); /** Yields an amount which has lost all of its extra precision, beyond what the display precision of the commodity would have printed. */ |