From 61e50510cd029207edba394ea4518c44db96ffad Mon Sep 17 00:00:00 2001 From: iWas-Coder Date: Mon, 7 Oct 2024 17:25:10 +0200 Subject: [PATCH] [WIP] fix: str doesn't need to be static (func called once) --- src/Renderer/EditorLayer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Renderer/EditorLayer.cc b/src/Renderer/EditorLayer.cc index b9a0179..d424864 100644 --- a/src/Renderer/EditorLayer.cc +++ b/src/Renderer/EditorLayer.cc @@ -185,7 +185,7 @@ namespace volt::renderer { } void EditorLayer::Setup(void) const noexcept { - static constexpr auto config_filename { "volt.ini" }; + constexpr auto config_filename { "volt.ini" }; if (not std::filesystem::exists(config_filename) or not std::filesystem::is_regular_file(config_filename)) { if (not ChangeDirectory(GetApplicationDirectory())) { VOLT_LOG_WARN("volt::renderer::EditorLayer::Setup :: could not change CWD to Volt's editor binary directory");