summaryrefslogtreecommitdiffstats
path: root/src/gui/styles/qcommonstyle.cpp
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2009-08-13 14:57:51 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2009-08-13 15:21:59 (GMT)
commite2bb75e66f7ef9dda6fae489ebbb30ffb5e9e37e (patch)
tree9dcd9e77f9aadaec5a9139ad6771be471cdd6326 /src/gui/styles/qcommonstyle.cpp
parent9f13cde554e1a56fade3b9b298b264c54b1ef4b9 (diff)
downloadQt-e2bb75e66f7ef9dda6fae489ebbb30ffb5e9e37e.zip
Qt-e2bb75e66f7ef9dda6fae489ebbb30ffb5e9e37e.tar.gz
Qt-e2bb75e66f7ef9dda6fae489ebbb30ffb5e9e37e.tar.bz2
Fix coverity warnings
for unreachable code, break missing and uninitialized members in constructors
Diffstat (limited to 'src/gui/styles/qcommonstyle.cpp')
-rw-r--r--src/gui/styles/qcommonstyle.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/styles/qcommonstyle.cpp b/src/gui/styles/qcommonstyle.cpp
index d4940d6..cce35b7 100644
--- a/src/gui/styles/qcommonstyle.cpp
+++ b/src/gui/styles/qcommonstyle.cpp
@@ -5196,8 +5196,7 @@ int QCommonStyle::styleHint(StyleHint sh, const QStyleOption *opt, const QWidget
ret = Qt::ToolButtonIconOnly;
#ifdef Q_WS_X11
{
- Q_D(const QCommonStyle);
- static int buttonStyle = d->lookupToolButtonStyle();
+ static int buttonStyle = d_func()->lookupToolButtonStyle();
return buttonStyle;
}
#endif