changeset 35968:9474726062ef

Change parameter declaration to const.
author ib
date Wed, 27 Mar 2013 18:57:09 +0000
parents 76d4f38ffdf9
children 73a7d9100fe0
files gui/ui/actions.c gui/ui/actions.h gui/win32/interface.c
diffstat 3 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/gui/ui/actions.c	Wed Mar 27 18:56:13 2013 +0000
+++ b/gui/ui/actions.c	Wed Mar 27 18:57:09 2013 +0000
@@ -660,7 +660,7 @@
  *
  * @note All #guiInfo members associated with the file will be cleared.
  */
-void uiSetFile(char *dir, char *name, int type)
+void uiSetFile(const char *dir, const char *name, int type)
 {
     if (!dir)
         setdup(&guiInfo.Filename, name);
--- a/gui/ui/actions.h	Wed Mar 27 18:56:13 2013 +0000
+++ b/gui/ui/actions.h	Wed Mar 27 18:57:09 2013 +0000
@@ -31,7 +31,7 @@
 void uiPlay(void);
 void uiPrev(void);
 void uiRelSeek(float percent);
-void uiSetFile(char *dir, char *name, int type);
+void uiSetFile(const char *dir, const char *name, int type);
 void uiState(void);
 void uiUnsetFile(void);
 void uiUnsetMedia(int totals);
--- a/gui/win32/interface.c	Wed Mar 27 18:56:13 2013 +0000
+++ b/gui/win32/interface.c	Wed Mar 27 18:57:09 2013 +0000
@@ -447,7 +447,7 @@
     mygui->startplay(mygui);
 }
 
-void uiSetFile(char *dir, char *name, int type)
+void uiSetFile(const char *dir, const char *name, int type)
 {
     if(!name) return;
     if(!dir)