diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2015-09-25 11:40:34 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-09-26 05:27:04 +0000 |
commit | 73b158e00177b7abd3f0c43dfdc3c3de1321e212 (patch) | |
tree | 3cc33ace6936730bea6a1e0e9d0ea1b34f4519bc | |
parent | 18c196f0190d9920673cdd9a4dbc158f08959cfd (diff) |
convert Link<> to typed
Change-Id: If1dcc5e50b08540623bb21067c5f74e47192ef9a
Reviewed-on: https://gerrit.libreoffice.org/18859
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
-rw-r--r-- | cui/source/dialogs/cuifmsearch.cxx | 2 | ||||
-rw-r--r-- | cui/source/factory/dlgfact.cxx | 2 | ||||
-rw-r--r-- | cui/source/factory/dlgfact.hxx | 2 | ||||
-rw-r--r-- | cui/source/inc/cuifmsearch.hxx | 4 | ||||
-rw-r--r-- | dbaccess/source/ui/browser/brwctrlr.cxx | 6 | ||||
-rw-r--r-- | dbaccess/source/ui/inc/brwctrlr.hxx | 2 | ||||
-rw-r--r-- | include/svx/svxdlg.hxx | 2 | ||||
-rw-r--r-- | svx/source/form/fmshimp.cxx | 13 | ||||
-rw-r--r-- | svx/source/inc/fmshimp.hxx | 2 |
9 files changed, 16 insertions, 19 deletions
diff --git a/cui/source/dialogs/cuifmsearch.cxx b/cui/source/dialogs/cuifmsearch.cxx index bb410ac5b460..a51a017a954c 100644 --- a/cui/source/dialogs/cuifmsearch.cxx +++ b/cui/source/dialogs/cuifmsearch.cxx @@ -751,7 +751,7 @@ IMPL_LINK_TYPED(FmSearchDialog, OnSearchProgress, const FmSearchProgress*, pProg friInfo.nContext = m_plbForm->GetSelectEntryPos(); // if I don't do a search in a context, this has an invalid value - but then it doesn't matter anyway friInfo.aPosition = pProgress->aBookmark; - m_lnkCanceledNotFoundHdl.Call(&friInfo); + m_lnkCanceledNotFoundHdl.Call(friInfo); } break; } diff --git a/cui/source/factory/dlgfact.cxx b/cui/source/factory/dlgfact.cxx index 5b00fd1e0864..f81372a3e4ab 100644 --- a/cui/source/factory/dlgfact.cxx +++ b/cui/source/factory/dlgfact.cxx @@ -698,7 +698,7 @@ void AbstractFmSearchDialog_Impl::SetFoundHandler(const Link<FmFoundRecordInform { pDlg->SetFoundHandler(lnk); } -void AbstractFmSearchDialog_Impl::SetCanceledNotFoundHdl(const Link<>& lnk) +void AbstractFmSearchDialog_Impl::SetCanceledNotFoundHdl(const Link<FmFoundRecordInformation&,void>& lnk) { pDlg->SetCanceledNotFoundHdl(lnk); } diff --git a/cui/source/factory/dlgfact.hxx b/cui/source/factory/dlgfact.hxx index 2fd4ebf42954..5e94fcb09947 100644 --- a/cui/source/factory/dlgfact.hxx +++ b/cui/source/factory/dlgfact.hxx @@ -394,7 +394,7 @@ class AbstractFmSearchDialog_Impl :public AbstractFmSearchDialog { DECL_ABSTDLG_BASE(AbstractFmSearchDialog_Impl,FmSearchDialog) virtual void SetFoundHandler(const Link<FmFoundRecordInformation&,void>& lnk) SAL_OVERRIDE ; - virtual void SetCanceledNotFoundHdl(const Link<>& lnk) SAL_OVERRIDE; + virtual void SetCanceledNotFoundHdl(const Link<FmFoundRecordInformation&,void>& lnk) SAL_OVERRIDE; virtual void SetActiveField(const OUString& strField) SAL_OVERRIDE; }; diff --git a/cui/source/inc/cuifmsearch.hxx b/cui/source/inc/cuifmsearch.hxx index c52fd387cdf9..eb304a7850ba 100644 --- a/cui/source/inc/cuifmsearch.hxx +++ b/cui/source/inc/cuifmsearch.hxx @@ -79,7 +79,7 @@ class FmSearchDialog : public ModalDialog VclPtr<vcl::Window> m_pPreSearchFocus; Link<FmFoundRecordInformation&,void> m_lnkFoundHandler; ///< Handler for "found" - Link<> m_lnkCanceledNotFoundHdl; ///< Handler for Positioning the Cursors + Link<FmFoundRecordInformation&,void> m_lnkCanceledNotFoundHdl; ///< Handler for Positioning the Cursors Link<FmSearchContext&,sal_uInt32> m_lnkContextSupplier; ///< for search in contexts @@ -127,7 +127,7 @@ public: The pointer that is passed to the handler points to a FmFoundRecordInformation-structure, for which aPosition and possibly (in a search with contexts) nContext are valid. */ - void SetCanceledNotFoundHdl(const Link<>& lnk) { m_lnkCanceledNotFoundHdl = lnk; } + void SetCanceledNotFoundHdl(const Link<FmFoundRecordInformation&,void>& lnk) { m_lnkCanceledNotFoundHdl = lnk; } inline void SetActiveField(const OUString& strField); diff --git a/dbaccess/source/ui/browser/brwctrlr.cxx b/dbaccess/source/ui/browser/brwctrlr.cxx index 10fbab45ed52..b0b8d6bce908 100644 --- a/dbaccess/source/ui/browser/brwctrlr.cxx +++ b/dbaccess/source/ui/browser/brwctrlr.cxx @@ -2404,7 +2404,7 @@ IMPL_LINK_TYPED(SbaXDataBrowserController, OnFoundData, FmFoundRecordInformation xGrid->setCurrentColumnPosition(nViewPos); } -IMPL_LINK(SbaXDataBrowserController, OnCanceledNotFound, FmFoundRecordInformation*, pInfo) +IMPL_LINK_TYPED(SbaXDataBrowserController, OnCanceledNotFound, FmFoundRecordInformation&, rInfo, void) { Reference< css::sdbcx::XRowLocate > xCursor(getRowSet(), UNO_QUERY); @@ -2412,7 +2412,7 @@ IMPL_LINK(SbaXDataBrowserController, OnCanceledNotFound, FmFoundRecordInformatio { OSL_ENSURE(xCursor.is(), "SbaXDataBrowserController::OnCanceledNotFound : xCursor is empty"); // move the cursor - xCursor->moveToBookmark(pInfo->aPosition); + xCursor->moveToBookmark(rInfo.aPosition); } catch( const Exception& ) { @@ -2432,8 +2432,6 @@ IMPL_LINK(SbaXDataBrowserController, OnCanceledNotFound, FmFoundRecordInformatio { DBG_UNHANDLED_EXCEPTION(); } - - return 0L; } IMPL_LINK_NOARG_TYPED(SbaXDataBrowserController, OnAsyncGetCellFocus, void*, void) diff --git a/dbaccess/source/ui/inc/brwctrlr.hxx b/dbaccess/source/ui/inc/brwctrlr.hxx index e340c0426891..4005aaf8009b 100644 --- a/dbaccess/source/ui/inc/brwctrlr.hxx +++ b/dbaccess/source/ui/inc/brwctrlr.hxx @@ -333,7 +333,7 @@ namespace dbaui // search callbacks DECL_LINK_TYPED(OnSearchContextRequest, FmSearchContext&, sal_uInt32); DECL_LINK_TYPED(OnFoundData, FmFoundRecordInformation&, void); - DECL_LINK(OnCanceledNotFound, FmFoundRecordInformation*); + DECL_LINK_TYPED(OnCanceledNotFound, FmFoundRecordInformation&, void); DECL_LINK_TYPED( OnAsyncGetCellFocus, void*, void ); DECL_LINK_TYPED( OnAsyncDisplayError, void*, void ); diff --git a/include/svx/svxdlg.hxx b/include/svx/svxdlg.hxx index 30f0dacfa18b..de777fe2658b 100644 --- a/include/svx/svxdlg.hxx +++ b/include/svx/svxdlg.hxx @@ -203,7 +203,7 @@ class AbstractFmSearchDialog :public VclAbstractDialog { public: virtual void SetFoundHandler(const Link<FmFoundRecordInformation&,void>& lnk) = 0; - virtual void SetCanceledNotFoundHdl(const Link<>& lnk)=0; + virtual void SetCanceledNotFoundHdl(const Link<FmFoundRecordInformation&,void>& lnk)=0; virtual void SetActiveField(const OUString& strField)=0; }; diff --git a/svx/source/form/fmshimp.cxx b/svx/source/form/fmshimp.cxx index c82829ae8234..80b90a1f70bd 100644 --- a/svx/source/form/fmshimp.cxx +++ b/svx/source/form/fmshimp.cxx @@ -2282,24 +2282,24 @@ IMPL_LINK_TYPED(FmXFormShell, OnFoundData, FmFoundRecordInformation&, rfriWhere, } -IMPL_LINK(FmXFormShell, OnCanceledNotFound, FmFoundRecordInformation*, pfriWhere) +IMPL_LINK_TYPED(FmXFormShell, OnCanceledNotFound, FmFoundRecordInformation&, rfriWhere, void) { if ( impl_checkDisposed() ) - return 0; + return; - DBG_ASSERT((pfriWhere->nContext >= 0) && (pfriWhere->nContext < (sal_Int16)m_aSearchForms.size()), + DBG_ASSERT((rfriWhere.nContext >= 0) && (rfriWhere.nContext < (sal_Int16)m_aSearchForms.size()), "FmXFormShell::OnCanceledNotFound : ungueltiger Kontext !"); - Reference< XForm> xForm( m_aSearchForms.at(pfriWhere->nContext)); + Reference< XForm> xForm( m_aSearchForms.at(rfriWhere.nContext)); DBG_ASSERT(xForm.is(), "FmXFormShell::OnCanceledNotFound : ungueltige Form !"); Reference< XRowLocate> xCursor(xForm, UNO_QUERY); if (!xCursor.is()) - return 0; // was soll ich da machen ? + return; // was soll ich da machen ? // zum Datensatz try { - xCursor->moveToBookmark(pfriWhere->aPosition); + xCursor->moveToBookmark(rfriWhere.aPosition); } catch(const SQLException&) { @@ -2308,7 +2308,6 @@ IMPL_LINK(FmXFormShell, OnCanceledNotFound, FmFoundRecordInformation*, pfriWhere m_pShell->GetFormView()->UnMarkAll(m_pShell->GetFormView()->GetSdrPageView()); - return 0L; } diff --git a/svx/source/inc/fmshimp.hxx b/svx/source/inc/fmshimp.hxx index 521e7fb9b02a..e23f3002ec1e 100644 --- a/svx/source/inc/fmshimp.hxx +++ b/svx/source/inc/fmshimp.hxx @@ -465,7 +465,7 @@ public: private: DECL_DLLPRIVATE_LINK_TYPED(OnFoundData, FmFoundRecordInformation&, void); - DECL_DLLPRIVATE_LINK(OnCanceledNotFound, FmFoundRecordInformation*); + DECL_DLLPRIVATE_LINK_TYPED(OnCanceledNotFound, FmFoundRecordInformation&, void); DECL_DLLPRIVATE_LINK_TYPED(OnSearchContextRequest, FmSearchContext&, sal_uInt32); DECL_DLLPRIVATE_LINK_TYPED(OnTimeOut, Timer*, void); DECL_DLLPRIVATE_LINK_TYPED(OnFirstTimeActivation, void*, void); |