From 3cff7afbbc370ac24bc3f569d626ac06e3d5af2c Mon Sep 17 00:00:00 2001 From: hjk Date: Mon, 29 Nov 2010 18:59:30 +0100 Subject: [PATCH] debugger: cosmetics --- src/plugins/debugger/debuggerplugin.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp index fd9f10ef9b..27fb127f5c 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(qApp->style())) - return !qstrcmp("OxygenStyle", ms->baseStyle()->metaObject()->className()); - return false; + const ManhattanStyle *ms = qobject_cast(qApp->style()); + return ms && !qstrcmp("OxygenStyle", ms->baseStyle()->metaObject()->className()); } class DebuggingHelperOptionPage : public Core::IOptionsPage -- 2.11.0