From bfd21b888b329b2e434e45c15abe0f27b61968a1 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Tue, 8 Feb 2022 18:41:30 +0100 Subject: [PATCH] QPageSize: remove 119 relocations Also saves ~1.4KiB in combined TEXT and DATA size on optimized Linux GCC 11 C++20 AMD64 builds. Pick-to: 6.3 6.2 Change-Id: I53922ccd191e412a13e3e23f2e26fdb3bf43af33 Reviewed-by: Fabian Kosmale --- src/gui/painting/qpagesize.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/painting/qpagesize.cpp b/src/gui/painting/qpagesize.cpp index fb7eb45b93..f69031df8b 100644 --- a/src/gui/painting/qpagesize.cpp +++ b/src/gui/painting/qpagesize.cpp @@ -233,7 +233,7 @@ struct StandardPageSize { qreal heightMillimeters; qreal widthInches; qreal heightInches; - const char *mediaOption; // PPD standard mediaOption ID + const char mediaOption[20]; // PPD standard mediaOption ID }; // Standard page sizes taken from the Postscript PPD Standard v4.3