Fix for commit f42f82f435d738339ad85c1380d1167338517247
authorSami Rosendahl <ext-sami.1.rosendahl@nokia.com>
Thu, 2 Feb 2012 13:01:02 +0000 (15:01 +0200)
committerQt by Nokia <qt-info@nokia.com>
Thu, 2 Feb 2012 13:13:34 +0000 (14:13 +0100)
Qt5 change I758df57551ec49ce8c8b357794177b4e6c454d2f had mistakenly removed
intialization of QXmlItem::m_atomicValue from
QXmlItem::QXmlItem(const QVariant &atomicValue) constructor in a special
case. This commit restores the initialization.

Change-Id: I5ddc12bf0ff5d1d365471bb09d4eb3cdadd01b9b
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
src/xmlpatterns/api/qabstractxmlnodemodel.cpp

index 6c299dd..6dfaad2 100644 (file)
@@ -1181,6 +1181,10 @@ QXmlItem::QXmlItem(const QVariant &atomicValue)
         m_node.model = reinterpret_cast<const QAbstractXmlNodeModel *>(~0);
         m_atomicValue = temp.asAtomicValue();
     }
+    else
+    {
+        m_atomicValue = 0;
+    }
 }
 
 /*!