diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2021-05-19 15:22:28 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-05-20 15:58:58 +0000 |
commit | 32b8b79063f903f002e69a8c8568498c9ba41033 (patch) | |
tree | 3887bad9cb1525f431a94288f8e215e8c1a131ab /src/quick/items/qquicktextnodeengine.cpp | |
parent | 9936abe93e70e1c5a9934869bda3f9787c97b409 (diff) |
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.
Change-Id: I0198505db40a93227ba52a08c29a351e85b74cc0
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Andrei Golubev <andrei.golubev@qt.io>
(cherry picked from commit ae1334d827bd386ae34ed5fca8f00dcef83bc65e)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/quick/items/qquicktextnodeengine.cpp')
0 files changed, 0 insertions, 0 deletions