diff --git a/Code/Editor/ConfigGroup.cpp b/Code/Editor/ConfigGroup.cpp index 04c92ff155..d65cbf2c3b 100644 --- a/Code/Editor/ConfigGroup.cpp +++ b/Code/Editor/ConfigGroup.cpp @@ -127,7 +127,7 @@ namespace Config case IConfigVar::eType_STRING: { - AZStd::string currentValue = 0; + AZStd::string currentValue; var->Get(¤tValue); node->setAttr(szName, currentValue.c_str()); break; @@ -186,7 +186,7 @@ namespace Config case IConfigVar::eType_STRING: { - AZStd::string currentValue = 0; + AZStd::string currentValue; var->GetDefault(¤tValue); QString readValue(currentValue.c_str()); if (node->getAttr(szName, readValue)) diff --git a/Code/Editor/GameExporter.cpp b/Code/Editor/GameExporter.cpp index 4c9031f08d..784951cc4d 100644 --- a/Code/Editor/GameExporter.cpp +++ b/Code/Editor/GameExporter.cpp @@ -380,12 +380,12 @@ void CGameExporter::ExportFileList(const QString& path, const QString& levelName // that can later be used for map downloads AZStd::string newpath; - QString filename = levelName; - AZStd::string mapname = (filename + ".dds").toUtf8().data(); - AZStd::string metaname = (filename + ".xml").toUtf8().data(); + AZStd::string filename = levelName.toUtf8().data(); + AZStd::string mapname = (filename + ".dds"); + AZStd::string metaname = (filename + ".xml"); XmlNodeRef rootNode = gEnv->pSystem->CreateXmlNode("download"); - rootNode->setAttr("name", filename.toUtf8().data()); + rootNode->setAttr("name", filename.c_str()); rootNode->setAttr("type", "Map"); XmlNodeRef indexNode = rootNode->newChild("index"); if (indexNode)