summaryrefslogtreecommitdiffstats
path: root/src/widgets
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2015-05-14 12:07:20 +0200
committerGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2015-05-16 10:19:20 +0000
commita2c4e68141b4b80d317f5295aa687b5cb4f1dd9c (patch)
tree87f092931db3caa777be5c70ccb69ca7cdf7b39b /src/widgets
parent6779ec383d9609cd02a4aaf0dc82d6a9f958a07c (diff)
QStyle debug helpers: refactor dead code
... or compilers complain about the second, unreachable return. Change-Id: Ic89361859fcf5cf33a57de0c803526702fa831b8 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
Diffstat (limited to 'src/widgets')
-rw-r--r--src/widgets/styles/qstyle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/styles/qstyle.cpp b/src/widgets/styles/qstyle.cpp
index 862a4302f3..1849331b79 100644
--- a/src/widgets/styles/qstyle.cpp
+++ b/src/widgets/styles/qstyle.cpp
@@ -2368,8 +2368,8 @@ QDebug operator<<(QDebug debug, QStyle::State state)
return operator<< <QStyle::StateFlag>(debug, state);
# else
Q_UNUSED(state);
-# endif
return debug;
+# endif
}
# endif // !QT_NO_DEBUG_STREAM
#endif // QT_VERSION < QT_VERSION_CHECK(6,0,0)