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:
Vadim Zeitlin
2009-10-10 18:28:34 +00:00
parent 6da1d056ca
commit 3781248c7d

View File

@@ -197,7 +197,11 @@ wxString wxStandardPaths::GetDataDir() const
// practice for running well-written (and so using wxStandardPaths to find
// their files) wx applications without installing them
static const wxString
envOverride(getenv("WX_" + wxTheApp->GetAppName().Upper() + "_DATA_DIR"));
envOverride(
getenv(
("WX_" + wxTheApp->GetAppName().Upper() + "_DATA_DIR").c_str()
)
);
if ( !envOverride.empty() )
return envOverride;