From 38c4ccbfe675541b1eee72982b04d8b51fc90c95 Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Wed, 17 Sep 2014 19:11:33 +0200 Subject: Handle PPK_CustomBase in QWin32PrintEngine::property If we leave out the default so that the compiler catches missing enum values we should actually handle them all ... Change-Id: Ieb4992dec84ce847e48ab3c4a94bd8825a148706 Reviewed-by: Andy Shaw --- src/printsupport/kernel/qprintengine_win.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/printsupport') diff --git a/src/printsupport/kernel/qprintengine_win.cpp b/src/printsupport/kernel/qprintengine_win.cpp index 2f8d8f0a38..14ffcaca96 100644 --- a/src/printsupport/kernel/qprintengine_win.cpp +++ b/src/printsupport/kernel/qprintengine_win.cpp @@ -1414,6 +1414,9 @@ QVariant QWin32PrintEngine::property(PrintEnginePropertyKey key) const value.setValue(d->m_pageLayout); break; + case PPK_CustomBase: + break; + // No default so that compiler will complain if new keys added and not handled in this engine } return value; -- cgit v1.2.3