Moves from using dStrCmp to the new String::compare static functions. Keeps things cleaner, consistent, and works with intellisense.

This commit is contained in:
Lukas Aldershaab 2020-10-03 14:37:55 +02:00
parent 76c5e30869
commit c999baf7ed
68 changed files with 168 additions and 144 deletions

View file

@ -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 );