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:
JoelKatz
2012-08-19 22:47:59 -07:00
parent 6f5eb015bf
commit aa1f923306
3 changed files with 2 additions and 31 deletions

View File

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