fix a conceptual problem
This commit is contained in:
parent
84ed5f501d
commit
92c69a9c96
|
@ -247,9 +247,7 @@ void PART::inherit( const PART& other )
|
||||||
{
|
{
|
||||||
contains = other.contains;
|
contains = other.contains;
|
||||||
|
|
||||||
setExtends( other.extends ? new LPID( *other.extends ) : 0 );
|
// @todo copy the inherited drawables, properties, and pins here
|
||||||
|
|
||||||
body = other.body;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -258,8 +256,11 @@ PART& PART::operator=( const PART& other )
|
||||||
owner = other.owner;
|
owner = other.owner;
|
||||||
partName = other.partName;
|
partName = other.partName;
|
||||||
revision = other.revision;
|
revision = other.revision;
|
||||||
|
body = other.body;
|
||||||
|
|
||||||
// maintain inherit() as a partial assignment operator.
|
setExtends( other.extends ? new LPID( *other.extends ) : 0 );
|
||||||
|
|
||||||
|
// maintain in concert with inherit(), which is a partial assignment operator.
|
||||||
inherit( other );
|
inherit( other );
|
||||||
|
|
||||||
return *this;
|
return *this;
|
||||||
|
|
Loading…
Reference in New Issue