Kaydet (Commit) 92a5be6b authored tarafından Eike Rathke's avatar Eike Rathke

implement ScRefCellValue::operator=() without temporary and swap

... just ... why ... was ... that ... ? ...

Change-Id: I1bc1ea12600859872c6d238b1ef6fc55f6ff2e04
üst 708bcf90
...@@ -594,8 +594,8 @@ bool ScRefCellValue::equalsWithoutFormat( const ScRefCellValue& r ) const ...@@ -594,8 +594,8 @@ bool ScRefCellValue::equalsWithoutFormat( const ScRefCellValue& r ) const
ScRefCellValue& ScRefCellValue::operator= ( const ScRefCellValue& r ) ScRefCellValue& ScRefCellValue::operator= ( const ScRefCellValue& r )
{ {
ScRefCellValue aTmp(r); meType = r.meType;
swap(aTmp); mfValue = r.mfValue; // largest member of union
return *this; return *this;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment