changeset 35502:381cd31289f2

Cosmetic: Choose better variable name in Win32 GUI. This has been forgotten in r35588.
author ib
date Tue, 04 Dec 2012 20:10:10 +0000
parents 7bb176fac55c
children ac6c531dc9d1
files gui/win32/interface.c
diffstat 1 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/gui/win32/interface.c	Tue Dec 04 20:06:43 2012 +0000
+++ b/gui/win32/interface.c	Tue Dec 04 20:10:10 2012 +0000
@@ -849,7 +849,7 @@
 int guiPlaylistInitialize(play_tree_t *my_playtree, m_config_t *config, int enqueue)
 {
     play_tree_iter_t *my_pt_iter = NULL;
-    int result = FALSE;
+    int added = FALSE;
 
     if(!mygui) guiInit();
 
@@ -858,14 +858,14 @@
         while ((filename = pt_iter_get_next_file(my_pt_iter)) != NULL)
         {
             if (parse_filename(filename, my_playtree, config, 0))
-                result = TRUE;
+                added = TRUE;
             else if (import_file_into_gui(filename, 0)) /* Add it to end of list */
-                result = TRUE;
+                added = TRUE;
         }
     }
     guiInfo.PlaylistNext = TRUE;
 
-    if (result)
+    if (added)
     {
         mygui->playlist->current = 0;
         uiSetFile(NULL, mygui->playlist->tracks[0]->filename, STREAMTYPE_FILE);
@@ -873,7 +873,7 @@
 
     if (enqueue) filename = NULL;
 
-    return result;
+    return added;
 }
 
 /* This function imports and inserts an playtree, that is created "on the fly", for example by
@@ -883,16 +883,16 @@
 int guiPlaylistAdd(play_tree_t *my_playtree, m_config_t *config)
 {
     play_tree_iter_t *my_pt_iter = NULL;
-    int result = FALSE;
+    int added = FALSE;
 
     if((my_pt_iter = pt_iter_create(&my_playtree, config)))
     {
         while ((filename = pt_iter_get_next_file(my_pt_iter)) != NULL)
             if (import_file_into_gui(filename, 1)) /* insert it into the list and set plCurrent = new item */
-                result = TRUE;
+                added = TRUE;
         pt_iter_destroy(&my_pt_iter);
     }
-    return result;
+    return added;
 }
 
 static int update_videowindow(void)