mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-16 19:00:56 +00:00
Use string.compare instead of String::compare when comparing strings
This commit is contained in:
parent
d50f1f0b81
commit
7dc2521c76
1 changed files with 2 additions and 2 deletions
|
|
@ -1041,7 +1041,7 @@ DefineEngineMethod( VController, sortGroups, void, (),, "( void ) - Sort Groups
|
|||
}
|
||||
|
||||
// Swap?
|
||||
if ( String::compare( groupA->getLabel(), groupB->getLabel() ) > 0 )
|
||||
if ( groupA->getLabel().compare(groupB->getLabel()) > 0 )
|
||||
{
|
||||
// Get Outer Siblings.
|
||||
ITreeNode *prevNode = groupA->mSiblingPrevNode;
|
||||
|
|
@ -1100,7 +1100,7 @@ DefineEngineMethod( VController, sortTracks, void, (),, "( void ) - Sort Tracks
|
|||
}
|
||||
|
||||
// Swap?
|
||||
if ( String::compare( trackA->getLabel(), trackB->getLabel() ) > 0 )
|
||||
if ( trackA->getLabel().compare(trackB->getLabel()) > 0 )
|
||||
{
|
||||
// Get Outer Siblings.
|
||||
ITreeNode *prevNode = trackA->mSiblingPrevNode;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue