浏览代码

Fix build

Ivan Savenko 5 月之前
父节点
当前提交
be2ebc8e56
共有 2 个文件被更改,包括 4 次插入1 次删除
  1. 2 0
      lib/filesystem/Filesystem.cpp
  2. 2 1
      lib/filesystem/Filesystem.h

+ 2 - 0
lib/filesystem/Filesystem.cpp

@@ -34,6 +34,8 @@ CFilesystemGenerator::CFilesystemGenerator(std::string prefix, bool extractArchi
 {
 }
 
+CFilesystemGenerator::~CFilesystemGenerator() = default;
+
 CFilesystemGenerator::TLoadFunctorMap CFilesystemGenerator::genFunctorMap()
 {
 	TLoadFunctorMap map;

+ 2 - 1
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<void(const std::string &, const JsonNode &)>;
 	using TLoadFunctorMap = std::map<std::string, TLoadFunctor>;
@@ -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