diff options
author | Thiago Macieira <thiago.macieira@nokia.com> | 2011-02-19 10:46:22 (GMT) |
---|---|---|
committer | Thiago Macieira <thiago.macieira@nokia.com> | 2011-02-20 08:12:31 (GMT) |
commit | ef06cbef2e3240d49848f398b2d19adbbea1e781 (patch) | |
tree | a977e67b0063c30f82e5ef4e803d8cf89b0b885b /src/declarative | |
parent | d6e509936358141b1fef93852edd10b3b324ec5b (diff) | |
download | Qt-ef06cbef2e3240d49848f398b2d19adbbea1e781.zip Qt-ef06cbef2e3240d49848f398b2d19adbbea1e781.tar.gz Qt-ef06cbef2e3240d49848f398b2d19adbbea1e781.tar.bz2 |
Fix warning about id maybe used when uninitialised
The code would indicate it's never used uninitialised, but gcc doesn't
know it.
Diffstat (limited to 'src/declarative')
-rw-r--r-- | src/declarative/util/qdeclarativepropertychanges.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/util/qdeclarativepropertychanges.cpp b/src/declarative/util/qdeclarativepropertychanges.cpp index ccd122e..9bcb263 100644 --- a/src/declarative/util/qdeclarativepropertychanges.cpp +++ b/src/declarative/util/qdeclarativepropertychanges.cpp @@ -281,7 +281,7 @@ QDeclarativePropertyChangesParser::compile(const QList<QDeclarativeCustomParserP QDeclarativeParser::Variant v = qvariant_cast<QDeclarativeParser::Variant>(data.at(ii).second); QVariant var; bool isScript = v.isScript(); - QDeclarativeBinding::Identifier id; + QDeclarativeBinding::Identifier id = 0; switch(v.type()) { case QDeclarativeParser::Variant::Boolean: var = QVariant(v.asBoolean()); |