X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d14a1e28567de23c586bc80017073d0c39f8d18f..e732529375cfcca3b0bc79c37e350cb7a80525c6:/wxPython/src/_tipwin.i 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); } }