Browse Source

Fix CI build

Ivan Savenko 2 years ago
parent
commit
e1c01ca636

+ 0 - 1
lib/PathfinderUtil.h

@@ -11,7 +11,6 @@
 
 #include "TerrainHandler.h"
 #include "mapObjects/CObjectHandler.h"
-#include "mapping/CMapDefines.h"
 #include "CGameState.h"
 
 VCMI_LIB_NAMESPACE_BEGIN

+ 2 - 0
lib/mapping/CMapEditManager.cpp

@@ -25,6 +25,8 @@ CMapUndoManager::CMapUndoManager() :
 {
 }
 
+CMapUndoManager::~CMapUndoManager() = default;
+
 void CMapUndoManager::undo()
 {
 	doOperation(undoStack, redoStack, true);

+ 1 - 0
lib/mapping/CMapEditManager.h

@@ -23,6 +23,7 @@ class DLL_LINKAGE CMapUndoManager : boost::noncopyable
 {
 public:
 	CMapUndoManager();
+	~CMapUndoManager();
 
 	void undo();
 	void redo();

+ 4 - 0
lib/mapping/CMapHeader.cpp

@@ -17,6 +17,8 @@
 #include "../CGeneralTextHandler.h"
 #include "../CHeroHandler.h"
 
+VCMI_LIB_NAMESPACE_BEGIN
+
 SHeroName::SHeroName() : heroId(-1)
 {
 }
@@ -131,3 +133,5 @@ ui8 CMapHeader::levels() const
 {
 	return (twoLevel ? 2 : 1);
 }
+
+VCMI_LIB_NAMESPACE_END

+ 4 - 0
lib/mapping/MapFormat.h

@@ -10,6 +10,8 @@
 
 #pragma once
 
+VCMI_LIB_NAMESPACE_BEGIN
+
 enum class EMapFormat : uint8_t
 {
 	INVALID = 0,
@@ -22,3 +24,5 @@ enum class EMapFormat : uint8_t
 	WOG   = 0x33, // 51
 	VCMI  = 0x64
 };
+
+VCMI_LIB_NAMESPACE_END