diff options
author | Noel Grandin <noel@peralex.com> | 2015-09-11 09:53:51 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-09-14 10:00:43 +0200 |
commit | 6532cb0e5ec3a59c248b332e868c4c03c31659f1 (patch) | |
tree | d855f456bd5a1e2aadc3be54e92094c9ed53c2f6 /vcl | |
parent | bcb5756cb0997923ea565459440767e22ce34e7d (diff) |
ImplCallEventListeners and FireVclEvent can take references
Change-Id: Ibfb5ae40edd0db1f6b99bd5178d4d871ede37d7d
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/app/svapp.cxx | 4 | ||||
-rw-r--r-- | vcl/source/window/event.cxx | 6 | ||||
-rw-r--r-- | vcl/source/window/menu.cxx | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/vcl/source/app/svapp.cxx b/vcl/source/app/svapp.cxx index 8f561725fc65..0295b915de00 100644 --- a/vcl/source/app/svapp.cxx +++ b/vcl/source/app/svapp.cxx @@ -665,12 +665,12 @@ void Application::ImplCallEventListeners( sal_uLong nEvent, vcl::Window *pWin, v pSVData->maAppData.mpEventListeners->Call( &aEvent ); } -void Application::ImplCallEventListeners( VclSimpleEvent* pEvent ) +void Application::ImplCallEventListeners( VclSimpleEvent& rEvent ) { ImplSVData* pSVData = ImplGetSVData(); if ( pSVData->maAppData.mpEventListeners ) - pSVData->maAppData.mpEventListeners->Call( pEvent ); + pSVData->maAppData.mpEventListeners->Call( &rEvent ); } void Application::AddEventListener( const Link<>& rEventListener ) diff --git a/vcl/source/window/event.cxx b/vcl/source/window/event.cxx index 8fcc65bf3735..d2ac5b709bfd 100644 --- a/vcl/source/window/event.cxx +++ b/vcl/source/window/event.cxx @@ -206,7 +206,7 @@ void Window::CallEventListeners( sal_uLong nEvent, void* pData ) ImplDelData aDelData; ImplAddDel( &aDelData ); - Application::ImplCallEventListeners( &aEvent ); + Application::ImplCallEventListeners( aEvent ); if ( aDelData.IsDead() ) return; @@ -237,9 +237,9 @@ void Window::CallEventListeners( sal_uLong nEvent, void* pData ) } } -void Window::FireVclEvent( VclSimpleEvent* pEvent ) +void Window::FireVclEvent( VclSimpleEvent& rEvent ) { - Application::ImplCallEventListeners(pEvent); + Application::ImplCallEventListeners(rEvent); } void Window::AddEventListener( const Link<>& rEventListener ) diff --git a/vcl/source/window/menu.cxx b/vcl/source/window/menu.cxx index 98d9740bedab..e6273775c503 100644 --- a/vcl/source/window/menu.cxx +++ b/vcl/source/window/menu.cxx @@ -336,7 +336,7 @@ void Menu::ImplCallEventListeners( sal_uLong nEvent, sal_uInt16 nPos ) // This is needed by atk accessibility bridge if ( nEvent == VCLEVENT_MENU_HIGHLIGHT ) { - Application::ImplCallEventListeners( &aEvent ); + Application::ImplCallEventListeners( aEvent ); } if ( !aDelData.isDeleted() ) |