D7107: Move QMenu allocation from heap to stack

Denis Kurz noreply at phabricator.kde.org
Fri Aug 4 11:03:51 BST 2017


dkurz added a comment.


  We save one heap allocation. Stack allocations are always cheaper. Also, we reduce the risk of a memory leak, when for some reason the "delete menu" isn't reached.

REPOSITORY
  R206 KMail

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

To: dkurz, #kde_pim_kmail
Cc: mlaurent, #kde_pim, dvasin, winterz, vkrause, knauss, dvratil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20170804/ab544f2c/attachment.html>


More information about the kde-pim mailing list