formatting operator<()
This commit is contained in:
@@ -122,22 +122,35 @@ struct NoteSkinAndPath
|
|||||||
bool operator<( const NoteSkinAndPath &other ) const
|
bool operator<( const NoteSkinAndPath &other ) const
|
||||||
{
|
{
|
||||||
int cmp = strcmp(sNoteSkin, other.sNoteSkin);
|
int cmp = strcmp(sNoteSkin, other.sNoteSkin);
|
||||||
|
|
||||||
if( cmp < 0 )
|
if( cmp < 0 )
|
||||||
|
{
|
||||||
return true;
|
return true;
|
||||||
|
}
|
||||||
else if( cmp == 0 )
|
else if( cmp == 0 )
|
||||||
|
{
|
||||||
if( sPath < other.sPath )
|
if( sPath < other.sPath )
|
||||||
|
{
|
||||||
return true;
|
return true;
|
||||||
|
}
|
||||||
else if( sPath == other.sPath )
|
else if( sPath == other.sPath )
|
||||||
|
{
|
||||||
if ( pn < other.pn )
|
if ( pn < other.pn )
|
||||||
return true;
|
return true;
|
||||||
else if ( pn == other.pn )
|
else if ( pn == other.pn )
|
||||||
return gc < other.gc;
|
return gc < other.gc;
|
||||||
else
|
else
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user