From a39791fd400e97f741db2879e17a4d41e854bfd1 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 19 Mar 2023 11:05:27 +0100 Subject: editor/imgui: static const member -> constexpr --- editor/app.hpp | 2 -- editor/imgui.cpp | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/editor/app.hpp b/editor/app.hpp index 7f117f9c..4223f8c9 100644 --- a/editor/app.hpp +++ b/editor/app.hpp @@ -158,8 +158,6 @@ private: bool _pending_popup : 1 = false; bool _render_bboxes : 1 = false; bool _render_clickables : 1 = false; - - static const StringView SCENERY_POPUP_NAME; }; } // namespace floormat diff --git a/editor/imgui.cpp b/editor/imgui.cpp index fd8a5c72..6ac6e7fa 100644 --- a/editor/imgui.cpp +++ b/editor/imgui.cpp @@ -116,7 +116,7 @@ void app::draw_clickables() } } -const StringView app::SCENERY_POPUP_NAME = "##scenery-popup"_s; +static constexpr auto SCENERY_POPUP_NAME = "##scenery-popup"_s; bool app::check_inspector_exists(const popup_target& p) { -- cgit v1.2.3