summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-09-14 11:38:47 +0200
committerNoel Grandin <noel@peralex.com>2015-09-15 09:37:31 +0200
commite0f617aa586d7d9c7094b3cfcc9d4d765e154283 (patch)
tree5eeb21ca57617aa62e71571040ffc88792c5b8c8
parent55cdab3b8b74a29008186050e34d7f05c121c2f7 (diff)
convert Link<> to typed
Change-Id: I8cd997f55f4c7206358cba9edd3d41dbedd4363f
-rw-r--r--fpicker/source/office/iodlg.cxx4
-rw-r--r--fpicker/source/office/iodlg.hxx2
-rw-r--r--include/svtools/fileview.hxx2
-rw-r--r--svtools/source/contnr/fileview.cxx4
4 files changed, 5 insertions, 7 deletions
diff --git a/fpicker/source/office/iodlg.cxx b/fpicker/source/office/iodlg.cxx
index 7872042d8e3d..a482e9b0e17e 100644
--- a/fpicker/source/office/iodlg.cxx
+++ b/fpicker/source/office/iodlg.cxx
@@ -1614,7 +1614,7 @@ IMPL_LINK_NOARG(SvtFileDialog, EntrySelectHdl_Impl)
-IMPL_LINK( SvtFileDialog, OpenDoneHdl_Impl, SvtFileView*, pView )
+IMPL_LINK_TYPED( SvtFileDialog, OpenDoneHdl_Impl, SvtFileView*, pView, void )
{
OUString sCurrentFolder( pView->GetViewURL() );
// check if we can create new folders
@@ -1632,8 +1632,6 @@ IMPL_LINK( SvtFileDialog, OpenDoneHdl_Impl, SvtFileView*, pView )
aCurrentFolder.removeSegment();
}
EnableControl( _pImp->_pBtnUp, bCanTravelUp );
-
- return 0;
}
diff --git a/fpicker/source/office/iodlg.hxx b/fpicker/source/office/iodlg.hxx
index 5d1c3dc648e0..f214c3d394e9 100644
--- a/fpicker/source/office/iodlg.hxx
+++ b/fpicker/source/office/iodlg.hxx
@@ -123,7 +123,7 @@ private:
DECL_LINK_TYPED( SelectHdl_Impl, SvTreeListBox*, void );
DECL_LINK_TYPED( DblClickHdl_Impl, SvTreeListBox*, bool);
DECL_LINK(EntrySelectHdl_Impl, void *);
- DECL_LINK( OpenDoneHdl_Impl, SvtFileView* );
+ DECL_LINK_TYPED( OpenDoneHdl_Impl, SvtFileView*, void );
DECL_LINK_TYPED( AutoExtensionHdl_Impl, Button*, void);
DECL_LINK_TYPED( ClickHdl_Impl, Button*, void );
DECL_LINK_TYPED( PlayButtonHdl_Impl, Button*, void);
diff --git a/include/svtools/fileview.hxx b/include/svtools/fileview.hxx
index c57ed40f8079..4070e4a56078 100644
--- a/include/svtools/fileview.hxx
+++ b/include/svtools/fileview.hxx
@@ -160,7 +160,7 @@ public:
void SetSelectHdl( const Link<SvTreeListBox*,void>& rHdl );
void SetDoubleClickHdl( const Link<SvTreeListBox*,bool>& rHdl );
- void SetOpenDoneHdl( const Link<>& rHdl );
+ void SetOpenDoneHdl( const Link<SvtFileView*,void>& rHdl );
sal_uLong GetSelectionCount() const;
SvTreeListEntry* FirstSelected() const;
diff --git a/svtools/source/contnr/fileview.cxx b/svtools/source/contnr/fileview.cxx
index b4ab6a684645..2f4ef7bcf5f2 100644
--- a/svtools/source/contnr/fileview.cxx
+++ b/svtools/source/contnr/fileview.cxx
@@ -370,7 +370,7 @@ public:
OUString maAllFilter;
OUString maCurrentFilter;
Image maFolderImage;
- Link<> maOpenDoneLink;
+ Link<SvtFileView*,void> maOpenDoneLink;
Reference< XCommandEnvironment > mxCmdEnv;
SvtFileView_Impl( SvtFileView* pAntiImpl, Reference < XCommandEnvironment > xEnv,
@@ -1286,7 +1286,7 @@ const OUString& SvtFileView::GetViewURL() const
return mpImp->maViewURL;
}
-void SvtFileView::SetOpenDoneHdl( const Link<>& rHdl )
+void SvtFileView::SetOpenDoneHdl( const Link<SvtFileView*,void>& rHdl )
{
mpImp->maOpenDoneLink = rHdl;
}