diff options
author | Benjamin Poulain <benjamin.poulain@nokia.com> | 2009-10-05 14:48:58 (GMT) |
---|---|---|
committer | Benjamin Poulain <benjamin.poulain@nokia.com> | 2009-10-05 15:30:45 (GMT) |
commit | fa5f70d3c93758cd8d2c24de73b2d3dc83fb56b8 (patch) | |
tree | 6a2641b77f7e3d283ec01119d825bbddc0f65875 /src/gui/widgets | |
parent | 06aaf39be5cf341237f0eff85f277625ed732d7a (diff) | |
download | Qt-fa5f70d3c93758cd8d2c24de73b2d3dc83fb56b8.zip Qt-fa5f70d3c93758cd8d2c24de73b2d3dc83fb56b8.tar.gz Qt-fa5f70d3c93758cd8d2c24de73b2d3dc83fb56b8.tar.bz2 |
Fix a compilation warning on Mac OS X
The variable updatesEnabled is not used on Mac OS X.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/qcombobox.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/widgets/qcombobox.cpp b/src/gui/widgets/qcombobox.cpp index 95ff4c1..b606538 100644 --- a/src/gui/widgets/qcombobox.cpp +++ b/src/gui/widgets/qcombobox.cpp @@ -2443,7 +2443,10 @@ void QComboBox::showPopup() } container->setGeometry(listRect); - bool updatesEnabled = container->updatesEnabled(); +#ifndef Q_WS_MAC + const bool updatesEnabled = container->updatesEnabled(); +#endif + #if defined(Q_WS_WIN) && !defined(QT_NO_EFFECTS) bool scrollDown = (listRect.topLeft() == below); if (QApplication::isEffectEnabled(Qt::UI_AnimateCombo) |