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;

View file

@ -538,7 +538,7 @@ VectorF VPath::getMountVelocity( const U32 &pIndex )
void VPath::readFields( void )
{
const char *nodeData = "";
for ( S32 nodeIndex = 0; dStrcmp( nodeData = getDataField( StringTable->insert( avar( "Node%d", nodeIndex ) ), NULL ), "" ) != 0; nodeIndex++ )
for ( S32 nodeIndex = 0; String::compare( nodeData = getDataField( StringTable->insert( avar( "Node%d", nodeIndex ) ), NULL ), "" ) != 0; nodeIndex++ )
{
// Create Node.
VPathNode *node = createNode();