Use the string builder and fast string concatenations
commitb476ca766124305d0740747becee94e3552f7212
authorJan Kundrát <jkt@kde.org>
Sun, 26 Jul 2015 09:21:46 +0000 (26 11:21 +0200)
committerJan Kundrát <jkt@kde.org>
Thu, 13 Aug 2015 17:03:16 +0000 (13 19:03 +0200)
tree9402ff1938e7bbcabb8dd1de350ade8f9f97a4b7
parent7bd16b24b817d5fcfd6f51c64c46e8d3695b994a
Use the string builder and fast string concatenations

As per [1], this is something which saves a bunch of reallocations,
which is a good thing, and it needed just a ocuple of rebuilds locally
to get it working, so why not :).

Right now this is only enabled on Qt5 because that's what I use. This
could be made working on Qt4 as well, but some of the interesting bits
are only in 4.7 (or 4.8?), and our CI only covers 4.6 within the Qt4
family.

Thanks to Milian for reminding me that free optimizations are nice.

[1] http://blog.qt.io/blog/2011/06/13/string-concatenation-with-qstringbuilder/

Change-Id: I367466bd1a43427543cc2407d26e82c7cb0e36bc
CMakeLists.txt
src/Gui/MessageListWidget.cpp
src/Imap/Model/MailboxTree.cpp
src/Imap/Parser/LowLevelParser.cpp
src/Plugins/AbookAddressbook/be-contacts.cpp
tests/Composer/test_Composer_responses.cpp
tests/Composer/test_Html_formatting.cpp
tests/Imap/test_Imap_BodyParts.cpp
tests/Imap/test_Imap_Idle.cpp
tests/Imap/test_Imap_Threading.cpp
tests/Utils/LibMailboxSync.cpp