diff --git a/components/lua_ui/resources.cpp b/components/lua_ui/resources.cpp deleted file mode 100644 index 2bd26a4f63..0000000000 --- a/components/lua_ui/resources.cpp +++ /dev/null @@ -1,18 +0,0 @@ -#include "resources.hpp" - -#include - -namespace LuaUi -{ - std::shared_ptr ResourceManager::registerTexture(TextureData data) - { - TextureResources& list = mTextures[data.mPath]; - list.push_back(std::make_shared(data)); - return list.back(); - } - - void ResourceManager::clear() - { - mTextures.clear(); - } -} diff --git a/components/lua_ui/resources.hpp b/components/lua_ui/resources.hpp index a472f954db..260e8c473f 100644 --- a/components/lua_ui/resources.hpp +++ b/components/lua_ui/resources.hpp @@ -29,8 +29,14 @@ namespace LuaUi class ResourceManager { public: - std::shared_ptr registerTexture(TextureData data); - void clear(); + std::shared_ptr registerTexture(TextureData data) + { + TextureResources& list = mTextures[data.mPath]; + list.push_back(std::make_shared(std::move(data))); + return list.back(); + } + + void clear() { mTextures.clear(); } private: using TextureResources = std::vector>;