summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-03-18 21:08:23 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-03-18 21:08:23 +0100
commit6aaa28ef62e0ebc2b4c2ced4d457c91d36e8a311 (patch)
treedbf110cea76add5c3429d62b58d1e0ba0e7cfaa7 /src
parent0ef4d750d1b3e275c1cb90e18b289d9d4a85da8f (diff)
test/serializer: add new comprehensive test
Diffstat (limited to 'src')
-rw-r--r--src/anim-atlas.cpp4
-rw-r--r--src/anim-atlas.hpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/anim-atlas.cpp b/src/anim-atlas.cpp
index 8ddd73d6..4c94a7af 100644
--- a/src/anim-atlas.cpp
+++ b/src/anim-atlas.cpp
@@ -35,8 +35,8 @@ decltype(anim_atlas::_group_indices) anim_atlas::make_group_indices(const anim_d
}
anim_atlas::anim_atlas() noexcept = default;
-anim_atlas::anim_atlas(StringView name, const ImageView2D& image, anim_def info) noexcept :
- _name{name}, _bitmask{make_bitmask(image)},
+anim_atlas::anim_atlas(String name, const ImageView2D& image, anim_def info) noexcept :
+ _name{std::move(name)}, _bitmask{make_bitmask(image)},
_info{std::move(info)}, _group_indices{make_group_indices(_info)}
{
fm_assert(!_info.groups.empty());
diff --git a/src/anim-atlas.hpp b/src/anim-atlas.hpp
index 64830efa..e84faf70 100644
--- a/src/anim-atlas.hpp
+++ b/src/anim-atlas.hpp
@@ -24,7 +24,7 @@ struct anim_atlas final
using quad = std::array<Vector3, 4>;
anim_atlas() noexcept;
- anim_atlas(StringView name, const ImageView2D& tex, anim_def info) noexcept;
+ anim_atlas(String name, const ImageView2D& tex, anim_def info) noexcept;
~anim_atlas() noexcept;
anim_atlas(anim_atlas&&) noexcept;