aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOlivier De Cannière <olivier.decanniere@qt.io>2026-09-26 12:01:04 +0200
committerOlivier De Cannière <olivier.decanniere@qt.io>2026-10-02 20:09:25 +0000
commit2d2eb7860fc47850910bdfc80732d92098ddff16 (patch)
treea7598395601665a0c980d25305711808ef4857f7 /src
parent861a8762665baffc6b739704194d5a47e4110c71 (diff)
qmldom: Visit call optional token instead of its lparen twiceHEADdev
Amends ae6dfc63668556e89057edb1b83de28d7554c5ef Task-number: QTBUG-151040 Pick-to: 6.12 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Change-Id: I438ca1b8e2de4fc05769f2d627c3d7edaefe94a0 Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/qmldom/qqmldomcomments.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qmldom/qqmldomcomments.cpp b/src/qmldom/qqmldomcomments.cpp
index eeef08153c..1e73f12eaf 100644
--- a/src/qmldom/qqmldomcomments.cpp
+++ b/src/qmldom/qqmldomcomments.cpp
@@ -535,7 +535,7 @@ public:
bool visit(CallExpression *call) override
{
- addSourceLocations(call, call->lparenToken);
+ addSourceLocations(call, call->optionalToken);
addSourceLocations(call, call->lparenToken);
addSourceLocations(call, call->rparenToken);
return true;