diff options
Diffstat (limited to 'loader/wall-atlas.cpp')
-rw-r--r-- | loader/wall-atlas.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/loader/wall-atlas.cpp b/loader/wall-atlas.cpp index 8b2acb09..dbf71c47 100644 --- a/loader/wall-atlas.cpp +++ b/loader/wall-atlas.cpp @@ -3,6 +3,7 @@ #include "loader/wall-cell.hpp" #include "loader/wall-traits.hpp" #include "loader/atlas-loader.inl" +#include "compat/borrowed-ptr.inl" #include <Corrade/Containers/Array.h> #include <Corrade/Containers/StringIterable.h> #include <Magnum/Trade/ImageData.h> @@ -12,8 +13,7 @@ namespace floormat::loader_detail { template class atlas_loader<class wall_atlas>; -std::shared_ptr<class wall_atlas> -loader_impl::get_wall_atlas(StringView name) noexcept(false) +bptr<class wall_atlas> loader_impl::get_wall_atlas(StringView name) noexcept(false) { return _wall_loader->make_atlas(name, {}); } @@ -33,7 +33,7 @@ const wall_cell& loader_impl::invalid_wall_atlas() return _wall_loader->get_invalid_atlas(); } -const std::shared_ptr<class wall_atlas>& +const bptr<class wall_atlas>& loader_impl::wall_atlas(StringView filename, loader_policy policy) noexcept(false) { return _wall_loader->get_atlas(filename, policy); |