summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolf Bergenheim <ext-wolf.2.bergenheim@nokia.com>2010-09-21 08:30:06 +0300
committerWolf Bergenheim <ext-wolf.2.bergenheim@nokia.com>2010-09-21 08:30:06 +0300
commitdf50f73224f52e44b5f44805ca920113df075b50 (patch)
tree5d83533a9cb41ab945ba1ff71cfaf076845393c3
parent274b11262162a745fd948b8d128002ed20af3fc9 (diff)
downloadlibresourceqt-df50f73224f52e44b5f44805ca920113df075b50.tar.gz
Rewrote constructor to no use other constructor. (Fixes: NB#193007)
-rw-r--r--libresourceqt/libresourceqt.pro2
-rw-r--r--libresourceqt/src/resource-set.cpp7
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<Resource *>)*NumberOfTypes);
}
ResourceSet::~ResourceSet()