coverity scan: fix not initialized member in copy constructor.

pull/749/head
Kim Kulling 2016-01-10 20:21:32 +01:00
parent 3033d8c847
commit ec32da512b
1 changed files with 2 additions and 2 deletions

View File

@ -140,7 +140,7 @@ void AllocateFromAssimpHeap::operator delete[] ( void* data) {
// ------------------------------------------------------------------------------------------------ // ------------------------------------------------------------------------------------------------
// Importer constructor. // Importer constructor.
Importer::Importer() Importer::Importer()
{ : pimpl( NULL ) {
// allocate the pimpl first // allocate the pimpl first
pimpl = new ImporterPimpl(); pimpl = new ImporterPimpl();
@ -197,7 +197,7 @@ Importer::~Importer()
// ------------------------------------------------------------------------------------------------ // ------------------------------------------------------------------------------------------------
// Copy constructor - copies the config of another Importer, not the scene // Copy constructor - copies the config of another Importer, not the scene
Importer::Importer(const Importer &other) Importer::Importer(const Importer &other)
{ : pimpl(NULL) {
new(this) Importer(); new(this) Importer();
pimpl->mIntProperties = other.pimpl->mIntProperties; pimpl->mIntProperties = other.pimpl->mIntProperties;