summaryrefslogtreecommitdiff
path: root/sw/source/uibase/utlui/unotools.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2015-09-06 12:05:08 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-09-07 06:56:57 +0000
commit9af27324f5f5ef9bd340c6df8640b146a3eba21c (patch)
tree1bab2dbd1185adf86714718f5fb1a757c1a101e9 /sw/source/uibase/utlui/unotools.cxx
parent67a5fbeb8e2d6775ff6bd7bfd35ff5027d38457c (diff)
convert Link<> to typed
Change-Id: I38f2c15b4f8bb1d7187b019d26a2644b087898c1 Reviewed-on: https://gerrit.libreoffice.org/18357 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sw/source/uibase/utlui/unotools.cxx')
-rw-r--r--sw/source/uibase/utlui/unotools.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/uibase/utlui/unotools.cxx b/sw/source/uibase/utlui/unotools.cxx
index d3479b089e6c..cd5ab414e469 100644
--- a/sw/source/uibase/utlui/unotools.cxx
+++ b/sw/source/uibase/utlui/unotools.cxx
@@ -457,7 +457,7 @@ void SwOneExampleFrame::CreatePopup(const Point& rPt)
aPop.InsertItem(ITEM_UP, rArr.GetString(rArr.FindIndex(ST_MENU_UP )));
aPop.InsertItem(ITEM_DOWN, rArr.GetString(rArr.FindIndex(ST_MENU_DOWN )));
- Link<> aSelLk = LINK(this, SwOneExampleFrame, PopupHdl );
+ Link<Menu*,bool> aSelLk = LINK(this, SwOneExampleFrame, PopupHdl );
aPop.SetSelectHdl(aSelLk);
if(EX_SHOW_ONLINE_LAYOUT == nStyleFlags)
{
@@ -486,7 +486,7 @@ void SwOneExampleFrame::CreatePopup(const Point& rPt)
}
-IMPL_LINK(SwOneExampleFrame, PopupHdl, Menu*, pMenu )
+IMPL_LINK_TYPED(SwOneExampleFrame, PopupHdl, Menu*, pMenu, bool )
{
sal_uInt16 nId = pMenu->GetCurItemId();
if ((nId > ITEM_ZOOM) &&
@@ -511,7 +511,7 @@ IMPL_LINK(SwOneExampleFrame, PopupHdl, Menu*, pMenu )
else
xScrCrsr->screenDown();
}
- return 0;
+ return false;
};
SwFrmCtrlWindow::SwFrmCtrlWindow(vcl::Window* pParent, SwOneExampleFrame* pFrame)