From 74b0c5d0bb91977a2392c8a58bba7f13595e4bfb Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Sat, 17 Jan 2015 18:46:32 +0100 Subject: Some more loplugin:cstylecast: fpicker Change-Id: I39e741c395a05f6f83e2e5db91a76cea87d06836 --- fpicker/source/office/iodlg.cxx | 6 +++--- fpicker/source/office/iodlg.hxx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/fpicker/source/office/iodlg.cxx b/fpicker/source/office/iodlg.cxx index 295a0e74df01..e706f0bbd2e4 100644 --- a/fpicker/source/office/iodlg.cxx +++ b/fpicker/source/office/iodlg.cxx @@ -1128,12 +1128,12 @@ void SvtFileDialog::EnableAutocompletion( bool _bEnable ) -IMPL_STATIC_LINK( SvtFileDialog, FilterSelectHdl_Impl, ListBox*, pBox ) +IMPL_STATIC_LINK( SvtFileDialog, FilterSelectHdl_Impl, void*, pInstance ) { - DBG_ASSERT( pBox, "SvtFileDialog:keine Instanz" ); + DBG_ASSERT( pInstance, "SvtFileDialog:keine Instanz" ); // was the handler executed by the travel timer? - if ( pBox == (ListBox*)&pThis->_pImp->_aFilterTimer ) + if ( pInstance == &pThis->_pImp->_aFilterTimer ) { // filter the view again pThis->ExecuteFilter(); diff --git a/fpicker/source/office/iodlg.hxx b/fpicker/source/office/iodlg.hxx index 1a1bc55f098d..d99bf4dbd125 100644 --- a/fpicker/source/office/iodlg.hxx +++ b/fpicker/source/office/iodlg.hxx @@ -112,7 +112,7 @@ private: bool m_bHasFilename; ::com::sun::star::uno::Reference < com::sun::star::uno::XComponentContext > m_context; - DECL_STATIC_LINK( SvtFileDialog, FilterSelectHdl_Impl, ListBox* ); + DECL_STATIC_LINK( SvtFileDialog, FilterSelectHdl_Impl, void* ); DECL_STATIC_LINK( SvtFileDialog, NewFolderHdl_Impl, PushButton* ); DECL_STATIC_LINK( SvtFileDialog, OpenHdl_Impl, void* ); DECL_LINK ( CancelHdl_Impl, void* ); -- cgit v1.2.3