X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9f7617cad6ad9873f4d2519a82e8f458d4cce2d9..35c63208f04930176aa34ec1fcabc4f3c19804b9:/src/common/fmapbase.cpp diff --git a/src/common/fmapbase.cpp b/src/common/fmapbase.cpp index 48e1b2e148..15b742ba22 100644 --- a/src/common/fmapbase.cpp +++ b/src/common/fmapbase.cpp @@ -31,6 +31,7 @@ #include "wx/log.h" #include "wx/intl.h" #include "wx/module.h" + #include "wx/wxcrtvararg.h" #endif //WX_PRECOMP #if defined(__WXMSW__) @@ -336,10 +337,15 @@ void wxFontMapperBase::Reset() // config usage customisation // ---------------------------------------------------------------------------- + +static wxString gs_defaultConfigPath(FONTMAPPER_ROOT_PATH); + /* static */ -const wxChar *wxFontMapperBase::GetDefaultConfigPath() +const wxString& wxFontMapperBase::GetDefaultConfigPath() { - return FONTMAPPER_ROOT_PATH; + // NB: we return const wxString& and not wxString for compatibility + // with 2.8 that returned const wxChar* + return gs_defaultConfigPath; } void wxFontMapperBase::SetConfigPath(const wxString& prefix)