2
0
Эх сурвалжийг харах

avoid copying of private struct.

Signed-off-by: Kim Kulling <[email protected]>
Kim Kulling 10 жил өмнө
parent
commit
70aafa478d

+ 5 - 0
code/OpenGEXImporter.cpp

@@ -170,6 +170,11 @@ OpenGEXImporter::RefInfo::RefInfo( aiNode *node, Type type, std::vector<std::str
     // empty
 }
 
+//------------------------------------------------------------------------------------------------
+OpenGEXImporter::RefInfo::~RefInfo() {
+    // empty
+}
+
 //------------------------------------------------------------------------------------------------
 OpenGEXImporter::OpenGEXImporter() 
 : m_meshCache()

+ 5 - 0
code/OpenGEXImporter.h

@@ -126,6 +126,11 @@ private:
         std::vector<std::string> m_Names;
 
         RefInfo( aiNode *node, Type type, std::vector<std::string> &names );
+        ~RefInfo();
+
+    private:
+        RefInfo( const RefInfo & );
+        RefInfo &operator = ( const RefInfo & );
     };
 
     std::vector<aiMesh*> m_meshCache;