EclMultiplexerMaterialParams: implement correct operator=.

This commit is contained in:
Robert Kloefkorn 2017-03-23 19:48:45 +01:00
parent 0a5a5f7eb1
commit 2f6ae41e2c

View File

@ -91,9 +91,17 @@ public:
{
}
EclMultiplexerMaterialParams(const EclMultiplexerMaterialParams& /*other*/)
EclMultiplexerMaterialParams(const EclMultiplexerMaterialParams& other)
: realParams_()
{
setApproach( other.approach() );
}
EclMultiplexerMaterialParams& operator= ( const EclMultiplexerMaterialParams& other )
{
realParams_.reset();
setApproach( other.approach() );
return *this;
}
void setApproach(EclMultiplexerApproach newApproach)