EclMultiplexerMaterialParams: implement correct operator=.
This commit is contained in:
parent
0a5a5f7eb1
commit
2f6ae41e2c
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user