QMacStyle: Remove unused variable warning

Change-Id: Id6116ad110ac39898e9c44ae41c6d7eec96f58d7
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
This commit is contained in:
Gabriel de Dietrich 2017-07-12 10:23:57 -07:00
parent b3f7bea105
commit 9ec73b85aa

View File

@ -2340,7 +2340,7 @@ void QMacStyle::unpolish(QWidget* w)
#endif
#ifndef QT_NO_TABBAR
if (QTabBar *tb = qobject_cast<QTabBar*>(w)) {
if (qobject_cast<QTabBar*>(w)) {
if (!w->testAttribute(Qt::WA_SetFont))
w->setFont(qApp->font(w));
if (!w->testAttribute(Qt::WA_SetPalette))