X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c8bc7bb84dcca816055d5876e4772551c48acda5..546bfbea8180aeee5a16f4abb34e721445277305:/wxPython/src/misc.i diff --git a/wxPython/src/misc.i b/wxPython/src/misc.i index bae3d066b9..c0bf1d2e79 100644 --- a/wxPython/src/misc.i +++ b/wxPython/src/misc.i @@ -28,6 +28,11 @@ %import _defs.i +//--------------------------------------------------------------------------- +%{ + // Put some wx default wxChar* values into wxStrings. + static const wxString wxPyEmptyString(wxT("")); +%} //--------------------------------------------------------------------------- @@ -345,7 +350,7 @@ long wxGetFreeMemory(); void wxGetMousePosition(int* OUTPUT, int* OUTPUT); bool wxIsBusy(); wxString wxNow(); -bool wxShell(const wxString& command = wxEmptyString); +bool wxShell(const wxString& command = wxPyEmptyString); void wxStartTimer(); int wxGetOsVersion(int *OUTPUT, int *OUTPUT); wxString wxGetOsDescription(); @@ -358,7 +363,7 @@ void wxEnableTopLevelWindows(bool enable); %inline %{ wxString wxGetResource(const wxString& section, const wxString& entry, - const wxString& file = wxEmptyString) { + const wxString& file = wxPyEmptyString) { wxChar * retval; wxGetResource(section, entry, &retval, file); return retval; @@ -374,7 +379,7 @@ wxString wxGetFullHostName(); wxString wxGetUserId(); wxString wxGetUserName(); wxString wxGetHomeDir(); -wxString wxGetUserHome(const char* user = ""); +wxString wxGetUserHome(const wxString& user = wxPyEmptyString); // When wxApp gets the virtual method magic then enable this.