mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 11:43:49 +00:00
Moves from using dStrCmp to the new String::compare static functions. Keeps things cleaner, consistent, and works with intellisense.
This commit is contained in:
parent
76c5e30869
commit
c999baf7ed
68 changed files with 168 additions and 144 deletions
|
|
@ -391,7 +391,7 @@ DefineEngineMethod(FieldBrushObject, copyFields, void, (const char* simObjName,
|
|||
void FieldBrushObject::copyFields( SimObject* pSimObject, const char* fieldList )
|
||||
{
|
||||
// FieldBrushObject class?
|
||||
if ( dStrcmp(pSimObject->getClassName(), getClassName()) == 0 )
|
||||
if ( String::compare(pSimObject->getClassName(), getClassName()) == 0 )
|
||||
{
|
||||
// Yes, so warn.
|
||||
Con::warnf("FieldBrushObject::copyFields() - Cannot copy FieldBrushObject objects!");
|
||||
|
|
@ -522,7 +522,7 @@ DefineEngineMethod(FieldBrushObject, pasteFields, void, (const char* simObjName)
|
|||
void FieldBrushObject::pasteFields( SimObject* pSimObject )
|
||||
{
|
||||
// FieldBrushObject class?
|
||||
if ( dStrcmp(pSimObject->getClassName(), getClassName()) == 0 )
|
||||
if ( String::compare(pSimObject->getClassName(), getClassName()) == 0 )
|
||||
{
|
||||
// Yes, so warn.
|
||||
Con::warnf("FieldBrushObject::pasteFields() - Cannot paste FieldBrushObject objects!");
|
||||
|
|
@ -575,7 +575,7 @@ void FieldBrushObject::pasteFields( SimObject* pSimObject )
|
|||
staticField.type != AbstractClassRep::DeprecatedFieldType )
|
||||
{
|
||||
// Target field?
|
||||
if ( dStrcmp(staticField.pFieldname, pInternalField) == 0 )
|
||||
if ( String::compare(staticField.pFieldname, pInternalField) == 0 )
|
||||
{
|
||||
// Yes, so set data.
|
||||
pSimObject->setDataField( staticField.pFieldname, NULL, fieldEntry->value );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue