D28074: [kstyle] Avoid invalid iterators in qDeleteAll

Anthony Fieroni noreply at phabricator.kde.org
Mon Mar 16 13:41:54 GMT 2020


anthonyfieroni added a comment.


  In D28074#628309 <https://phabricator.kde.org/D28074#628309>, @zzag wrote:
  
  > Well, we could do something like this (not sure whether it works though)
  >
  >   for (KWindowShadow *shadow : _shadows)
  >       disconnect(shadow, nullptr, this, nullptr);
  >  
  >   qDeleteAll(_shadows);
  >
  
  
  +1

REPOSITORY
  R113 Oxygen Theme

REVISION DETAIL
  https://phabricator.kde.org/D28074

To: zzag, #plasma
Cc: anthonyfieroni, broulik, plasma-devel, Orage, LeGast00n, The-Feren-OS-Dev, cblack, jraleigh, zachus, fbampaloukas, GB_2, ragreen, ZrenBot, ngraham, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, ahiemstra, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20200316/790c0326/attachment.html>


More information about the Plasma-devel mailing list