summaryrefslogtreecommitdiffstats
path: root/src/corelib
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2021-02-24 13:30:02 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-02-25 01:33:10 +0000
commitb3182755bd208730ab23bc6250bbc090aafbb8e1 (patch)
tree985395047b88c34be1bd30b78d20b882853696f0 /src/corelib
parent2ef9fe42d1d21bb3218945d178c6d69547b27c6d (diff)
Consistently test for nullptr
m_view might be nullptr, which is checked before setting up the palette, so don't set the QTextCharFormat up without checking first as well. Fixes static analyzer warning 0ef07dd07bebe04b93d1fc802eddb57a Change-Id: Ia1c92eb4183c9e368e92875775cff90e2883ddaf Reviewed-by: Mitch Curtis <mitch.curtis@qt.io> (cherry picked from commit e38b55c47ce95480e6d0c1eb9d795cebc4d28c04) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/corelib')
0 files changed, 0 insertions, 0 deletions