};
MeasuredSize()
- : mMeasuredSize( 0u )
+ : mMeasuredSize( 0u ),
+ mState ( MeasuredSize::State::MEASURED_SIZE_OK )
{
}
MeasuredSize& operator=( const MeasuredSize& rhs )
{
- this->mMeasuredSize = rhs.mMeasuredSize;
- this->mState = rhs.mState;
+ if( this != &rhs )
+ {
+ this->mMeasuredSize = rhs.mMeasuredSize;
+ this->mState = rhs.mState;
+ }
return *this;
}