diff --git a/lib/filesystem/Filesystem.cpp b/lib/filesystem/Filesystem.cpp index 54c44d574..e89f882d6 100644 --- a/lib/filesystem/Filesystem.cpp +++ b/lib/filesystem/Filesystem.cpp @@ -34,6 +34,8 @@ CFilesystemGenerator::CFilesystemGenerator(std::string prefix, bool extractArchi { } +CFilesystemGenerator::~CFilesystemGenerator() = default; + CFilesystemGenerator::TLoadFunctorMap CFilesystemGenerator::genFunctorMap() { TLoadFunctorMap map; diff --git a/lib/filesystem/Filesystem.h b/lib/filesystem/Filesystem.h index dbda14a5a..cc03f6039 100644 --- a/lib/filesystem/Filesystem.h +++ b/lib/filesystem/Filesystem.h @@ -19,7 +19,7 @@ class CFilesystemList; class JsonNode; /// Helper class that allows generation of a ISimpleResourceLoader entry out of Json config(s) -class DLL_LINKAGE CFilesystemGenerator +class DLL_LINKAGE CFilesystemGenerator : boost::noncopyable { using TLoadFunctor = std::function; using TLoadFunctorMap = std::map; @@ -38,6 +38,7 @@ public: /// prefix = prefix that will be given to file entries in all nodes of this filesystem /// extractArchives = Specifies if Original H3 archives should be extracted to a separate folder CFilesystemGenerator(std::string prefix, bool extractArchives = false); + ~CFilesystemGenerator(); /// loads configuration from json /// config - configuration to load, using format of "filesystem" entry in config/filesystem.json