aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/inlinecomponentutils_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/inlinecomponentutils_p.h')
-rw-r--r--src/qml/inlinecomponentutils_p.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/qml/inlinecomponentutils_p.h b/src/qml/inlinecomponentutils_p.h
index 99b28349cd..7666457d98 100644
--- a/src/qml/inlinecomponentutils_p.h
+++ b/src/qml/inlinecomponentutils_p.h
@@ -62,7 +62,9 @@ struct Node {
Node& operator=(Node &&) = default;
bool operator==(Node const &other) const {return index == other.index;}
- Node(std::vector<QV4::CompiledData::InlineComponent>::size_type s) {
+ Node(std::vector<QV4::CompiledData::InlineComponent>::size_type s)
+ : index{0}
+ {
index = quint32(s);
temporaryMark = 0;
permanentMark = 0;