ソースを参照

Merge pull request #1814 from assimp/cppcheck_fixes

fix cppcheck findings.
Kim Kulling 7 年 前
コミット
a0465a1349
2 ファイル変更2 行追加2 行削除
  1. 1 1
      code/3DSExporter.cpp
  2. 1 1
      code/3DSExporter.h

+ 1 - 1
code/3DSExporter.cpp

@@ -184,7 +184,7 @@ void ExportScene3DS(const char* pFile, IOSystem* pIOSystem, const aiScene* pScen
 } // 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)
 , writer(outfile)
 {

+ 1 - 1
code/3DSExporter.h

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