X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/175bb578e0a23e7b2f71dfde16898c184e8a5467..d84e6f500ee7c9e8c7d305f78a5c9c764c74b1c0:/src/os2/stdpaths.cpp

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<wxStandardPaths *>(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