summaryrefslogtreecommitdiff
path: root/svx/source/fmcomp
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-08-19 09:11:34 +0200
committerNoel Grandin <noel@peralex.com>2015-08-26 11:15:35 +0200
commit167bc621ef825ed5b961502fe9324a675ee34e42 (patch)
tree523838d8adc14a62f846529ee6eab3343b2fe87b /svx/source/fmcomp
parent46a27805fb707544a844a961a3743b8b992282f0 (diff)
Convert vcl Button Link<> click handler to typed Link<Button*,void>
Change-Id: Ie80dfb003118d40741549c41ebcc7eda4819f05b
Diffstat (limited to 'svx/source/fmcomp')
-rw-r--r--svx/source/fmcomp/gridctrl.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/svx/source/fmcomp/gridctrl.cxx b/svx/source/fmcomp/gridctrl.cxx
index 5f986986b099..b4d305da16d2 100644
--- a/svx/source/fmcomp/gridctrl.cxx
+++ b/svx/source/fmcomp/gridctrl.cxx
@@ -500,7 +500,7 @@ sal_uInt16 DbGridControl::NavigationBar::ArrangeControls()
return nX;
}
-IMPL_LINK(DbGridControl::NavigationBar, OnClick, Button *, pButton )
+IMPL_LINK_TYPED(DbGridControl::NavigationBar, OnClick, Button *, pButton, void )
{
DbGridControl* pParent = static_cast<DbGridControl*>(GetParent());
@@ -520,7 +520,7 @@ IMPL_LINK(DbGridControl::NavigationBar, OnClick, Button *, pButton )
if (lResult)
// the link already handled it
- return 0;
+ return;
}
if (pButton == m_aFirstBtn.get())
@@ -533,7 +533,6 @@ IMPL_LINK(DbGridControl::NavigationBar, OnClick, Button *, pButton )
pParent->MoveToLast();
else if( pButton == m_aNewBtn.get() )
pParent->AppendNew();
- return 0;
}
void DbGridControl::NavigationBar::InvalidateAll(sal_Int32 nCurrentPos, bool bAll)