From df50f73224f52e44b5f44805ca920113df075b50 Mon Sep 17 00:00:00 2001 From: Wolf Bergenheim Date: Tue, 21 Sep 2010 08:30:06 +0300 Subject: Rewrote constructor to no use other constructor. (Fixes: NB#193007) --- libresourceqt/libresourceqt.pro | 2 +- libresourceqt/src/resource-set.cpp | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/libresourceqt/libresourceqt.pro b/libresourceqt/libresourceqt.pro index 355a594..8befa6b 100644 --- a/libresourceqt/libresourceqt.pro +++ b/libresourceqt/libresourceqt.pro @@ -38,4 +38,4 @@ pc.files = libresourceqt1.pc pc.path = $${INSTALLBASE}/lib/pkgconfig INSTALLS = target headers pc - + diff --git a/libresourceqt/src/resource-set.cpp b/libresourceqt/src/resource-set.cpp index 55b09f4..6cbee5f 100644 --- a/libresourceqt/src/resource-set.cpp +++ b/libresourceqt/src/resource-set.cpp @@ -16,8 +16,13 @@ ResourceSet::ResourceSet(const QString &applicationClass, QObject * parent, } ResourceSet::ResourceSet(const QString &applicationClass, QObject * parent) + : QObject(parent), resourceClass(applicationClass), resourceEngine(NULL), + audioResource(NULL), autoRelease(false), + alwaysReply(false), initialized(false), pendingAcquire(false), + pendingUpdate(false), pendingAudioProperties(false) { - ResourceSet(applicationClass, parent, false, false); + identifier = resourceSetId++; + memset(resourceSet, 0, sizeof(QPointer)*NumberOfTypes); } ResourceSet::~ResourceSet() -- cgit v1.2.3