summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-09-11 09:53:51 +0200
committerNoel Grandin <noel@peralex.com>2015-09-14 10:00:43 +0200
commit6532cb0e5ec3a59c248b332e868c4c03c31659f1 (patch)
treed855f456bd5a1e2aadc3be54e92094c9ed53c2f6
parentbcb5756cb0997923ea565459440767e22ce34e7d (diff)
ImplCallEventListeners and FireVclEvent can take references
Change-Id: Ibfb5ae40edd0db1f6b99bd5178d4d871ede37d7d
-rw-r--r--include/vcl/svapp.hxx2
-rw-r--r--include/vcl/window.hxx2
-rw-r--r--sc/source/ui/cctrl/checklistmenu.cxx2
-rw-r--r--vcl/source/app/svapp.cxx4
-rw-r--r--vcl/source/window/event.cxx6
-rw-r--r--vcl/source/window/menu.cxx2
6 files changed, 9 insertions, 9 deletions
diff --git a/include/vcl/svapp.hxx b/include/vcl/svapp.hxx
index bdfa88d02440..17210124ed8c 100644
--- a/include/vcl/svapp.hxx
+++ b/include/vcl/svapp.hxx
@@ -804,7 +804,7 @@ public:
@see ImplCallEventListeners(sal_uLong nEvent, Windows* pWin, void* pData);
*/
- static void ImplCallEventListeners( VclSimpleEvent* pEvent );
+ static void ImplCallEventListeners( VclSimpleEvent& rEvent );
/** Handle keypress event
diff --git a/include/vcl/window.hxx b/include/vcl/window.hxx
index 63be0ac19f2c..13eb1db909a8 100644
--- a/include/vcl/window.hxx
+++ b/include/vcl/window.hxx
@@ -800,7 +800,7 @@ protected:
void SetCompoundControl( bool bCompound );
void CallEventListeners( sal_uLong nEvent, void* pData = NULL );
- static void FireVclEvent( VclSimpleEvent* pEvent );
+ static void FireVclEvent( VclSimpleEvent& rEvent );
virtual bool AcquireGraphics() const SAL_OVERRIDE;
virtual void ReleaseGraphics( bool bRelease = true ) SAL_OVERRIDE;
diff --git a/sc/source/ui/cctrl/checklistmenu.cxx b/sc/source/ui/cctrl/checklistmenu.cxx
index b917770965cd..4fae698269fa 100644
--- a/sc/source/ui/cctrl/checklistmenu.cxx
+++ b/sc/source/ui/cctrl/checklistmenu.cxx
@@ -779,7 +779,7 @@ void ScMenuFloatingWindow::fireMenuHighlightedEvent()
return;
VclAccessibleEvent aEvent(VCLEVENT_MENU_HIGHLIGHT, xAccMenu);
- FireVclEvent(&aEvent);
+ FireVclEvent(aEvent);
}
void ScMenuFloatingWindow::setSubMenuFocused(ScMenuFloatingWindow* pSubMenu)
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() )