mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-09 15:30:41 +00:00
Replaced StringTable->insert("") with StringTable->EmptyString()
This commit is contained in:
parent
93ab336fb5
commit
ec5efe5411
33 changed files with 1178 additions and 1178 deletions
|
|
@ -32,9 +32,9 @@
|
|||
IMPLEMENT_CONOBJECT( MECreateUndoAction );
|
||||
|
||||
ConsoleDocClass( MECreateUndoAction,
|
||||
"@brief Material Editor create undo instance\n\n"
|
||||
"Not intended for game development, for editors or internal use only.\n\n "
|
||||
"@internal");
|
||||
"@brief Material Editor create undo instance\n\n"
|
||||
"Not intended for game development, for editors or internal use only.\n\n "
|
||||
"@internal");
|
||||
|
||||
MECreateUndoAction::MECreateUndoAction( const UTF8* actionName )
|
||||
: UndoAction( actionName )
|
||||
|
|
@ -62,7 +62,7 @@ DefineEngineMethod( MECreateUndoAction, addObject, void, ( SimObject* obj),,
|
|||
"Add the object being created to an undo action.\n"
|
||||
"@param obj Object being created you want to create the undo for.")
|
||||
{
|
||||
if (obj)
|
||||
if (obj)
|
||||
object->addObject( obj );
|
||||
}
|
||||
|
||||
|
|
@ -117,9 +117,9 @@ void MECreateUndoAction::redo()
|
|||
IMPLEMENT_CONOBJECT( MEDeleteUndoAction );
|
||||
|
||||
ConsoleDocClass( MEDeleteUndoAction,
|
||||
"@brief Material Editor delete undo instance\n\n"
|
||||
"Not intended for game development, for editors or internal use only.\n\n "
|
||||
"@internal");
|
||||
"@brief Material Editor delete undo instance\n\n"
|
||||
"Not intended for game development, for editors or internal use only.\n\n "
|
||||
"@internal");
|
||||
|
||||
MEDeleteUndoAction::MEDeleteUndoAction( const UTF8 *actionName )
|
||||
: UndoAction( actionName )
|
||||
|
|
@ -169,7 +169,7 @@ DefineEngineMethod( MEDeleteUndoAction, deleteObject, void, ( SimObject* obj),,
|
|||
"Delete the object and add it to the undo action.\n"
|
||||
"@param obj Object to delete and add to the undo action.")
|
||||
{
|
||||
if (obj)
|
||||
if (obj)
|
||||
object->deleteObject( obj );
|
||||
}
|
||||
|
||||
|
|
@ -210,16 +210,16 @@ void MEDeleteUndoAction::redo()
|
|||
IMPLEMENT_CONOBJECT( InspectorFieldUndoAction );
|
||||
|
||||
ConsoleDocClass( InspectorFieldUndoAction,
|
||||
"@brief Inspector Field undo action instance\n\n"
|
||||
"Not intended for game development, for editors or internal use only.\n\n "
|
||||
"@internal");
|
||||
"@brief Inspector Field undo action instance\n\n"
|
||||
"Not intended for game development, for editors or internal use only.\n\n "
|
||||
"@internal");
|
||||
|
||||
InspectorFieldUndoAction::InspectorFieldUndoAction()
|
||||
{
|
||||
mObjId = 0;
|
||||
mField = NULL;
|
||||
mSlotName = StringTable->insert("");
|
||||
mArrayIdx = StringTable->insert("");
|
||||
mSlotName = StringTable->EmptyString();
|
||||
mArrayIdx = StringTable->EmptyString();
|
||||
}
|
||||
|
||||
InspectorFieldUndoAction::InspectorFieldUndoAction( const UTF8 *actionName )
|
||||
|
|
@ -228,8 +228,8 @@ InspectorFieldUndoAction::InspectorFieldUndoAction( const UTF8 *actionName )
|
|||
mInspector = NULL;
|
||||
mObjId = 0;
|
||||
mField = NULL;
|
||||
mSlotName = StringTable->insert("");
|
||||
mArrayIdx = StringTable->insert("");
|
||||
mSlotName = StringTable->EmptyString();
|
||||
mArrayIdx = StringTable->EmptyString();
|
||||
}
|
||||
|
||||
void InspectorFieldUndoAction::initPersistFields()
|
||||
|
|
@ -272,4 +272,4 @@ void InspectorFieldUndoAction::undo()
|
|||
// Now save the previous data in this UndoAction
|
||||
// since an undo action must become a redo action and vice-versa
|
||||
mData = data;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue