From c375cbcdcda06fc29032f095e535a6e47d6a1fd7 Mon Sep 17 00:00:00 2001 From: Hugo Pereira Da Costa Date: Thu, 24 Sep 2015 10:19:25 +0200 Subject: [PATCH] cosmetics --- kstyle/kstylekde4compat.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/kstyle/kstylekde4compat.cpp b/kstyle/kstylekde4compat.cpp index 6906cecf..4d1b4ea1 100644 --- a/kstyle/kstylekde4compat.cpp +++ b/kstyle/kstylekde4compat.cpp @@ -23,7 +23,6 @@ #include #include - static const QStyle::StyleHint SH_KCustomStyleElement = (QStyle::StyleHint)0xff000001; static const int X_KdeBase = 0xff000000; @@ -41,11 +40,11 @@ KStyleKDE4Compat::~KStyleKDE4Compat() //_____________________________________________________________________ static inline int newStyleElement(const QString &element, const char *check, int &counter, QHash *elements) { - if (!element.contains(check)) { - return 0; - } + if (!element.contains(check)) return 0; + int id = elements->value(element, 0); - if (!id) { + if (!id) + { ++counter; id = counter; elements->insert(element, id);