aboutsummaryrefslogtreecommitdiff
path: root/src/utilmoneystr.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2015-06-04 14:43:02 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2015-06-06 09:30:41 +0200
commita04bdefbebf9c6eee12712ccf8ef0b20e993da4a (patch)
tree7ee330d97d0d87ff19ed58f45c55e2754760cdb5 /src/utilmoneystr.cpp
parent4b4b9a8de662e6327f78aaf04a1e83d45713c06a (diff)
downloadbitcoin-a04bdefbebf9c6eee12712ccf8ef0b20e993da4a.tar.xz
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.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/utilmoneystr.cpp b/src/utilmoneystr.cpp
index 2fbc048878..0f3203432f 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;
}