X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/175bb578e0a23e7b2f71dfde16898c184e8a5467..0cb9ba2518e309fadf30ae39daba683ccd80e417:/src/os2/stdpaths.cpp?ds=sidebyside diff --git a/src/os2/stdpaths.cpp b/src/os2/stdpaths.cpp index 86a91d3e0c..f7ba58488b 100644 --- a/src/os2/stdpaths.cpp +++ b/src/os2/stdpaths.cpp @@ -20,6 +20,8 @@ // for compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" +#if wxUSE_STDPATHS + #ifdef __BORLANDC__ #pragma hdrstop #endif @@ -52,9 +54,9 @@ wxString wxStandardPaths::GetInstallPrefix() const { if ( m_prefix.empty() ) { - wxStandardPaths *self = wx_const_cast(wxStandardPaths *, this); + wxStandardPaths *self = const_cast(this); - self->m_prefix = _T("/usr/local"); + self->m_prefix = _T("/usr/local"); } return m_prefix; } @@ -80,10 +82,12 @@ wxString wxStandardPaths::GetDataDir() const wxString wxStandardPaths::GetUserDataDir() const { - return AppendAppName(wxFileName::GetHomeDir() + _T("\\.")); + return AppendAppInfo(wxFileName::GetHomeDir() + _T("\\.")); } wxString wxStandardPaths::GetPluginsDir() const { return wxString(); } + +#endif // wxUSE_STDPATHS