diff options
| author | Marc Mutz <marc.mutz@kdab.com> | 2015-06-26 12:59:51 +0200 |
|---|---|---|
| committer | Marc Mutz <marc.mutz@kdab.com> | 2015-07-16 13:21:15 +0000 |
| commit | 2c235303c2cf303ab0132f75607b044decc3404c (patch) | |
| tree | 27f85169272a782a6a3d79d6c38fe629df08b3e6 /src/widgets/doc/snippets | |
| parent | 0b43c0a74346f3a58d8aee625d8271741b03563a (diff) | |
QPlatformFontDatabase: compress an array of ushorts
First, all values in the array fit into 8-bit, so change the type
from ushort to quint8.
Then, instead of appending a zero as end marker, statically
determine the size of the array and use that number.
Also fixes (benign) off-by-one error in the existing reserve()
call.
Change-Id: Id05b6a56b55d2e0769b00496a55808bb7351b084
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Diffstat (limited to 'src/widgets/doc/snippets')
0 files changed, 0 insertions, 0 deletions
