From 0545ce4f59c67fdfb094d5610b66165eacdfe78f Mon Sep 17 00:00:00 2001 From: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com> Date: Thu, 5 Aug 2021 12:46:50 -0700 Subject: [PATCH] More PR comments/fixes Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com> --- Code/Editor/ConfigGroup.cpp | 4 ++-- Code/Editor/GameExporter.cpp | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) 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)