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

Merge pull request #1814 from assimp/cppcheck_fixes

fix cppcheck findings.
Kim Kulling 7 жил өмнө
parent
commit
a0465a1349

+ 1 - 1
code/3DSExporter.cpp

@@ -184,7 +184,7 @@ void ExportScene3DS(const char* pFile, IOSystem* pIOSystem, const aiScene* pScen
 } // end of namespace Assimp
 } // end of namespace Assimp
 
 
 // ------------------------------------------------------------------------------------------------
 // ------------------------------------------------------------------------------------------------
-Discreet3DSExporter:: Discreet3DSExporter(std::shared_ptr<IOStream> outfile, const aiScene* scene)
+Discreet3DSExporter:: Discreet3DSExporter(std::shared_ptr<IOStream> &outfile, const aiScene* scene)
 : scene(scene)
 : scene(scene)
 , writer(outfile)
 , writer(outfile)
 {
 {

+ 1 - 1
code/3DSExporter.h

@@ -67,7 +67,7 @@ namespace Assimp
 // ------------------------------------------------------------------------------------------------
 // ------------------------------------------------------------------------------------------------
 class Discreet3DSExporter {
 class Discreet3DSExporter {
 public:
 public:
-    Discreet3DSExporter(std::shared_ptr<IOStream> outfile, const aiScene* pScene);
+    Discreet3DSExporter(std::shared_ptr<IOStream> &outfile, const aiScene* pScene);
     ~Discreet3DSExporter();
     ~Discreet3DSExporter();
 
 
 private:
 private: