From dfa78b00dad1703449a2978c51fba9736ea37883 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20Martins?= Date: Sun, 19 Jul 2015 15:01:33 +0100 Subject: printsupport: Pass large type by const-ref sizeof() is 144 bytes on x86_64 Change-Id: I11fbb3c37353aafa209cea388cfc505f9645a1bb Reviewed-by: Marc Mutz --- src/printsupport/kernel/qprint_p.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/printsupport') diff --git a/src/printsupport/kernel/qprint_p.h b/src/printsupport/kernel/qprint_p.h index a097d26a9e..6a05cc1589 100644 --- a/src/printsupport/kernel/qprint_p.h +++ b/src/printsupport/kernel/qprint_p.h @@ -245,7 +245,7 @@ public: // but where would it live? Not in base module as don't want to link to CUPS. // May have to have two copies in plugins to keep in sync. - static QPrint::InputSlot ppdChoiceToInputSlot(ppd_choice_t choice) + static QPrint::InputSlot ppdChoiceToInputSlot(const ppd_choice_t &choice) { QPrint::InputSlot input; input.key = choice.choice; @@ -255,7 +255,7 @@ public: return input; } - static QPrint::OutputBin ppdChoiceToOutputBin(ppd_choice_t choice) + static QPrint::OutputBin ppdChoiceToOutputBin(const ppd_choice_t &choice) { QPrint::OutputBin output; output.key = choice.choice; -- cgit v1.2.3