Преглед изворни кода

resource: do not include .inl from headers

Daniele Bartolini пре 6 година
родитељ
комит
627a34998a
2 измењених фајлова са 7 додато и 1 уклоњено
  1. 4 0
      src/resource/unit_compiler.cpp
  2. 3 1
      src/resource/unit_compiler.h

+ 4 - 0
src/resource/unit_compiler.cpp

@@ -284,6 +284,10 @@ UnitCompiler::UnitCompiler(CompileOptions& opts)
 	register_component_compiler("animation_state_machine", &compile_animation_state_machine,             1.0f);
 }
 
+UnitCompiler::~UnitCompiler()
+{
+}
+
 Buffer UnitCompiler::read_unit(const char* path)
 {
 	Buffer buf = _opts.read(path);

+ 3 - 1
src/resource/unit_compiler.h

@@ -9,7 +9,6 @@
 
 #if CROWN_CAN_COMPILE
 
-#include "core/containers/hash_map.inl"
 #include "core/containers/types.h"
 #include "core/json/types.h"
 #include "core/strings/string_id.h"
@@ -64,6 +63,9 @@ struct UnitCompiler
 	///
 	UnitCompiler(CompileOptions& opts);
 
+	///
+	~UnitCompiler();
+
 	Buffer read_unit(const char* name);
 	s32 compile_unit(const char* path);
 	s32 compile_unit_from_json(const char* json);