D14956: avoid any heap allocation for default constructed Format() as used as "invalid"

Volker Krause noreply at phabricator.kde.org
Mon Aug 20 21:18:32 BST 2018

vkrause added a comment.

  A shared static null object should work with QExplicitlySharedDataPointer as with any other d pointer type: just copy the null object into d in the default ctor. Trades the conditions per call for an atomic increment/decrement per instance.

  R216 Syntax Highlighting


To: cullmann, vkrause
Cc: dhaumann, kwrite-devel, kde-frameworks-devel, michaelh, kevinapavew, ngraham, bruns, demsking, cullmann, sars
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kwrite-devel/attachments/20180820/98eefe05/attachment.html>

More information about the KWrite-Devel mailing list