diff options
author | Anton Kudryavtsev <a.kudryavtsev@netris.ru> | 2016-01-24 11:10:19 +0300 |
---|---|---|
committer | Anton Kudryavtsev <a.kudryavtsev@netris.ru> | 2016-01-26 07:34:06 +0000 |
commit | 6ca81d1fd17df525fb51033fbdad6c99b332f234 (patch) | |
tree | 42078dfb0b4417dc973e98da9e03398b0a97618d /header.LGPL-ONLY | |
parent | 037e58fff634ab8f04cf834446517a4265279039 (diff) |
QTranslator: don't re-create QString each time through a loop
Just cache it.
Also port to QStringLiteral, because the string is never modified.
Since the string literal is used in more than one function, to
avoid duplication of .rodata, wrap the QStringLiteral in an
inline function.
Change-Id: Ib5aede9f129610c80d122939afc343c938cc8e48
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Diffstat (limited to 'header.LGPL-ONLY')
0 files changed, 0 insertions, 0 deletions