diff options
| author | Marc Mutz <marc.mutz@kdab.com> | 2016-04-25 11:36:36 +0200 |
|---|---|---|
| committer | Marc Mutz <marc.mutz@kdab.com> | 2016-04-27 15:29:27 +0000 |
| commit | 654a5fe529cb09338b78f044296ac1445d590a0d (patch) | |
| tree | 2deb0ddd72afa3e35679c802682f396d93875d62 /src/corelib/tools/qunicodetools.cpp | |
| parent | 369572f892a5e748098c038b76b0f4331d2dd201 (diff) | |
Optimize QXcbScreen::visualForFormat()
... by stopping the work when finding the first RGB candidate,
and otherwise only remembering the first candidate as a fall-back.
This way, we don't need to allocate memory as we did when collecting
the candidates in a QVector.
Saves more than 800b in text size on optimized GCC 6.0 Linux AMD64
builds.
Change-Id: I7d0cae69fa421fed881dd5a0f1aa45035d8f7461
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Diffstat (limited to 'src/corelib/tools/qunicodetools.cpp')
0 files changed, 0 insertions, 0 deletions
