diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2024-01-02 11:13:13 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2024-01-08 09:26:59 +0100 |
commit | f8b90f5e9b1d69b2d7ce682d72f718a5ac8c3f28 (patch) | |
tree | d3bfb507a6e67c5ae5ce8ccad003a02454a473a8 /src/qml/compiler/qv4codegen_p.h | |
parent | 8f876c620c0cbba1e005bceefd76cb6459a1c58a (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_p.h')
-rw-r--r-- | src/qml/compiler/qv4codegen_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/compiler/qv4codegen_p.h b/src/qml/compiler/qv4codegen_p.h index 30c6077e3e..5c7f48eec3 100644 --- a/src/qml/compiler/qv4codegen_p.h +++ b/src/qml/compiler/qv4codegen_p.h @@ -854,7 +854,7 @@ private: void throwError(ErrorType errorType, const QQmlJS::SourceLocation &loc, const QString &detail); bool traverseOptionalChain(QQmlJS::AST::Node *node); - void optionalChainFinalizer(Reference expressionResult, bool tailOfChain, + void optionalChainFinalizer(const Reference &expressionResult, bool tailOfChain, bool isDeleteExpression = false); Reference loadSubscriptForCall(const Reference &base); void generateThrowException(const QString &type, const QString &text = QString()); |