printsupport: Pass large type by const-ref

sizeof() is 144 bytes on x86_64

Change-Id: I11fbb3c37353aafa209cea388cfc505f9645a1bb
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
This commit is contained in:
Sérgio Martins 2015-07-19 15:01:33 +01:00 committed by Marc Mutz
parent 17ce3473db
commit dfa78b00da

View File

@ -245,7 +245,7 @@ public:
// but where would it live? Not in base module as don't want to link to CUPS. // 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. // 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; QPrint::InputSlot input;
input.key = choice.choice; input.key = choice.choice;
@ -255,7 +255,7 @@ public:
return input; return input;
} }
static QPrint::OutputBin ppdChoiceToOutputBin(ppd_choice_t choice) static QPrint::OutputBin ppdChoiceToOutputBin(const ppd_choice_t &choice)
{ {
QPrint::OutputBin output; QPrint::OutputBin output;
output.key = choice.choice; output.key = choice.choice;