mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-02 20:10:32 +00:00
Compilation fixes for C++20
This commit is contained in:
parent
e16351605b
commit
1940becb2d
40 changed files with 220 additions and 211 deletions
|
|
@ -134,7 +134,7 @@ bool GuiConsoleEditCtrl::onKeyDown(const GuiEvent &event)
|
|||
|
||||
text = String::ToString( "echo(%s);", text.c_str() );
|
||||
|
||||
setText( text );
|
||||
setText( text.utf8() );
|
||||
}
|
||||
|
||||
return Parent::dealWithEnter(false);
|
||||
|
|
|
|||
|
|
@ -3802,7 +3802,7 @@ void GuiTreeViewCtrl::onRenderCell(Point2I offset, Point2I cell, bool, bool )
|
|||
{
|
||||
//Check if we're a SceneObject, and pick the default icon as appropriate
|
||||
|
||||
if (pObject->getClassName() != String("SimGroup"))
|
||||
if (pObject->getClassName() != StringTable->insert("SimGroup"))
|
||||
{
|
||||
item->mIcon = Icon31;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -227,7 +227,7 @@ void GuiPopupMenuTextListCtrl::onMouseUp(const GuiEvent &event)
|
|||
{
|
||||
if (item->mEnabled)
|
||||
{
|
||||
Con::executef(mPopup, "onSelectItem", Con::getIntArg(getSelectedCell().y), item->mText.isNotEmpty() ? item->mText : "");
|
||||
Con::executef(mPopup, "onSelectItem", Con::getIntArg(getSelectedCell().y), item->mText.isNotEmpty() ? item->mText : String(""));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -530,7 +530,7 @@ void GuiShapeEdPreview::setThreadSequence(GuiShapeEdPreview::Thread& thread, TSS
|
|||
|
||||
const char* GuiShapeEdPreview::getThreadSequence() const
|
||||
{
|
||||
return ( mActiveThread >= 0 ) ? mThreads[mActiveThread].seqName : "";
|
||||
return ( mActiveThread >= 0 ) ? mThreads[mActiveThread].seqName.c_str() : "";
|
||||
}
|
||||
|
||||
void GuiShapeEdPreview::refreshThreadSequences()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue