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

@ -2247,7 +2247,7 @@ DefineEngineMethod( PersistenceManager, isDirty, bool, ( const char * objName ),
"Returns true if the SimObject is on the dirty list.")
{
SimObject *dirtyObject = NULL;
if (dStrcmp ( objName,"")!=0)
if (String::compare ( objName,"")!=0)
{
if (!Sim::findObject(objName, dirtyObject))
{
@ -2328,7 +2328,7 @@ DefineEngineMethod( PersistenceManager, saveDirtyObject, bool, (const char * obj
"Save a dirty SimObject to it's file.")
{
SimObject *dirtyObject = NULL;
if (dStrcmp ( objName, "")!=0)
if (String::compare ( objName, "")!=0)
{
if (!Sim::findObject(objName, dirtyObject))
{
@ -2353,7 +2353,7 @@ DefineEngineMethod( PersistenceManager, removeObjectFromFile, void, (const char
the one it was created in.")
{
SimObject *dirtyObject = NULL;
if (dStrcmp ( objName , "")!=0)
if (String::compare ( objName , "")!=0)
{
if (!Sim::findObject(objName, dirtyObject))
{