diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp
index fd9f10ef9b1e77262060d73cfe1fb593548d670e..27fb127f5c9d67ece0bb76f0f564947a337d0bd0 100644
--- a/src/plugins/debugger/debuggerplugin.cpp
+++ b/src/plugins/debugger/debuggerplugin.cpp
@@ -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