diff options
| author | Wladimir J. van der Laan <[email protected]> | 2015-06-04 14:43:02 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2015-06-06 09:30:41 +0200 |
| commit | a04bdefbebf9c6eee12712ccf8ef0b20e993da4a (patch) | |
| tree | 7ee330d97d0d87ff19ed58f45c55e2754760cdb5 /src/utilmoneystr.cpp | |
| parent | Don't go through double in AmountFromValue and ValueFromAmount (diff) | |
| download | discoin-a04bdefbebf9c6eee12712ccf8ef0b20e993da4a.tar.xz discoin-a04bdefbebf9c6eee12712ccf8ef0b20e993da4a.zip | |
Get rid of fPlus argument to FormatMoney
It's never used with any other value than false, the default.
Diffstat (limited to 'src/utilmoneystr.cpp')
| -rw-r--r-- | src/utilmoneystr.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/utilmoneystr.cpp b/src/utilmoneystr.cpp index 2fbc04887..0f3203432 100644 --- a/src/utilmoneystr.cpp +++ b/src/utilmoneystr.cpp @@ -11,7 +11,7 @@ using namespace std; -string FormatMoney(const CAmount& n, bool fPlus) +std::string FormatMoney(const CAmount& n) { // Note: not using straight sprintf here because we do NOT want // localized number formatting. @@ -29,8 +29,6 @@ string FormatMoney(const CAmount& n, bool fPlus) if (n < 0) str.insert((unsigned int)0, 1, '-'); - else if (fPlus && n > 0) - str.insert((unsigned int)0, 1, '+'); return str; } |