D18578: Reduce string objects
Tomaz Canabrava
noreply at phabricator.kde.org
Mon Jan 28 11:00:59 GMT 2019
tcanabrava created this revision.
Herald added a project: Plasma.
Herald added a subscriber: plasma-devel.
tcanabrava requested review of this revision.
REVISION SUMMARY
QStringLiteral cannot deal with duplicates, so each invokation in
the same file with the same string will create a different UTF-16
string representation for that thing. Considering that we called
the same string six times in the same function, just create a temporary
variable that's the UTF-16 representation of the QString, and use it
REPOSITORY
R106 KSysguard
BRANCH
reduceStrings
REVISION DETAIL
https://phabricator.kde.org/D18578
AFFECTED FILES
gui/ksysguard.cpp
To: tcanabrava
Cc: plasma-devel, jraleigh, GB_2, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20190128/4bd904e6/attachment-0001.html>
More information about the Plasma-devel
mailing list