aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/compiler/qv4codegen.cpp
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2024-01-02 11:13:13 +0100
committerUlf Hermann <ulf.hermann@qt.io>2024-01-08 09:26:59 +0100
commitf8b90f5e9b1d69b2d7ce682d72f718a5ac8c3f28 (patch)
treed3bfb507a6e67c5ae5ce8ccad003a02454a473a8 /src/qml/compiler/qv4codegen.cpp
parent8f876c620c0cbba1e005bceefd76cb6459a1c58a (diff)
QtQml: Pass Codegen::Reference as reference
Despite its name, it's really large. Coverity-Id: 434159 Change-Id: I7ccdfbdf0582edd13011d89dbb50a17ea1455637 Reviewed-by: Sami Shalayel <sami.shalayel@qt.io> Reviewed-by: Olivier De Cannière <olivier.decanniere@qt.io>
Diffstat (limited to 'src/qml/compiler/qv4codegen.cpp')
-rw-r--r--src/qml/compiler/qv4codegen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/compiler/qv4codegen.cpp b/src/qml/compiler/qv4codegen.cpp
index a43ec897e5..12639cba37 100644
--- a/src/qml/compiler/qv4codegen.cpp
+++ b/src/qml/compiler/qv4codegen.cpp
@@ -2424,7 +2424,7 @@ bool Codegen::traverseOptionalChain(Node *node)
return true;
}
-void Codegen::optionalChainFinalizer(Reference expressionResult, bool tailOfChain,
+void Codegen::optionalChainFinalizer(const Reference &expressionResult, bool tailOfChain,
bool isDeleteExpression)
{
auto &chainState = m_optionalChainsStates.top();