summaryrefslogtreecommitdiffstats
path: root/src/printsupport/kernel/qprintengine_win.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2017-11-24 08:52:42 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2017-11-30 15:22:51 +0000
commitdae308d8926ae8c6d8f8484cd7108ae395aa5933 (patch)
treeaa69dc02e21917976afbef7255c13de9b070fefa /src/printsupport/kernel/qprintengine_win.cpp
parentdc4b4e9949e49da31efa1fe0f2a5cbb15656292d (diff)
qprintengine_win.cpp: Fix -Wclazy-range-loop
qprintengine_win.cpp:1502: warning: Missing reference in range-for with non trivial type (QPrint::InputSlot) [-Wclazy-range-loop] Change-Id: If6e55c1748e05e32aaa32a16063ba491fe242952 Reviewed-by: Andy Shaw <andy.shaw@qt.io>
Diffstat (limited to 'src/printsupport/kernel/qprintengine_win.cpp')
-rw-r--r--src/printsupport/kernel/qprintengine_win.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/printsupport/kernel/qprintengine_win.cpp b/src/printsupport/kernel/qprintengine_win.cpp
index e399118cc9..b479ecacb1 100644
--- a/src/printsupport/kernel/qprintengine_win.cpp
+++ b/src/printsupport/kernel/qprintengine_win.cpp
@@ -1499,7 +1499,7 @@ QVariant QWin32PrintEngine::property(PrintEnginePropertyKey key) const
QList<QVariant> out;
const auto inputSlots = d->m_printDevice.supportedInputSlots();
out.reserve(inputSlots.size());
- for (const QPrint::InputSlot inputSlot : inputSlots)
+ for (const QPrint::InputSlot &inputSlot : inputSlots)
out << QVariant(inputSlot.id == QPrint::CustomInputSlot ? inputSlot.windowsId : int(inputSlot.id));
value = out;
break;