Revert "Compare function should return int"
This reverts commit 7727982478
.
This commit is contained in:
parent
b22fcf70cd
commit
531a8b9db9
|
@ -417,18 +417,18 @@ int SCH_ITEM::compare( const SCH_ITEM& aOther, int aCompareFlags ) const
|
|||
return m_bodyStyle - aOther.m_bodyStyle;
|
||||
|
||||
if( IsPrivate() != aOther.IsPrivate() )
|
||||
return IsPrivate() < aOther.IsPrivate() ? -1 : 1;
|
||||
return IsPrivate() < aOther.IsPrivate();
|
||||
|
||||
if( GetPosition().x != aOther.GetPosition().x )
|
||||
return GetPosition().x < aOther.GetPosition().x ? -1 : 1;
|
||||
return GetPosition().x < aOther.GetPosition().x;
|
||||
|
||||
if( GetPosition().y != aOther.GetPosition().y )
|
||||
return GetPosition().y < aOther.GetPosition().y ? -1 : 1;
|
||||
return GetPosition().y < aOther.GetPosition().y;
|
||||
|
||||
if( aCompareFlags & SCH_ITEM::COMPARE_FLAGS::EQUALITY )
|
||||
return 0;
|
||||
|
||||
return m_Uuid < aOther.m_Uuid ? -1 : 1;
|
||||
return m_Uuid < aOther.m_Uuid;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue