summaryrefslogtreecommitdiffhomepage
path: root/editor/imgui-editors.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-05-26 15:30:15 +0200
committerStanislaw Halik <sthalik@misaki.pl>2024-05-26 15:30:15 +0200
commit82ab34aa83463179339eb8382edf1c22cacdad61 (patch)
tree3d02aaa7458a4f00e38527c7cfe0f8559398b5d5 /editor/imgui-editors.cpp
parentc3bebd8c3263d67f3b66cab7437bc24f5ea724c8 (diff)
use array_size instead of std::size/arraySize
Diffstat (limited to 'editor/imgui-editors.cpp')
-rw-r--r--editor/imgui-editors.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/imgui-editors.cpp b/editor/imgui-editors.cpp
index 4872f9a2..a2ddbf5b 100644
--- a/editor/imgui-editors.cpp
+++ b/editor/imgui-editors.cpp
@@ -1,5 +1,6 @@
#include "app.hpp"
#include "src/tile-constants.hpp"
+#include "compat/array-size.hpp"
#include "compat/format.hpp"
#include "imgui-raii.hpp"
#include "ground-editor.hpp"
@@ -83,7 +84,7 @@ void draw_editor_tile_pane_atlas(ground_editor& ed, StringView name, const std::
text(" (selected)");
}
const auto len = snformat(buf, "{:d}"_cf, N);
- fm_assert(len < std::size(buf));
+ fm_assert(len < array_size(buf));
ImGui::SameLine(window_width - ImGui::CalcTextSize(buf).x - style.FramePadding.x - 4*dpi[0]);
text({buf, len});
};