git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47010
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
void SetConfigPath(const wxString& prefix);
// return default config path
void SetConfigPath(const wxString& prefix);
// return default config path
- static const wxChar *GetDefaultConfigPath();
+ static const wxString& GetDefaultConfigPath();
// config usage customisation
// ----------------------------------------------------------------------------
// config usage customisation
// ----------------------------------------------------------------------------
+
+static wxString gs_defaultConfigPath(FONTMAPPER_ROOT_PATH);
+
-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)
}
void wxFontMapperBase::SetConfigPath(const wxString& prefix)