X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0ce52f3d4eb9e5f915b9f48a8185431edb14c647..94b8ecf1cdefea63f07f9ed2b54a2ad2556ec001:/src/unix/stdpaths.cpp?ds=sidebyside diff --git a/src/unix/stdpaths.cpp b/src/unix/stdpaths.cpp index 530d7fe918..3749968cc9 100644 --- a/src/unix/stdpaths.cpp +++ b/src/unix/stdpaths.cpp @@ -29,6 +29,7 @@ #include "wx/stdpaths.h" #ifndef WX_PRECOMP + #include "wx/wxcrt.h" #include "wx/utils.h" #endif //WX_PRECOMP @@ -65,7 +66,7 @@ wxString wxStandardPaths::GetInstallPrefix() const { if ( m_prefix.empty() ) { - wx_const_cast(wxStandardPaths *, this)->m_prefix = wxT("/sys$system"); + const_cast(this)->m_prefix = wxT("/sys$system"); } return m_prefix; @@ -172,7 +173,7 @@ wxString wxStandardPaths::GetInstallPrefix() const { if ( m_prefix.empty() ) { - wxStandardPaths *pathPtr = wx_const_cast(wxStandardPaths *, this); + wxStandardPaths *pathPtr = const_cast(this); pathPtr->DetectPrefix(); }