Changed DispatchMouseEvent to take a & (ref).

This commit is contained in:
kmcclusk%netscape.com 1998-08-14 21:09:36 +00:00
parent fadc4d4beb
commit 83b9b44800
2 changed files with 3 additions and 2 deletions

View File

@ -1210,7 +1210,7 @@ PRBool nsWindow::DispatchEvent(nsGUIEvent* event)
// Deal with all sort of mouse event
//
//-------------------------------------------------------------------------
PRBool nsWindow::DispatchMouseEvent(nsMouseEvent aEvent)
PRBool nsWindow::DispatchMouseEvent(nsMouseEvent& aEvent)
{
PRBool result = PR_FALSE;
if (nsnull == mEventCallback && nsnull == mMouseListener) {
@ -1510,3 +1510,4 @@ extern "C" void nsWindow_ResizeWidget(Widget w)
win->SetResized(PR_TRUE);
}

View File

@ -122,7 +122,7 @@ public:
static PRBool ConvertStatus(nsEventStatus aStatus);
virtual PRBool DispatchEvent(nsGUIEvent* event);
virtual PRBool DispatchMouseEvent(nsMouseEvent aEvent);
virtual PRBool DispatchMouseEvent(nsMouseEvent& aEvent);
virtual void OnDestroy();
virtual PRBool OnPaint(nsPaintEvent &event);