aboutsummaryrefslogtreecommitdiff
path: root/src/libui_sdl/libui/darwin
diff options
context:
space:
mode:
authorCameron Cawley <ccawley2011@gmail.com>2019-05-04 14:07:02 +0100
committerCameron Cawley <ccawley2011@gmail.com>2019-05-04 14:07:02 +0100
commitf91eb18152e7bb84a402255d283a546f4dc95ce8 (patch)
tree26f839568ed089ad5eb34a139f9069c08b16195a /src/libui_sdl/libui/darwin
parent85b3bdebd1258a13b3d28eeff5a7eef2d22fb5d9 (diff)
Fix all -Wwrite-strings warnings
Diffstat (limited to 'src/libui_sdl/libui/darwin')
-rw-r--r--src/libui_sdl/libui/darwin/stddialogs.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libui_sdl/libui/darwin/stddialogs.m b/src/libui_sdl/libui/darwin/stddialogs.m
index 42cb94c..c826035 100644
--- a/src/libui_sdl/libui/darwin/stddialogs.m
+++ b/src/libui_sdl/libui/darwin/stddialogs.m
@@ -32,7 +32,7 @@ static char *runSavePanel(NSWindow *parent, NSSavePanel *s)
return filename;
}
-char *uiOpenFile(uiWindow *parent, char* filter, char* initpath)
+char *uiOpenFile(uiWindow *parent, const char* filter, const char* initpath)
{
NSOpenPanel *o;
@@ -46,7 +46,7 @@ char *uiOpenFile(uiWindow *parent, char* filter, char* initpath)
return runSavePanel(windowWindow(parent), o);
}
-char *uiSaveFile(uiWindow *parent, char* filter, char* initpath)
+char *uiSaveFile(uiWindow *parent, const char* filter, const char* initpath)
{
NSSavePanel *s;