mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Remove using namespace beast in base_uint.h
This commit is contained in:
@@ -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 ();
|
||||
|
||||
Reference in New Issue
Block a user