Remove unused private fields in a class used for anti-flicker workaround

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 <Friedemann.Kleint@digia.com>
Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
This commit is contained in:
Thiago Macieira 2013-03-21 14:38:02 -07:00 committed by The Qt Project
parent caffabc798
commit 336eac0896

View File

@ -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
};