cullmann added a comment.
That looks much nicer an avoids the !d checks, which are tedious. I think the one ref count change is no issue, at least that is orders of magnitude better than some malloc on Windows :) I will adapt the patch. 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