LightApp_DataOwner
::isEqual( const SUIT_DataOwner& obj ) const
{
- const _typeinfo& ti1 = typeid( obj );
- const _typeinfo& ti2 = typeid( *(this) );
-
- if (ti1 != ti2)
- return false;
-
const LightApp_DataOwner* other = dynamic_cast<const LightApp_DataOwner*>( &obj );
return other && entry() == other->entry();
bool operator==( const SUIT_DataOwnerPtr& p1, const SUIT_DataOwnerPtr& p2 )
{
if ( !p1.isNull() && !p2.isNull() )
- return p1->isEqual( *p2 );
+ return (p1->isEqual( *p2 ) && p2->isEqual( *p1 ));
return p1.isNull() && p2.isNull();
}