summaryrefslogtreecommitdiff
path: root/src/imports/location/declarativeplaces/qdeclarativecategory.cpp
diff options
context:
space:
mode:
authorAaron McCarthy <aaron.mccarthy@nokia.com>2011-11-21 17:40:43 +1000
committerQt by Nokia <qt-info@nokia.com>2011-11-21 09:19:20 +0100
commitf56b810bd2e3d025a7228eec74cfbaf741cc261b (patch)
tree287783c3eab1673fa88a0ee865640a8225b3d884 /src/imports/location/declarativeplaces/qdeclarativecategory.cpp
parent579faca0af2609259b95d72a6241aa9f74776cb0 (diff)
downloadqtlocation-f56b810bd2e3d025a7228eec74cfbaf741cc261b.tar.gz
Fix uninitialized member variables in Category element.
Change-Id: Ic32daf2c8176ea6ea8548043d78bd3ffe9f8f1af Reviewed-by: abcd <amos.choy@nokia.com>
Diffstat (limited to 'src/imports/location/declarativeplaces/qdeclarativecategory.cpp')
-rw-r--r--src/imports/location/declarativeplaces/qdeclarativecategory.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/imports/location/declarativeplaces/qdeclarativecategory.cpp b/src/imports/location/declarativeplaces/qdeclarativecategory.cpp
index e8573e6e..c77e8ff6 100644
--- a/src/imports/location/declarativeplaces/qdeclarativecategory.cpp
+++ b/src/imports/location/declarativeplaces/qdeclarativecategory.cpp
@@ -78,16 +78,15 @@ QT_USE_NAMESPACE
*/
QDeclarativeCategory::QDeclarativeCategory(QObject* parent)
- : QObject(parent), m_icon(0), m_reply(0)
+: QObject(parent), m_icon(0), m_plugin(0), m_reply(0), m_complete(false), m_status(Ready)
{
}
QDeclarativeCategory::QDeclarativeCategory(const QPlaceCategory &category,
QDeclarativeGeoServiceProvider *plugin,
QObject *parent)
- : QObject(parent),
- m_category(category),
- m_icon(0), m_plugin(plugin), m_reply(0)
+: QObject(parent), m_category(category), m_icon(0), m_plugin(plugin), m_reply(0),
+ m_complete(false), m_status(Ready)
{
Q_ASSERT(plugin);
setCategory(category);