Browse Source

avoid copying of private struct.

Signed-off-by: Kim Kulling <[email protected]>
Kim Kulling 10 năm trước cách đây
mục cha
commit
70aafa478d
2 tập tin đã thay đổi với 10 bổ sung0 xóa
  1. 5 0
      code/OpenGEXImporter.cpp
  2. 5 0
      code/OpenGEXImporter.h

+ 5 - 0
code/OpenGEXImporter.cpp

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

+ 5 - 0
code/OpenGEXImporter.h

@@ -126,6 +126,11 @@ private:
         std::vector<std::string> m_Names;
         std::vector<std::string> m_Names;
 
 
         RefInfo( aiNode *node, Type type, std::vector<std::string> &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;
     std::vector<aiMesh*> m_meshCache;