formatting operator<()

This commit is contained in:
hanubeki
2014-10-14 16:13:06 +09:00
parent 5a69929f60
commit e9c5549896
+13
View File
@@ -122,22 +122,35 @@ struct NoteSkinAndPath
bool operator<( const NoteSkinAndPath &other ) const
{
int cmp = strcmp(sNoteSkin, other.sNoteSkin);
if( cmp < 0 )
{
return true;
}
else if( cmp == 0 )
{
if( sPath < other.sPath )
{
return true;
}
else if( sPath == other.sPath )
{
if ( pn < other.pn )
return true;
else if ( pn == other.pn )
return gc < other.gc;
else
return false;
}
else
{
return false;
}
}
else
{
return false;
}
}
};