changeset 34682:c3ab7bd64ab3

Cosmetic: Arrange listMgr() commands in switch statement.
author ib
date Thu, 23 Feb 2012 13:30:16 +0000
parents 42fa91951bd2
children 621058eff80f
files gui/util/list.c
diffstat 1 files changed, 12 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/gui/util/list.c	Thu Feb 23 13:23:54 2012 +0000
+++ b/gui/util/list.c	Thu Feb 23 13:30:16 2012 +0000
@@ -74,14 +74,14 @@
         } else
             return listMgr(PLAYLIST_ITEM_APPEND, pdat);
 
-    case PLAYLIST_ITEM_GET_NEXT:
+    case PLAYLIST_ITEM_SET_CURR:
 
-        if (plCurrent && plCurrent->next) {
-            plCurrent = plCurrent->next;
-            return plCurrent;
-        }
+        plCurrent = pdat;
+        return plCurrent;
 
-        return NULL;
+    case PLAYLIST_ITEM_GET_CURR:
+
+        return plCurrent;
 
     case PLAYLIST_ITEM_GET_PREV:
 
@@ -92,14 +92,14 @@
 
         return NULL;
 
-    case PLAYLIST_ITEM_SET_CURR:
+    case PLAYLIST_ITEM_GET_NEXT:
 
-        plCurrent = pdat;
-        return plCurrent;
+        if (plCurrent && plCurrent->next) {
+            plCurrent = plCurrent->next;
+            return plCurrent;
+        }
 
-    case PLAYLIST_ITEM_GET_CURR:
-
-        return plCurrent;
+        return NULL;
 
     case PLAYLIST_ITEM_DEL_CURR: