From 336eac089623be3c824b19a1161d19906ae6125f Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Thu, 21 Mar 2013 14:38:02 -0700 Subject: [PATCH] Remove unused private fields in a class used for anti-flicker workaround MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit qwizard.cpp:510:14: error: private field 'wizard' is not used [-Werror,-Wunused-private-field] qwizard.cpp:511:21: error: private field 'wizardPrivate' is not used [-Werror,-Wunused-private-field] Field "wizard" was really unused, in all platforms, so simply remove it. The field "wizardPrivate" is used when the Windows Vista style is enabled. Change-Id: I1ce254f484b613655bff7f6c3ee8e04479960d7c Reviewed-by: Friedemann Kleint Reviewed-by: Jan Arve Sæther --- src/widgets/dialogs/qwizard.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/widgets/dialogs/qwizard.cpp b/src/widgets/dialogs/qwizard.cpp index f58a10b166..72283451d7 100644 --- a/src/widgets/dialogs/qwizard.cpp +++ b/src/widgets/dialogs/qwizard.cpp @@ -507,16 +507,18 @@ void QWizardPagePrivate::_q_updateCachedCompleteState() class QWizardAntiFlickerWidget : public QWidget { - QWizard *wizard; - QWizardPrivate *wizardPrivate; public: +#if !defined(QT_NO_STYLE_WINDOWSVISTA) + QWizardPrivate *wizardPrivate; QWizardAntiFlickerWidget(QWizard *wizard, QWizardPrivate *wizardPrivate) : QWidget(wizard) - , wizard(wizard) , wizardPrivate(wizardPrivate) {} -#if !defined(QT_NO_STYLE_WINDOWSVISTA) protected: void paintEvent(QPaintEvent *); +#else + QWizardAntiFlickerWidget(QWizard *wizard, QWizardPrivate *) + : QWidget(wizard) + {} #endif };