Compilation fix for STL build.
Don't rely on implicit conversion of wxString to char* in wxStandardPaths::GetDataDir() added in r62337. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62361 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -197,7 +197,11 @@ wxString wxStandardPaths::GetDataDir() const
|
|||||||
// practice for running well-written (and so using wxStandardPaths to find
|
// practice for running well-written (and so using wxStandardPaths to find
|
||||||
// their files) wx applications without installing them
|
// their files) wx applications without installing them
|
||||||
static const wxString
|
static const wxString
|
||||||
envOverride(getenv("WX_" + wxTheApp->GetAppName().Upper() + "_DATA_DIR"));
|
envOverride(
|
||||||
|
getenv(
|
||||||
|
("WX_" + wxTheApp->GetAppName().Upper() + "_DATA_DIR").c_str()
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
if ( !envOverride.empty() )
|
if ( !envOverride.empty() )
|
||||||
return envOverride;
|
return envOverride;
|
||||||
|
|||||||
Reference in New Issue
Block a user