]> git.saurik.com Git - wxWidgets.git/blobdiff - src/unix/stdpaths.cpp
Use symbolic names for popup menu ids in wxEVT_MENU_HIGHLIGHT events in wxMSW.
[wxWidgets.git] / src / unix / stdpaths.cpp
index 4089a9e06eb917a8f5a3467e833ebfff79e64ba6..64ac00cc22456b5f72e946dde490b562161aa105 100644 (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;