summaryrefslogtreecommitdiff
path: root/src/qml/jsruntime/qv4function.cpp
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2021-05-19 15:22:28 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2021-05-20 11:40:14 +0200
commitae1334d827bd386ae34ed5fca8f00dcef83bc65e (patch)
treefad1d0e58e79fafc8f1dce8e912ce80f52b5f0c3 /src/qml/jsruntime/qv4function.cpp
parentc9a90cdf3ce25d54a80f50de1e19ed6c555470cc (diff)
downloadqtdeclarative-ae1334d827bd386ae34ed5fca8f00dcef83bc65e.tar.gz
Add Q_ASSERT for _context pointer to pacify code checker
The pointer is initialized to nullptr, set in enterEnvironment, and possibly reset in leaveEnvironment. The static analyzer can't know that it is always set before any of other functions is called, so assert that pre- condition via Q_ASSERT. Pick-to: 6.1 Change-Id: I0198505db40a93227ba52a08c29a351e85b74cc0 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Andrei Golubev <andrei.golubev@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4function.cpp')
0 files changed, 0 insertions, 0 deletions