diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2013-12-11 10:47:00 +0100 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2014-11-25 16:37:08 +0100 |
commit | f4191888eb6355c5a63fdc20d144e9afa6910950 (patch) | |
tree | 57ac3d2383d59a8d8a1caa497def4bda7f6dfa73 /src/printsupport/kernel/qprintengine_pdf.cpp | |
parent | 71a31bd8c8e3ef9689b31dc78556b885380ea6a6 (diff) |
QCups: avoid relocations
Replace a string (pointer) table with arrays of char arrays of maximally
occurring size.
In the pageLayoutData case, this is trivial, since all strings have the same size.
In the pagesPerSheetData case, I've used a trick to cram the (only) two-digit
number into a char[2] array, by following it with a null entry.
Effects on AMD64 Linux GCC 4.7 release stripped:
text: -352B
data: -160B
relocs: -14
Change-Id: I6c458ff7ada0f45dab976bbe42b24757fc321302
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/printsupport/kernel/qprintengine_pdf.cpp')
0 files changed, 0 insertions, 0 deletions