coverity findings: add missing initialization.
authorKim Kulling <kim.kulling@googlemail.com>
Thu, 31 Dec 2015 15:00:19 +0000 (16:00 +0100)
committerKim Kulling <kim.kulling@googlemail.com>
Thu, 31 Dec 2015 15:00:19 +0000 (16:00 +0100)
code/SceneCombiner.cpp
code/glTFImporter.cpp

index 8807abc..b1e199d 100644 (file)
@@ -492,7 +492,7 @@ void SceneCombiner::MergeScenes(aiScene** _dest, aiScene* master,
         // To offset or not to offset, this is the question
         if (n != (int)duplicates[n])
         {
-            // Get full scenegraph copy
+            // Get full scene-graph copy
             Copy( &node, (*cur)->mRootNode );
             OffsetNodeMeshIndices(node,offset[duplicates[n]]);
 
index e8f8db9..90fecdf 100644 (file)
@@ -78,13 +78,14 @@ static const aiImporterDesc desc = {
 
 glTFImporter::glTFImporter() 
 : BaseImporter()
-{
-
+, meshOffsets()
+, embeddedTexIdxs()
+, mScene( NULL ) {
+    // empty
 }
 
-glTFImporter::~glTFImporter()
-{
-
+glTFImporter::~glTFImporter() {
+    // empty
 }
 
 const aiImporterDesc* glTFImporter::GetInfo() const