mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
A better fix so that every type doesn't have to have its own operator=.
This fixes it in one place and allows many such helpers to be removed.
This commit is contained in:
@@ -491,18 +491,6 @@ STAmount STAmount::operator-(void) const
|
||||
return STAmount(name, mCurrency, mValue, mOffset, mIsNative, !mIsNegative);
|
||||
}
|
||||
|
||||
STAmount& STAmount::operator=(const STAmount& a)
|
||||
{
|
||||
mValue = a.mValue;
|
||||
mOffset = a.mOffset;
|
||||
mIssuer = a.mIssuer;
|
||||
mCurrency = a.mCurrency;
|
||||
mIsNative = a.mIsNative;
|
||||
mIsNegative = a.mIsNegative;
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
STAmount& STAmount::operator=(uint64 v)
|
||||
{ // does not copy name, does not change currency type
|
||||
mOffset = 0;
|
||||
|
||||
Reference in New Issue
Block a user