coverity scan: fix not initialized member in copy constructor.
parent
3033d8c847
commit
ec32da512b
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue