Convert dStrcmp to String::compare for more cases

This commit is contained in:
Lukas Aldershaab 2020-10-04 00:00:01 +02:00
parent c999baf7ed
commit 197a62f6ea
22 changed files with 45 additions and 45 deletions

View file

@ -162,7 +162,7 @@ namespace VPersistence
}
const char *docVersion = rootElement->Attribute( "Version" );
if ( !docVersion || dStrcmp( VSFVersionString, docVersion ) != 0 )
if ( !docVersion || String::compare( VSFVersionString, docVersion ) != 0 )
{
Con::errorf( "VPersistence::readFile() - Invalid file version." );
return false;

View file

@ -1041,7 +1041,7 @@ DefineEngineMethod( VController, sortGroups, void, (),, "( void ) - Sort Groups
}
// Swap?
if ( dStrcmp( groupA->getLabel(), groupB->getLabel() ) > 0 )
if ( String::compare( groupA->getLabel(), groupB->getLabel() ) > 0 )
{
// Get Outer Siblings.
ITreeNode *prevNode = groupA->mSiblingPrevNode;
@ -1100,7 +1100,7 @@ DefineEngineMethod( VController, sortTracks, void, (),, "( void ) - Sort Tracks
}
// Swap?
if ( dStrcmp( trackA->getLabel(), trackB->getLabel() ) > 0 )
if ( String::compare( trackA->getLabel(), trackB->getLabel() ) > 0 )
{
// Get Outer Siblings.
ITreeNode *prevNode = trackA->mSiblingPrevNode;