]> cloud.milkyroute.net Git - dolphin.git/commitdiff
SVN_SILENT: minor coding style fixes
authorPeter Penz <peter.penz19@gmail.com>
Sat, 20 Jun 2009 11:56:14 +0000 (11:56 +0000)
committerPeter Penz <peter.penz19@gmail.com>
Sat, 20 Jun 2009 11:56:14 +0000 (11:56 +0000)
svn path=/trunk/KDE/kdebase/apps/; revision=984194

src/dolphinmodel.cpp

index e57aa90d831bb2f2f463c72310bcd43696ba3207..2808736eeba61d0f5385eaf9774ecf537298672a 100644 (file)
@@ -314,7 +314,7 @@ QVariant DolphinModel::displayRoleData(const QModelIndex& index) const
 
         retString = i18nc("@title:group Files and folders by permissions", "(User: %1) (Group: %2) (Others: %3)", user, group, others);
         break;
-                                 }
+    }
 
     case KDirModel::Owner:
         retString = item.user();
@@ -333,7 +333,7 @@ QVariant DolphinModel::displayRoleData(const QModelIndex& index) const
         const quint32 rating = ratingForIndex(index);
         retString = QString::number(rating);
         break;
-                               }
+    }
 
     case DolphinModel::Tags: {
         retString = tagsForIndex(index);
@@ -410,10 +410,11 @@ QVariant DolphinModel::sortRoleData(const QModelIndex& index) const
         break;
 
     case KDirModel::Type:
-        if (item.isDir())
+        if (item.isDir()) {
             retVariant.clear(); // when sorting we want folders to be placed first
-        else
+        } else {
             retVariant = item.mimeComment();
+        }
         break;
 
 #ifdef HAVE_NEPOMUK