summaryrefslogtreecommitdiff
path: root/libresourceqt
diff options
context:
space:
mode:
authorWolf Bergenheim <ext-wolf.2.bergenheim@nokia.com>2010-02-10 11:04:00 +0200
committerWolf Bergenheim <ext-wolf.2.bergenheim@nokia.com>2010-02-10 11:04:00 +0200
commit6ca0f841378117e7c31fa552206e7174b60d6b8d (patch)
treea270f9d55d3b695a5317963d0d11d6b6fcd78217 /libresourceqt
parent30dcb37e647eed8fd68874f7588cd203ef8fc709 (diff)
downloadlibresourceqt-6ca0f841378117e7c31fa552206e7174b60d6b8d.tar.gz
bug fixes
Diffstat (limited to 'libresourceqt')
-rw-r--r--libresourceqt/src/resource-set.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libresourceqt/src/resource-set.cpp b/libresourceqt/src/resource-set.cpp
index 6ff8d9a..64bdf8e 100644
--- a/libresourceqt/src/resource-set.cpp
+++ b/libresourceqt/src/resource-set.cpp
@@ -6,7 +6,7 @@ ResourceSet::ResourceSet(const QString &applicationClass, QObject * parent)
: QObject(parent), resourceClass(applicationClass)
{
identifier = (quint32)this;
- memset(resourceSet, 0, sizeof(QPointer<Resource>)*NumberOfTypes);
+ memset(resourceSet, 0, sizeof(QPointer<Resource *>)*NumberOfTypes);
}
ResourceSet::~ResourceSet()
@@ -51,7 +51,7 @@ bool ResourceSet::contains(const QList<ResourceType> &types) const
do {
containsAll = contains(types.at(i));
i++;
- } while((i < NumberOfTypes) && containsAll);
+ } while((i < types.size()) && containsAll);
return containsAll;
}