diff --git a/src/keel/assetmanager.hpp b/src/keel/assetmanager.hpp index 163904d5..8afc49bc 100644 --- a/src/keel/assetmanager.hpp +++ b/src/keel/assetmanager.hpp @@ -38,8 +38,8 @@ class AssetContainer { AssetContainer(AssetContainer const&) = delete; AssetContainer(AssetContainer&&) = delete; - AssetContainer& operator=(AssetContainer const&) = delete; - AssetContainer& operator=(AssetContainer&&) = delete; + AssetContainer &operator=(AssetContainer const&) = delete; + AssetContainer &operator=(AssetContainer&&) = delete; [[nodiscard]] constexpr T *get() noexcept { @@ -196,7 +196,7 @@ class AssetManager { return AssetRef(out.value->get()); } - ox::Result> setAsset(ox::StringView const&assetId, const T &obj) noexcept { + ox::Result> setAsset(ox::StringView const&assetId, T const&obj) noexcept { auto &p = m_cache[assetId]; if (!p) { p = ox::make_unique>(obj); diff --git a/src/keel/module.cpp b/src/keel/module.cpp index 75aecb1f..92e93157 100644 --- a/src/keel/module.cpp +++ b/src/keel/module.cpp @@ -13,7 +13,7 @@ void registerModule(const Module *mod) noexcept { } [[nodiscard]] -const ox::Vector &modules() noexcept { +ox::Vector const&modules() noexcept { return mods; } diff --git a/src/keel/module.hpp b/src/keel/module.hpp index 43626eaf..c786320b 100644 --- a/src/keel/module.hpp +++ b/src/keel/module.hpp @@ -40,6 +40,6 @@ class Module { void registerModule(const Module *mod) noexcept; [[nodiscard]] -const ox::Vector &modules() noexcept; +ox::Vector const&modules() noexcept; }