X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/df91131cb0f90ee8bfb194926a13b1a108ca3c6e..f944aec0cf131c1be0b8c127ba1ecdbc8410c9b2:/src/gtk1/utilsres.cpp?ds=inline diff --git a/src/gtk1/utilsres.cpp b/src/gtk1/utilsres.cpp index 1bd989f80b..f8f41519a6 100644 --- a/src/gtk1/utilsres.cpp +++ b/src/gtk1/utilsres.cpp @@ -15,11 +15,11 @@ #ifndef WX_PRECOMP #include "wx/list.h" #include "wx/string.h" + #include "wx/log.h" + #include "wx/app.h" #endif -#include "wx/log.h" #include "wx/config.h" -#include "wx/app.h" //----------------------------------------------------------------------------- // resource functions @@ -91,7 +91,7 @@ bool wxGetResource(const wxString& section, const wxString& entry, float *value, bool succ = wxGetResource(section, entry, (wxChar **)&s, file); if (succ) { - *value = (float)wxStrtod(s, NULL); + *value = (float)wxStrtod(s, (wchar_t **) NULL); delete[] s; return true; } @@ -104,7 +104,7 @@ bool wxGetResource(const wxString& section, const wxString& entry, long *value, bool succ = wxGetResource(section, entry, (wxChar **)&s, file); if (succ) { - *value = wxStrtol(s, NULL, 10); + *value = wxStrtol(s, (wchar_t **) NULL, 10); delete[] s; return true; } @@ -117,7 +117,7 @@ bool wxGetResource(const wxString& section, const wxString& entry, int *value, c bool succ = wxGetResource(section, entry, (wxChar **)&s, file); if (succ) { - *value = (int)wxStrtol(s, NULL, 10); + *value = (int)wxStrtol(s, (wchar_t **) NULL, 10); delete[] s; return true; }