Moves from using dStrIsEmpty to the new String::isEmpty static function. Keeps things cleaner, consistent, and works with intellisense.

This commit is contained in:
Areloch 2015-06-06 17:40:49 -05:00
parent 8a55feebef
commit 6e8fa7215a
11 changed files with 29 additions and 29 deletions

View file

@ -648,7 +648,7 @@ DefineConsoleMethod(Settings, setValue, void, (const char * settingName, const c
{
StringTableEntry fieldName = StringTable->insert( settingName );
if (!dStrIsEmpty(value))
if (!String::isEmpty(value))
object->setValue( fieldName, value );
else
object->setValue( fieldName );

View file

@ -504,7 +504,7 @@ void UndoManager::popCompound( bool discard )
DefineConsoleMethod(UndoAction, addToManager, void, (const char * undoManager), (""), "action.addToManager([undoManager])")
{
UndoManager *theMan = NULL;
if (!dStrIsEmpty(undoManager))
if (!String::isEmpty(undoManager))
{
SimObject *obj = Sim::findObject(undoManager);
if(obj)