aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2023-05-30 09:23:49 +0200
committerUlf Hermann <ulf.hermann@qt.io>2023-05-30 11:33:51 +0200
commit65cb77165ba18442a524faf44f712ae26661965c (patch)
tree02f6cb086b2b3f7fed7dc3f25b2fdcbd573d3817 /src
parent69eb6ec2888ccec6dc3b4ed9867673d1131bfcef (diff)
QmlCompiler: Properly initialize JavaScriptIdentifier
Coverity-Id: 402330 Change-Id: I2628e5482ef5685641bd71762ed9d6c4e8659dfa Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/qmlcompiler/qqmljsscope_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qmlcompiler/qqmljsscope_p.h b/src/qmlcompiler/qqmljsscope_p.h
index 85275ae892..f154a5cf39 100644
--- a/src/qmlcompiler/qqmljsscope_p.h
+++ b/src/qmlcompiler/qqmljsscope_p.h
@@ -281,7 +281,7 @@ public:
Kind kind = FunctionScoped;
QQmlJS::SourceLocation location;
std::optional<QString> typeName;
- bool isConst;
+ bool isConst = false;
QQmlJSScope::WeakConstPtr scope = {};
};