summaryrefslogtreecommitdiffstats
path: root/.lgtm.yml
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2021-03-22 11:19:53 +0100
committerEdward Welbourne <edward.welbourne@qt.io>2021-03-26 13:04:48 +0100
commit1bdc74ad7b9d3c7d203a8cd6970474872798c2d6 (patch)
tree2a722186064905b2a34c6f4ee7d03011e57f99ce /.lgtm.yml
parent27ebeeb50e192ead7f839cbfcf13a2a42132a920 (diff)
Document a peculiarity that might plausibly confuse readers
It at first sight seems perverse to null-check a variable we've repeatedly dereferenced before, without visibly setting it since; however, its address was stored where an event handler could get at it, to clear it if deleting the object it points to. The check against null really is needed, but the reason is non-obvious; so document the reason and save the next developers to come this way some confusion. In the process, relocate a related comment that belonged one line earlier. Change-Id: Id67b86edc5a9a76a827d66b5c0abcd017d98a2bb Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to '.lgtm.yml')
0 files changed, 0 insertions, 0 deletions