diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-12-11 06:07:14 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-12-11 06:07:14 +0100 |
commit | a8e63822eee34fdf409e09cdd591ffd987f6239b (patch) | |
tree | 248f28cc1e9c2a5f3852045352d2dd126255a0b7 /src | |
parent | cd006bb9a4db0b0410ccabce56b32b4d49ecdff2 (diff) |
a
Diffstat (limited to 'src')
-rw-r--r-- | src/wall-atlas.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/wall-atlas.cpp b/src/wall-atlas.cpp index 443ebd92..2a3cc07b 100644 --- a/src/wall-atlas.cpp +++ b/src/wall-atlas.cpp @@ -9,6 +9,8 @@ namespace floormat { +using namespace floormat::Wall; + namespace { Vector2ui get_image_size(const ImageView2D& img) @@ -136,7 +138,7 @@ auto wall_atlas::group(size_t dir, Group_ gr) const -> const Group* { return gro auto wall_atlas::group(size_t dir, size_t group) const -> const Group* { - fm_assert(group < (size_t)Group_::COUNT); + fm_assert(group < Group_COUNT); const auto* const set_ = direction(dir); if (!set_) return {}; @@ -222,8 +224,8 @@ Group& Direction::group(size_t i) bool Frame::operator==(const Frame&) const noexcept = default; bool Direction::operator==(const Direction&) const noexcept = default; -bool Info::operator==(const floormat::Wall::Info&) const noexcept = default; -bool DirArrayIndex::operator==(const floormat::Wall::DirArrayIndex&) const noexcept = default; +bool Info::operator==(const Info&) const noexcept = default; +bool DirArrayIndex::operator==(const DirArrayIndex&) const noexcept = default; #if 1 bool Group::operator==(const Group&) const noexcept = default; |