diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-19 11:05:27 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-19 11:05:27 +0100 |
commit | a39791fd400e97f741db2879e17a4d41e854bfd1 (patch) | |
tree | 2136d056505222bbd5deca63a522c2c12535b172 | |
parent | 1eef324dc9ffcd0bc115b283a038cc175f64deb5 (diff) |
editor/imgui: static const member -> constexpr
-rw-r--r-- | editor/app.hpp | 2 | ||||
-rw-r--r-- | editor/imgui.cpp | 2 |
2 files changed, 1 insertions, 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) { |