Remove using namespace beast in base_uint.h

This commit is contained in:
Joe Loser
2018-07-13 21:08:20 -04:00
committed by Nik Bougalis
parent 79d819584f
commit 70d9d88cda
62 changed files with 206 additions and 196 deletions

View File

@@ -39,7 +39,7 @@ IOUAmount::normalize ()
{
if (mantissa_ == 0)
{
*this = zero;
*this = beast::zero;
return;
}
@@ -65,7 +65,7 @@ IOUAmount::normalize ()
if ((exponent_ < minExponent) || (mantissa_ < minMantissa))
{
*this = zero;
*this = beast::zero;
return;
}
@@ -79,10 +79,10 @@ IOUAmount::normalize ()
IOUAmount&
IOUAmount::operator+= (IOUAmount const& other)
{
if (other == zero)
if (other == beast::zero)
return *this;
if (*this == zero)
if (*this == beast::zero)
{
*this = other;
return *this;
@@ -109,7 +109,7 @@ IOUAmount::operator+= (IOUAmount const& other)
if (mantissa_ >= -10 && mantissa_ <= 10)
{
*this = zero;
*this = beast::zero;
return *this;
}
@@ -152,7 +152,7 @@ std::string
to_string (IOUAmount const& amount)
{
// keep full internal accuracy, but make more human friendly if possible
if (amount == zero)
if (amount == beast::zero)
return "0";
int const exponent = amount.exponent ();