X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d14a1e28567de23c586bc80017073d0c39f8d18f..2421eb827857325ff4886131c337391365986d6b:/wxPython/src/_tipwin.i?ds=inline diff --git a/wxPython/src/_tipwin.i b/wxPython/src/_tipwin.i index 5c908e2587..cb9b941879 100644 --- a/wxPython/src/_tipwin.i +++ b/wxPython/src/_tipwin.i @@ -35,11 +35,10 @@ public: %extend { wxTipWindow(wxWindow *parent, - const wxString* text, + const wxString& text, wxCoord maxLength = 100, wxRect* rectBound = NULL) { - wxString tmp = *text; - return new wxTipWindow(parent, tmp, maxLength, NULL, rectBound); + return new wxTipWindow(parent, text, maxLength, NULL, rectBound); } }