You don't need to customize operator=(const&) since the base class does it for you.

This commit is contained in:
JoelKatz
2012-09-24 14:45:44 -07:00
parent 7ef8001505
commit 9432d35f14
2 changed files with 0 additions and 16 deletions

View File

@@ -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;