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.
REPOSITORY
R216 Syntax Highlighting
REVISION DETAIL
https://phabricator.kde.org/D14956
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/kde-frameworks-devel/attachments/20180820/98eefe05/attachment.html>
More information about the Kde-frameworks-devel
mailing list