X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f3d793069fabb42b4219faa3bcd29216c121c086..a2abe5f08113b25ce20c1710c7361d27a5cb12eb:/src/unix/stdpaths.cpp diff --git a/src/unix/stdpaths.cpp b/src/unix/stdpaths.cpp index 4089a9e06e..c26f6d706c 100644 --- a/src/unix/stdpaths.cpp +++ b/src/unix/stdpaths.cpp @@ -6,7 +6,7 @@ // Created: 2004-10-19 // RCS-ID: $Id$ // Copyright: (c) 2004 Vadim Zeitlin -// License: wxWindows license +// Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// // ============================================================================ @@ -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;