don't assert on valid return values from strcmp (fix crash in Linux)
This commit is contained in:
@@ -101,13 +101,13 @@ struct NoteSkinAndPath
|
|||||||
CString sPath;
|
CString sPath;
|
||||||
bool operator<( const NoteSkinAndPath &other ) const
|
bool operator<( const NoteSkinAndPath &other ) const
|
||||||
{
|
{
|
||||||
switch( strcmp(sNoteSkin, other.sNoteSkin) )
|
int cmp = strcmp(sNoteSkin, other.sNoteSkin);
|
||||||
{
|
if( cmp < 0 )
|
||||||
case -1: return true;
|
return true;
|
||||||
case 0: return sPath < other.sPath;
|
else if( cmp == 0 )
|
||||||
case 1: return false;
|
return sPath < other.sPath;
|
||||||
default: ASSERT(0); return false;
|
else
|
||||||
}
|
return false;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user