D9211: Iterate over initializer_lists to avoid mem allocs

Dominik Haumann noreply at phabricator.kde.org
Tue Dec 5 17:39:43 UTC 2017


dhaumann created this revision.
dhaumann added a reviewer: mwolff.
Restricted Application added projects: Kate, Frameworks.
Restricted Application added a subscriber: Frameworks.

REVISION SUMMARY
  I had to add a helper function to avoid messy
  STL iterator code everywhere. Not an ideal solution,
  but std::contains() simply still does not exist, yet :-)

TEST PLAN
  make test

REPOSITORY
  R39 KTextEditor

BRANCH
  AvoidAllocs (branched from master)

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

AFFECTED FILES
  src/document/katedocument.cpp
  src/script/katescriptmanager.cpp
  src/view/kateview.cpp

To: dhaumann, mwolff
Cc: #frameworks, kevinapavew, ngraham, demsking, cullmann, sars, dhaumann
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20171205/4316de9c/attachment.html>


More information about the Kde-frameworks-devel mailing list