mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-20 03:45:26 +00:00
Replaced StringTable->insert("") with StringTable->EmptyString()
This commit is contained in:
parent
bcc5459818
commit
27e2871b01
33 changed files with 304 additions and 304 deletions
|
|
@ -38,7 +38,7 @@ GuiGameListMenuCtrl::GuiGameListMenuCtrl()
|
|||
VECTOR_SET_ASSOCIATION(mRows);
|
||||
|
||||
// initialize the control callbacks
|
||||
mCallbackOnA = StringTable->insert("");
|
||||
mCallbackOnA = StringTable->EmptyString();
|
||||
mCallbackOnB = mCallbackOnA;
|
||||
mCallbackOnX = mCallbackOnA;
|
||||
mCallbackOnY = mCallbackOnA;
|
||||
|
|
@ -572,7 +572,7 @@ StringTableEntry GuiGameListMenuCtrl::getRowLabel(S32 rowIndex) const
|
|||
if (! isValidRowIndex(rowIndex))
|
||||
{
|
||||
// not a valid row index, don't do anything
|
||||
return StringTable->insert("");
|
||||
return StringTable->EmptyString();
|
||||
}
|
||||
return mRows[rowIndex]->mLabel;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1530,7 +1530,7 @@ void GuiListBoxCtrl::_mirror()
|
|||
|
||||
StringTableEntry GuiListBoxCtrl::_makeMirrorItemName( SimObject *inObj )
|
||||
{
|
||||
StringTableEntry outName = StringTable->insert("");
|
||||
StringTableEntry outName = StringTable->EmptyString();
|
||||
|
||||
if ( mMakeNameCallback.isNotEmpty() )
|
||||
{
|
||||
|
|
@ -1634,4 +1634,4 @@ void GuiListBoxCtrl::removeFilteredItem( String item )
|
|||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -251,7 +251,7 @@ GuiMLTextCtrl::GuiMLTextCtrl()
|
|||
mIsEditCtrl( false ),
|
||||
mCursorPosition( false ),
|
||||
mMaxBufferSize( -1 ),
|
||||
mInitialText( StringTable->insert("") ),
|
||||
mInitialText( StringTable->EmptyString() ),
|
||||
mSelectionActive( false ),
|
||||
mSelectionStart( 0 ),
|
||||
mSelectionEnd( 0 ),
|
||||
|
|
@ -267,7 +267,7 @@ GuiMLTextCtrl::GuiMLTextCtrl()
|
|||
mFontList( NULL )
|
||||
{
|
||||
mActive = true;
|
||||
//mInitialText = StringTable->insert("");
|
||||
//mInitialText = StringTable->EmptyString();
|
||||
Sim::findObject("InputDeniedSound", mDeniedSound);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -277,7 +277,7 @@ GuiPopUpMenuCtrl::GuiPopUpMenuCtrl(void)
|
|||
mRenderScrollInNA = false; // Added
|
||||
mBackgroundCancel = false; // Added
|
||||
mReverseTextList = false; // Added - Don't reverse text list if displaying up
|
||||
mBitmapName = StringTable->insert(""); // Added
|
||||
mBitmapName = StringTable->EmptyString(); // Added
|
||||
mBitmapBounds.set(16, 16); // Added
|
||||
mIdMax = -1;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -328,7 +328,7 @@ GuiPopUpMenuCtrlEx::GuiPopUpMenuCtrlEx(void)
|
|||
mRenderScrollInNA = false; // Added
|
||||
mBackgroundCancel = false; // Added
|
||||
mReverseTextList = false; // Added - Don't reverse text list if displaying up
|
||||
mBitmapName = StringTable->insert(""); // Added
|
||||
mBitmapName = StringTable->EmptyString(); // Added
|
||||
mBitmapBounds.set(16, 16); // Added
|
||||
mHotTrackItems = false;
|
||||
mIdMax = -1;
|
||||
|
|
|
|||
|
|
@ -54,8 +54,8 @@ ConsoleDocClass( GuiTextCtrl,
|
|||
GuiTextCtrl::GuiTextCtrl()
|
||||
{
|
||||
//default fonts
|
||||
mInitialText = StringTable->insert("");
|
||||
mInitialTextID = StringTable->insert("");
|
||||
mInitialText = StringTable->EmptyString();
|
||||
mInitialTextID = StringTable->EmptyString();
|
||||
mText[0] = '\0';
|
||||
mMaxStrLen = GuiTextCtrl::MAX_STRING_LENGTH;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1684,7 +1684,7 @@ DefineEngineMethod( GuiTextEditCtrl, getText, const char*, (),,
|
|||
"@see GuiControl")
|
||||
{
|
||||
if( !object->hasText() )
|
||||
return StringTable->insert("");
|
||||
return StringTable->EmptyString();
|
||||
|
||||
char *retBuffer = Con::getReturnBuffer( GuiTextEditCtrl::MAX_STRING_LENGTH );
|
||||
object->getText( retBuffer );
|
||||
|
|
|
|||
|
|
@ -845,7 +845,7 @@ GuiTreeViewCtrl::GuiTreeViewCtrl()
|
|||
|
||||
mClearAllOnSingleSelection = true;
|
||||
|
||||
mBitmapBase = StringTable->insert("");
|
||||
mBitmapBase = StringTable->EmptyString();
|
||||
mTexRollover = NULL;
|
||||
mTexSelected = NULL;
|
||||
|
||||
|
|
@ -4746,13 +4746,13 @@ StringTableEntry GuiTreeViewCtrl::getTextToRoot( S32 itemId, const char * delimi
|
|||
if(!item)
|
||||
{
|
||||
Con::errorf(ConsoleLogEntry::General, "GuiTreeViewCtrl::getTextToRoot: invalid start item id!");
|
||||
return StringTable->insert("");
|
||||
return StringTable->EmptyString();
|
||||
}
|
||||
|
||||
if(item->isInspectorData())
|
||||
{
|
||||
Con::errorf(ConsoleLogEntry::General, "GuiTreeViewCtrl::getTextToRoot: cannot get text to root of inspector data items");
|
||||
return StringTable->insert("");
|
||||
return StringTable->EmptyString();
|
||||
}
|
||||
|
||||
char bufferOne[1024];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue