Blame SOURCES/coding-style-fixes.patch

92cace
From 2173580f070e806d4715e13048c697c49ec262e2 Mon Sep 17 00:00:00 2001
92cace
From: Aaron Seigo <aseigo@kde.org>
92cace
Date: Thu, 21 Feb 2013 17:59:58 +0100
92cace
Subject: [PATCH 047/111] coding style fixes
92cace
92cace
---
92cace
 kdeui/icons/kiconloader.cpp | 27 ++++++++++++---------------
92cace
 1 file changed, 12 insertions(+), 15 deletions(-)
92cace
92cace
diff --git a/kdeui/icons/kiconloader.cpp b/kdeui/icons/kiconloader.cpp
92cace
index 6fed667..dba474d 100644
92cace
--- a/kdeui/icons/kiconloader.cpp
92cace
+++ b/kdeui/icons/kiconloader.cpp
92cace
@@ -938,32 +938,29 @@ K3Icon KIconLoaderPrivate::findMatchingIcon(const QString& name, int size) const
92cace
         }
92cace
     }
92cace
 
92cace
-    foreach (KIconThemeNode *themeNode, links)
92cace
-    {
92cace
+    foreach (KIconThemeNode *themeNode, links) {
92cace
         QString currentName = name;
92cace
 
92cace
-        while (!currentName.isEmpty())
92cace
-        {
92cace
-
92cace
+        while (!currentName.isEmpty()) {
92cace
             //kDebug(264) << "Looking up" << currentName;
92cace
 
92cace
-// The following code has been commented out because the Qt SVG renderer needs
92cace
-// to be improved. If you are going to change/remove some code from this part,
92cace
-// please contact me before (ereslibre@kde.org), or kde-core-devel@kde.org. (ereslibre)
92cace
-            for (int i = 0 ; i < 4 ; i++)
92cace
-            {
92cace
+            for (int i = 0 ; i < 4 ; i++) {
92cace
                 icon = themeNode->theme->iconPath(currentName + ext[i], size, KIconLoader::MatchExact);
92cace
-                if (icon.isValid())
92cace
-                    return icon;
92cace
+                if (icon.isValid()) {
92cace
+                    break;
92cace
+                }
92cace
 
92cace
                 icon = themeNode->theme->iconPath(currentName + ext[i], size, KIconLoader::MatchBest);
92cace
-                if (icon.isValid())
92cace
-                    return icon;
92cace
+                if (icon.isValid()) {
92cace
+                    break;
92cace
+                }
92cace
             }
92cace
+            //kDebug(264) << "Looking up" << currentName;
92cace
 
92cace
-            if (genericFallback)
92cace
+            if (genericFallback) {
92cace
                 // we already tested the base name
92cace
                 break;
92cace
+            }
92cace
 
92cace
             int rindex = currentName.lastIndexOf('-');
92cace
             if (rindex > 1) { // > 1 so that we don't split x-content or x-epoc
92cace
-- 
92cace
1.8.1.4
92cace