Blame SOURCES/coding-style-fixes.patch

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