]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/_tipwin.i
updated Joystick demo, is now wxDesigner-less
[wxWidgets.git] / wxPython / src / _tipwin.i
index 5c908e258783435bcab117e89ec65cd9bd733e83..cb9b94187975ab3bc900b3ade1fd3a0f2493806f 100644 (file)
@@ -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);
         }
     }