summaryrefslogtreecommitdiffstats
path: root/src/gui/CMakeLists.txt
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2020-05-05 16:49:03 +0200
committerGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2020-05-11 10:21:29 +0200
commit1018dba04ff6b2f018cbd1a22ae630daa473bfb4 (patch)
tree84c150e52a318572f7389a9e52c6824e467bb762 /src/gui/CMakeLists.txt
parent30be6c41d5bb8ff4f42dd7ac26a763444be71c5a (diff)
Torrent example: fix crash
Yet Another Side Effect of not keeping iterator stability. Although not idiomatic, the pattern while (i != e) { auto cur = i++; if (cond) erase(cur); } was actually correct. Move to the idiomatic erase pattern instead (it = cont.erase(it)). The example still has memory problems all over the place on shutdown. At least now it doesn't crash when running. Change-Id: I30bd2c4e2b3fa7fe4e28d4426ff3d894b9bae103 Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Diffstat (limited to 'src/gui/CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions