From 231181ef92ed155f6d51df88eb5abd78da5ba64c Mon Sep 17 00:00:00 2001 From: OusmBlueNinja <89956790+OusmBlueNinja@users.noreply.github.com> Date: Mon, 12 May 2025 12:17:45 -0500 Subject: [PATCH] Update ProjectManager.cpp --- src/src/core/functions/ProjectManager.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/src/core/functions/ProjectManager.cpp b/src/src/core/functions/ProjectManager.cpp index 3c5b703..f5d6407 100644 --- a/src/src/core/functions/ProjectManager.cpp +++ b/src/src/core/functions/ProjectManager.cpp @@ -130,8 +130,7 @@ bool FileExplorer::Init() std::error_code ec; fs::recursive_directory_iterator it(s_root, fs::directory_options::skip_permission_denied, ec); - fs::recursive_directory_iterator end; - for (; it != end; it.increment(ec)) { + for (const fs::recursive_directory_iterator end; it != end; it.increment(ec)) { if (ec) { Logger::LogWarning("FileExplorer: skipping '%s': %s", it->path().string().c_str(), @@ -179,14 +178,14 @@ void FileExplorer::Show(bool* p_open) flags |= ImGuiTreeNodeFlags_Selected; // 1) icon - ImGui::Image((ImTextureID)(intptr_t)s_folderIcon, ImVec2(16,16)); + ImGui::Image(s_folderIcon, ImVec2(16,16)); ImGui::SameLine(); // 2) label const char* label = (node.path == lastTreeRoot) ? "res://" : node.path.filename().string().c_str(); - bool open = ImGui::TreeNodeEx( + const bool open = ImGui::TreeNodeEx( node.path.string().c_str(), flags, "%s",