summaryrefslogtreecommitdiffstats
path: root/examples/sql/drilldown
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2021-02-25 14:19:34 +0100
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2021-03-02 12:45:53 +0100
commite718818745e6db8df09ea55c4071e116f00851c9 (patch)
tree5113facd15d3c97072b302ba4900093149aeb985 /examples/sql/drilldown
parent49113c905d5868e6b76bb6b7b3e0a20b0c56a23a (diff)
QLabel: simplify createStandardContextMenu
If control is nullptr in the beginning, then it will be nullptr later as well, and the function won't do anything. And if the effectiveTextFormat is Qt::PlainText, then the linkToCopy will be empty, and the function won't do anything, either. So we can just handle these cases right away, making the code simplier. Fixes static analyzer warning 43de3f3125108b4353afd94e94f59926. Pick-to: 6.1 Change-Id: I5b8eb94a1e40c2725de6a168298d8f3bcde748eb Reviewed-by: David Skoland <david.skoland@qt.io> Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'examples/sql/drilldown')
0 files changed, 0 insertions, 0 deletions