summaryrefslogtreecommitdiff
path: root/fpicker
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-10-15 08:13:49 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-10-16 09:11:29 +0000
commit6f1313b3d44ea54e9a331e0fc00871081fa662fe (patch)
treefa6d9b6da04daedcb63ea2a0bc8c414288ed8bc6 /fpicker
parent14bf708ef586b15dffed66ffaf524baf4d8fcbfa (diff)
convert Link<> to typed
Change-Id: Icbba339dac0be31e30dff021bba06a219f8aecd6 Reviewed-on: https://gerrit.libreoffice.org/19405 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'fpicker')
-rw-r--r--fpicker/source/office/QueryFolderName.hxx2
-rw-r--r--fpicker/source/office/RemoteFilesDialog.cxx4
-rw-r--r--fpicker/source/office/RemoteFilesDialog.hxx2
-rw-r--r--fpicker/source/office/iodlg.cxx7
-rw-r--r--fpicker/source/office/iodlg.hxx2
5 files changed, 6 insertions, 11 deletions
diff --git a/fpicker/source/office/QueryFolderName.hxx b/fpicker/source/office/QueryFolderName.hxx
index 0783b2a86778..4b197f84dbee 100644
--- a/fpicker/source/office/QueryFolderName.hxx
+++ b/fpicker/source/office/QueryFolderName.hxx
@@ -33,7 +33,7 @@ private:
VclPtr<OKButton> m_pOKBtn;
DECL_LINK_TYPED( OKHdl, Button*, void );
- DECL_LINK( NameHdl, void * );
+ DECL_LINK_TYPED( NameHdl, Edit&, void );
public:
QueryFolderNameDialog(vcl::Window* _pParent, const OUString& rTitle,
diff --git a/fpicker/source/office/RemoteFilesDialog.cxx b/fpicker/source/office/RemoteFilesDialog.cxx
index 086db2cf916d..e54e16e82914 100644
--- a/fpicker/source/office/RemoteFilesDialog.cxx
+++ b/fpicker/source/office/RemoteFilesDialog.cxx
@@ -987,13 +987,11 @@ IMPL_LINK_NOARG_TYPED( RemoteFilesDialog, FileNameGetFocusHdl, Control&, void )
m_pFileView->SetNoSelection();
}
-IMPL_LINK_NOARG( RemoteFilesDialog, FileNameModifyHdl )
+IMPL_LINK_NOARG_TYPED( RemoteFilesDialog, FileNameModifyHdl, Edit&, void )
{
m_pFileView->SetNoSelection();
if( !m_pOk_btn->IsEnabled() )
EnableControls();
-
- return 1;
}
IMPL_LINK_NOARG_TYPED( RemoteFilesDialog, SplitHdl, Splitter*, void )
diff --git a/fpicker/source/office/RemoteFilesDialog.hxx b/fpicker/source/office/RemoteFilesDialog.hxx
index cf5bdd5d1cd4..f9af46a88da4 100644
--- a/fpicker/source/office/RemoteFilesDialog.hxx
+++ b/fpicker/source/office/RemoteFilesDialog.hxx
@@ -193,7 +193,7 @@ private:
DECL_LINK_TYPED( SelectHdl, SvTreeListBox*, void );
DECL_LINK_TYPED( FileNameGetFocusHdl, Control&, void );
- DECL_LINK( FileNameModifyHdl, void * );
+ DECL_LINK_TYPED( FileNameModifyHdl, Edit&, void );
DECL_LINK_TYPED( SplitHdl, Splitter*, void );
diff --git a/fpicker/source/office/iodlg.cxx b/fpicker/source/office/iodlg.cxx
index 9e843e97c82b..5eb5f8efedd1 100644
--- a/fpicker/source/office/iodlg.cxx
+++ b/fpicker/source/office/iodlg.cxx
@@ -1318,10 +1318,9 @@ IMPL_LINK_NOARG_TYPED( SvtFileDialog, FileNameGetFocusHdl_Impl, Control&, void )
-IMPL_LINK_NOARG( SvtFileDialog, FileNameModifiedHdl_Impl )
+IMPL_LINK_NOARG_TYPED( SvtFileDialog, FileNameModifiedHdl_Impl, Edit&, void )
{
FileNameGetFocusHdl_Impl( *_pImp->_pEdFileName );
- return 0;
}
@@ -2913,7 +2912,7 @@ IMPL_LINK_NOARG_TYPED(QueryFolderNameDialog, OKHdl, Button*, void)
}
-IMPL_LINK_NOARG(QueryFolderNameDialog, NameHdl)
+IMPL_LINK_NOARG_TYPED(QueryFolderNameDialog, NameHdl, Edit&, void)
{
// trim the strings
OUString aName = comphelper::string::strip(m_pNameEdit->GetText(), ' ');
@@ -2927,8 +2926,6 @@ IMPL_LINK_NOARG(QueryFolderNameDialog, NameHdl)
if ( m_pOKBtn->IsEnabled() )
m_pOKBtn->Enable( false );
}
-
- return 0;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/fpicker/source/office/iodlg.hxx b/fpicker/source/office/iodlg.hxx
index 05f13063b873..9469078c93f9 100644
--- a/fpicker/source/office/iodlg.hxx
+++ b/fpicker/source/office/iodlg.hxx
@@ -92,7 +92,7 @@ private:
DECL_LINK_TYPED( OpenClickHdl_Impl, Button*, void );
DECL_LINK_TYPED( CancelHdl_Impl, Button*, void );
DECL_LINK_TYPED( FileNameGetFocusHdl_Impl, Control&, void );
- DECL_LINK( FileNameModifiedHdl_Impl, void* );
+ DECL_LINK_TYPED( FileNameModifiedHdl_Impl, Edit&, void );
DECL_LINK_TYPED( URLBoxModifiedHdl_Impl, SvtURLBox*, void );
DECL_LINK_TYPED( ConnectToServerPressed_Hdl, Button*, void );