X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9c2882d9e1b17c600a196e1b69fbe66b98204151..9a3952fad895c37a0ae8c34a968b7ae7ff8b9a55:/src/gtk/utilsres.cpp diff --git a/src/gtk/utilsres.cpp b/src/gtk/utilsres.cpp index 749a722e1d..45bdc9fec1 100644 --- a/src/gtk/utilsres.cpp +++ b/src/gtk/utilsres.cpp @@ -7,9 +7,8 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -//#ifdef __GNUG__ -//#pragma implementation "utils.h" -//#endif +// For compilers that support precompilation, includes "wx.h". +#include "wx/wxprec.h" #include "wx/utils.h" #include "wx/string.h" @@ -26,11 +25,11 @@ bool wxWriteResource(const wxString& section, const wxString& entry, const wxStr { wxString filename( file ); if (filename.IsEmpty()) filename = wxT(".wxWindows"); - + wxFileConfig conf( wxTheApp->GetAppName(), wxTheApp->GetVendorName(), filename ); - + conf.SetPath( section ); - + return conf.Write( entry, value ); } @@ -58,7 +57,7 @@ bool wxWriteResource(const wxString& section, const wxString& entry, int value, return wxWriteResource(section, entry, buf, file); } -bool wxGetResource(const wxString& section, const wxString& entry, char **value, const wxString& file ) +bool wxGetResource(const wxString& section, const wxString& entry, wxChar **value, const wxString& file ) { wxString filename( file ); if (filename.IsEmpty()) filename = wxT(".wxWindows"); @@ -72,7 +71,7 @@ bool wxGetResource(const wxString& section, const wxString& entry, char **value, { if (!result.IsEmpty()) { - char *s = new char[result.Len()+1]; + wxChar *s = new wxChar[result.Len()+1]; wxStrcpy( s, result.c_str() ); *value = s; return TRUE;