From ec32da512be7321ddaa153c5e9da3626f45eb42d Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Sun, 10 Jan 2016 20:21:32 +0100 Subject: [PATCH] coverity scan: fix not initialized member in copy constructor. --- code/Importer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/Importer.cpp b/code/Importer.cpp index f8579e216..3aecac241 100644 --- a/code/Importer.cpp +++ b/code/Importer.cpp @@ -140,7 +140,7 @@ void AllocateFromAssimpHeap::operator delete[] ( void* data) { // ------------------------------------------------------------------------------------------------ // Importer constructor. Importer::Importer() -{ + : pimpl( NULL ) { // allocate the pimpl first pimpl = new ImporterPimpl(); @@ -197,7 +197,7 @@ Importer::~Importer() // ------------------------------------------------------------------------------------------------ // Copy constructor - copies the config of another Importer, not the scene Importer::Importer(const Importer &other) -{ + : pimpl(NULL) { new(this) Importer(); pimpl->mIntProperties = other.pimpl->mIntProperties;