X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ff65119eb257c86337573af44ef1094dfe28b08e..4e1c35f810f574af79e649fa37171dfa7fc775ee:/wxPython/contrib/dllwidget/dllwidget_.i diff --git a/wxPython/contrib/dllwidget/dllwidget_.i b/wxPython/contrib/dllwidget/dllwidget_.i index 52f4622f6e..e2e486942c 100644 --- a/wxPython/contrib/dllwidget/dllwidget_.i +++ b/wxPython/contrib/dllwidget/dllwidget_.i @@ -27,6 +27,13 @@ %extern windows.i %extern _defs.i +//---------------------------------------------------------------------- + +%{ + // Put some wx default wxChar* values into wxStrings. + static const wxString wxPyEmptyString(wxT("")); +%} + //--------------------------------------------------------------------------- /* @@ -82,8 +89,8 @@ class wxDllWidget : public wxPanel public: wxDllWidget(wxWindow *parent, wxWindowID id = -1, - const wxString& dllName = wxEmptyString, - const wxString& className = wxEmptyString, + const wxString& dllName = wxPyEmptyString, + const wxString& className = wxPyEmptyString, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0); @@ -92,7 +99,7 @@ public: bool Ok(); - int SendCommand(int cmd, const wxString& param = wxEmptyString); + int SendCommand(int cmd, const wxString& param = wxPyEmptyString); wxWindow* GetWidgetWindow(); static wxString GetDllExt();