aboutsummaryrefslogtreecommitdiff
path: root/src/utilmoneystr.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2015-06-09 18:26:56 +0200
committerWladimir J. van der Laan <[email protected]>2015-06-09 18:38:33 +0200
commit643114f53995c9a662466784953999f073c878ad (patch)
tree8a404dbcf8fa6199b810079be9c9463ca1055b81 /src/utilmoneystr.cpp
parentMerge pull request #6246 (diff)
parentChanges necessary now that zero values accepted in AmountFromValue (diff)
downloaddiscoin-643114f53995c9a662466784953999f073c878ad.tar.xz
discoin-643114f53995c9a662466784953999f073c878ad.zip
Merge pull request #6239
7d8ffac Changes necessary now that zero values accepted in AmountFromValue (Wladimir J. van der Laan) a04bdef Get rid of fPlus argument to FormatMoney (Wladimir J. van der Laan) 4b4b9a8 Don't go through double in AmountFromValue and ValueFromAmount (Wladimir J. van der Laan)
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 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;
}