return const wxString& from wxFontMapper::GetDefaultConfigPath()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47010 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -122,7 +122,7 @@ public:
|
|||||||
void SetConfigPath(const wxString& prefix);
|
void SetConfigPath(const wxString& prefix);
|
||||||
|
|
||||||
// return default config path
|
// return default config path
|
||||||
static const wxChar *GetDefaultConfigPath();
|
static const wxString& GetDefaultConfigPath();
|
||||||
#endif // wxUSE_CONFIG
|
#endif // wxUSE_CONFIG
|
||||||
|
|
||||||
|
|
||||||
|
@@ -337,10 +337,15 @@ void wxFontMapperBase::Reset()
|
|||||||
// config usage customisation
|
// config usage customisation
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
static wxString gs_defaultConfigPath(FONTMAPPER_ROOT_PATH);
|
||||||
|
|
||||||
/* static */
|
/* 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)
|
void wxFontMapperBase::SetConfigPath(const wxString& prefix)
|
||||||
|
Reference in New Issue
Block a user