OSDN Git Service

debugger: cosmetics
authorhjk <qtc-committer@nokia.com>
Mon, 29 Nov 2010 17:59:30 +0000 (18:59 +0100)
committerhjk <qtc-committer@nokia.com>
Tue, 30 Nov 2010 07:59:58 +0000 (08:59 +0100)
src/plugins/debugger/debuggerplugin.cpp

index fd9f10e..27fb127 100644 (file)
@@ -645,11 +645,10 @@ bool CommonOptionsPage::matches(const QString &s) const
 //
 ///////////////////////////////////////////////////////////////////////
 
-static inline bool oxygenStyle()
+static bool oxygenStyle()
 {
-    if (const ManhattanStyle *ms = qobject_cast<const ManhattanStyle *>(qApp->style()))
-        return !qstrcmp("OxygenStyle", ms->baseStyle()->metaObject()->className());
-    return false;
+    const ManhattanStyle *ms = qobject_cast<const ManhattanStyle *>(qApp->style());
+    return ms && !qstrcmp("OxygenStyle", ms->baseStyle()->metaObject()->className());
 }
 
 class DebuggingHelperOptionPage : public Core::IOptionsPage