From 4d9a82b720c8ce74b94f43f72ddd819ef21abbdf Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 18 Mar 2023 23:42:07 +0100 Subject: pre-declare integer types without cstddef/cstdint --- editor/tile-editor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'editor/tile-editor.cpp') diff --git a/editor/tile-editor.cpp b/editor/tile-editor.cpp index ffee3b66..4de40ab6 100644 --- a/editor/tile-editor.cpp +++ b/editor/tile-editor.cpp @@ -59,7 +59,7 @@ void tile_editor::clear_selection() _selection_mode = sel_none; } -void tile_editor::select_tile(const std::shared_ptr& atlas, std::size_t variant) +void tile_editor::select_tile(const std::shared_ptr& atlas, size_t variant) { fm_assert(atlas); clear_selection(); @@ -75,7 +75,7 @@ void tile_editor::select_tile_permutation(const std::shared_ptr& atl _permutation = { atlas, {} }; } -bool tile_editor::is_tile_selected(const std::shared_ptr& atlas, std::size_t variant) const +bool tile_editor::is_tile_selected(const std::shared_ptr& atlas, size_t variant) const { return atlas && _selection_mode == sel_tile && _selected_tile && atlas == _selected_tile.atlas && variant == _selected_tile.variant; -- cgit v1.2.3