mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
Get rid of fPlus argument to FormatMoney
It's never used with any other value than false, the default.
This commit is contained in:
parent
4b4b9a8de6
commit
a04bdefbeb
4 changed files with 23 additions and 27 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue