wmaker: Added 'const' attribute to function 'wWindowUpdateName'
authorChristophe CURIS <christophe.curis@free.fr>
Sun, 16 Jun 2013 15:57:49 +0000 (16 17:57 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Sun, 16 Jun 2013 18:32:23 +0000 (16 19:32 +0100)
Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
src/window.c
src/window.h

index 0a92793..795216d 100644 (file)
@@ -1725,9 +1725,9 @@ void wWindowUnfocus(WWindow *wwin)
        WMPostNotificationName(WMNChangedFocus, wwin, (void *)False);
 }
 
-void wWindowUpdateName(WWindow *wwin, char *newTitle)
+void wWindowUpdateName(WWindow *wwin, const char *newTitle)
 {
-       char *title;
+       const char *title;
 
        if (!wwin->frame)
                return;
index afd16e7..fddddcb 100644 (file)
@@ -342,7 +342,7 @@ void wUnmanageWindow(WWindow *wwin, Bool restore, Bool destroyed);
 void wWindowFocus(WWindow *wwin, WWindow *owin);
 void wWindowUnfocus(WWindow *wwin);
 
-void wWindowUpdateName(WWindow *wwin, char *newTitle);
+void wWindowUpdateName(WWindow *wwin, const char *newTitle);
 void wWindowConstrainSize(WWindow *wwin, unsigned int *nwidth, unsigned int *nheight);
 void wWindowCropSize(WWindow *wwin, unsigned int maxw, unsigned int maxh,
                      unsigned int *nwidth, unsigned int *nheight);