diff --git a/src/gtk/utilsres.cpp b/src/gtk/utilsres.cpp index 619a055713..4dc2843925 100644 --- a/src/gtk/utilsres.cpp +++ b/src/gtk/utilsres.cpp @@ -85,7 +85,7 @@ static wxChar *GetResourcePath(wxChar *buf, wxChar *name, bool create) // the Real User, then determine the Real home dir. static wxChar *GetIniFile(wxChar *dest, const wxChar *filename) { - wxChar *home = (wxChar *) NULL; + const wxChar *home = (const wxChar *) NULL; if (filename && wxIsAbsolutePath(filename)) { wxStrcpy(dest, filename); diff --git a/src/gtk1/utilsres.cpp b/src/gtk1/utilsres.cpp index 619a055713..4dc2843925 100644 --- a/src/gtk1/utilsres.cpp +++ b/src/gtk1/utilsres.cpp @@ -85,7 +85,7 @@ static wxChar *GetResourcePath(wxChar *buf, wxChar *name, bool create) // the Real User, then determine the Real home dir. static wxChar *GetIniFile(wxChar *dest, const wxChar *filename) { - wxChar *home = (wxChar *) NULL; + const wxChar *home = (const wxChar *) NULL; if (filename && wxIsAbsolutePath(filename)) { wxStrcpy(dest, filename);