mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
You don't need to customize operator=(const&) since the base class does it for you.
This commit is contained in:
@@ -522,21 +522,6 @@ STAmount STAmount::operator-(void) const
|
||||
return STAmount(name, mCurrency, mIssuer, mValue, mOffset, mIsNative, !mIsNegative);
|
||||
}
|
||||
|
||||
STAmount& STAmount::operator=(const STAmount &a)
|
||||
{
|
||||
if (name == NULL)
|
||||
name = a.name;
|
||||
|
||||
mCurrency = a.mCurrency;
|
||||
mIssuer = a.mIssuer;
|
||||
mValue = a.mValue;
|
||||
mOffset = a.mOffset;
|
||||
mIsNative = a.mIsNative;
|
||||
mIsNegative = a.mIsNegative;
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
STAmount& STAmount::operator=(uint64 v)
|
||||
{ // does not copy name, does not change currency type
|
||||
mOffset = 0;
|
||||
|
||||
@@ -348,7 +348,6 @@ public:
|
||||
STAmount operator-(uint64) const;
|
||||
STAmount operator-(void) const;
|
||||
|
||||
STAmount& operator=(const STAmount&);
|
||||
STAmount& operator+=(const STAmount&);
|
||||
STAmount& operator-=(const STAmount&);
|
||||
STAmount& operator+=(uint64);
|
||||
|
||||
Reference in New Issue
Block a user