From 01db1970a8ea71fb67676896e0b8b53eb5a96647 Mon Sep 17 00:00:00 2001 From: emerycp Date: Fri, 21 Jul 2023 22:15:31 -0400 Subject: [PATCH] NK-74 - PR Comments --- Editor/src/Windows/FileSystemUI.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Editor/src/Windows/FileSystemUI.cpp b/Editor/src/Windows/FileSystemUI.cpp index 2056ed0b..55d690ef 100644 --- a/Editor/src/Windows/FileSystemUI.cpp +++ b/Editor/src/Windows/FileSystemUI.cpp @@ -179,7 +179,7 @@ namespace Nuake ImGui::EndPopup(); } - std::string openScene = "Open Scene" + std::string("##") + hoverMenuId; + const std::string openScene = "Open Scene" + std::string("##") + hoverMenuId; if (ImGui::IsItemHovered() && ImGui::IsMouseDoubleClicked(0)) { @@ -192,7 +192,7 @@ namespace Nuake if (PopupHelper::DefineDialog(openScene, "Open the scene? \n Changes will not be saved.")) { Ref scene = Scene::New(); - std::string projectPath = file->GetAbsolutePath(); + const std::string projectPath = file->GetAbsolutePath(); if (!scene->Deserialize(FileSystem::ReadFile(projectPath, true))) { Logger::Log("Error failed loading scene: " + projectPath, CRITICAL);