]> git.saurik.com Git - wxWidgets.git/commitdiff
Returned value from operator=
authorJulian Smart <julian@anthemion.co.uk>
Sun, 21 Jul 2002 21:45:40 +0000 (21:45 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Sun, 21 Jul 2002 21:45:40 +0000 (21:45 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16245 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/event.h

index 2b0ae04730e4f283b43402029660f253d870445f..ec45c09279c5a9cfbe1d97cfb2833f88810bee22 100644 (file)
@@ -743,7 +743,7 @@ public:
 
     virtual wxEvent *Clone() const { return new wxMouseEvent(*this); }
 
-    wxMouseEvent& operator=(const wxMouseEvent& event) { Assign(event); }
+    wxMouseEvent& operator=(const wxMouseEvent& event) { Assign(event); return *this; }
 
 public:
     wxCoord m_x, m_y;