diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-21 09:27:31 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-21 11:39:01 +0200 |
commit | 7ed178077cc1348d72ae936a2762085e278d79d0 (patch) | |
tree | 647c72fc783a77f2347ee06a63e22eee79fef99c /sfx2 | |
parent | bc7a68d06c0fd92b8eda473600438fd6dc2164c6 (diff) |
loplugin:constparams in sfx2
Change-Id: Id982c8fb5654433e9db10e2da6a86a6c8d90b9b4
Reviewed-on: https://gerrit.libreoffice.org/40261
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2')
56 files changed, 112 insertions, 113 deletions
diff --git a/sfx2/inc/fwkhelper.hxx b/sfx2/inc/fwkhelper.hxx index ab1b7ff77097..7a65cdfbfbbd 100644 --- a/sfx2/inc/fwkhelper.hxx +++ b/sfx2/inc/fwkhelper.hxx @@ -28,7 +28,7 @@ #include <rtl/ustring.hxx> SFX2_DLLPUBLIC void SAL_CALL RefreshToolbars( - css::uno::Reference< css::frame::XFrame >& rFrame + css::uno::Reference< css::frame::XFrame > const & rFrame ); #endif diff --git a/sfx2/source/appl/appdde.cxx b/sfx2/source/appl/appdde.cxx index 38dfd4fbc482..82734cfb759b 100644 --- a/sfx2/source/appl/appdde.cxx +++ b/sfx2/source/appl/appdde.cxx @@ -490,7 +490,7 @@ void SfxApplication::AddDdeTopic( SfxObjectShell* pSh ) } #endif -void SfxApplication::RemoveDdeTopic( SfxObjectShell* pSh ) +void SfxApplication::RemoveDdeTopic( SfxObjectShell const * pSh ) { #if defined(_WIN32) //OV: DDE is disconnected in server mode! diff --git a/sfx2/source/appl/appserv.cxx b/sfx2/source/appl/appserv.cxx index 0d155e3b29f5..49152fd2f4c0 100644 --- a/sfx2/source/appl/appserv.cxx +++ b/sfx2/source/appl/appserv.cxx @@ -1252,7 +1252,7 @@ namespace return OUString( "com.sun.star.script.BasicIDE"); } - SfxViewFrame* lcl_getBasicIDEViewFrame( SfxObjectShell* i_pBasicIDE ) + SfxViewFrame* lcl_getBasicIDEViewFrame( SfxObjectShell const * i_pBasicIDE ) { SfxViewFrame* pView = SfxViewFrame::GetFirst( i_pBasicIDE ); while ( pView ) diff --git a/sfx2/source/appl/childwin.cxx b/sfx2/source/appl/childwin.cxx index ef555a0a9628..6a911dc168cb 100644 --- a/sfx2/source/appl/childwin.cxx +++ b/sfx2/source/appl/childwin.cxx @@ -201,7 +201,7 @@ SfxChildWindow::~SfxChildWindow() SfxChildWindow* SfxChildWindow::CreateChildWindow( sal_uInt16 nId, - vcl::Window *pParent, SfxBindings* pBindings, SfxChildWinInfo& rInfo) + vcl::Window *pParent, SfxBindings* pBindings, SfxChildWinInfo const & rInfo) { SfxChildWindow *pChild=nullptr; SfxChildWinFactory* pFact=nullptr; @@ -618,7 +618,7 @@ void SfxChildWindow::Show( ShowFlags nFlags ) pWindow->Show(true, nFlags); } -vcl::Window* SfxChildWindow::GetContextWindow( SfxModule *pModule ) const +vcl::Window* SfxChildWindow::GetContextWindow( SfxModule const *pModule ) const { return pModule == pImpl->pContextModule && pContext ? pContext->GetWindow(): nullptr; } diff --git a/sfx2/source/appl/fwkhelper.cxx b/sfx2/source/appl/fwkhelper.cxx index 43aa910d801c..e61a210bc702 100644 --- a/sfx2/source/appl/fwkhelper.cxx +++ b/sfx2/source/appl/fwkhelper.cxx @@ -29,7 +29,7 @@ #include "workwin.hxx" #include <sfx2/frame.hxx> -void SAL_CALL RefreshToolbars( css::uno::Reference< css::frame::XFrame >& xFrame ) +void SAL_CALL RefreshToolbars( css::uno::Reference< css::frame::XFrame > const & xFrame ) { SolarMutexGuard aGuard; if ( xFrame.is() ) diff --git a/sfx2/source/appl/linkmgr2.cxx b/sfx2/source/appl/linkmgr2.cxx index f65cb81d5653..7492275c6000 100644 --- a/sfx2/source/appl/linkmgr2.cxx +++ b/sfx2/source/appl/linkmgr2.cxx @@ -100,7 +100,7 @@ void LinkManager::CloseCachedComps() maCachedComps.clear(); } -void LinkManager::Remove( SvBaseLink *pLink ) +void LinkManager::Remove( SvBaseLink const *pLink ) { // No duplicate links inserted bool bFound = false; @@ -329,7 +329,7 @@ void LinkManager::UpdateAllLinks( CloseCachedComps(); } -SvLinkSourceRef LinkManager::CreateObj( SvBaseLink * pLink ) +SvLinkSourceRef LinkManager::CreateObj( SvBaseLink const * pLink ) { switch( pLink->GetObjType() ) { diff --git a/sfx2/source/appl/linksrc.cxx b/sfx2/source/appl/linksrc.cxx index 623026586750..2ecffc5b02c4 100644 --- a/sfx2/source/appl/linksrc.cxx +++ b/sfx2/source/appl/linksrc.cxx @@ -347,7 +347,7 @@ void SvLinkSource::AddDataAdvise( SvBaseLink * pLink, const OUString& rMimeType, pImpl->aArr.push_back( pNew ); } -void SvLinkSource::RemoveAllDataAdvise( SvBaseLink * pLink ) +void SvLinkSource::RemoveAllDataAdvise( SvBaseLink const * pLink ) { SvLinkSource_EntryIter_Impl aIter( pImpl->aArr ); for( SvLinkSource_Entry_Impl* p = aIter.Curr(); p; p = aIter.Next() ) @@ -364,7 +364,7 @@ void SvLinkSource::AddConnectAdvise( SvBaseLink * pLink ) pImpl->aArr.push_back( pNew ); } -void SvLinkSource::RemoveConnectAdvise( SvBaseLink * pLink ) +void SvLinkSource::RemoveConnectAdvise( SvBaseLink const * pLink ) { SvLinkSource_EntryIter_Impl aIter( pImpl->aArr ); for( SvLinkSource_Entry_Impl* p = aIter.Curr(); p; p = aIter.Next() ) diff --git a/sfx2/source/appl/shutdowniconunx.cxx b/sfx2/source/appl/shutdowniconunx.cxx index a4f8fd35a4cd..5ecebc6f5b5f 100644 --- a/sfx2/source/appl/shutdowniconunx.cxx +++ b/sfx2/source/appl/shutdowniconunx.cxx @@ -102,7 +102,7 @@ static void oustring_delete (gpointer data, } static void add_item( GtkMenuShell *pMenuShell, const char *pAsciiURL, - OUString *pOverrideLabel, + OUString const *pOverrideLabel, sal_uInt16 nResId, GCallback pFnCallback ) { OUString *pURL = new OUString (OStringToOUString( pAsciiURL, diff --git a/sfx2/source/appl/workwin.cxx b/sfx2/source/appl/workwin.cxx index a1f0823a5b7e..7b8ebc4ee978 100644 --- a/sfx2/source/appl/workwin.cxx +++ b/sfx2/source/appl/workwin.cxx @@ -1120,7 +1120,7 @@ Reference< css::task::XStatusIndicator > SfxWorkWindow::GetStatusIndicator() } -bool SfxWorkWindow::IsPluginMode( SfxObjectShell* pObjShell ) +bool SfxWorkWindow::IsPluginMode( SfxObjectShell const * pObjShell ) { if ( pObjShell && pObjShell->GetMedium() ) { diff --git a/sfx2/source/bastyp/fltfnc.cxx b/sfx2/source/bastyp/fltfnc.cxx index e17c35a7a89e..94eaa99b3e27 100644 --- a/sfx2/source/bastyp/fltfnc.cxx +++ b/sfx2/source/bastyp/fltfnc.cxx @@ -352,7 +352,7 @@ std::shared_ptr<const SfxFilter> SfxFilterMatcher::GetAnyFilter( SfxFilterFlags ErrCode SfxFilterMatcher::GuessFilterIgnoringContent( - SfxMedium& rMedium, + SfxMedium const & rMedium, std::shared_ptr<const SfxFilter>& rpFilter ) const { uno::Reference<document::XTypeDetection> xDetection( diff --git a/sfx2/source/bastyp/progress.cxx b/sfx2/source/bastyp/progress.cxx index 5561ccde0491..c6539ea99001 100644 --- a/sfx2/source/bastyp/progress.cxx +++ b/sfx2/source/bastyp/progress.cxx @@ -410,7 +410,7 @@ void SfxProgress::Reschedule() SfxProgress* SfxProgress::GetActiveProgress ( - SfxObjectShell* pDocSh /* the <SfxObjectShell>, which should be + SfxObjectShell const * pDocSh /* the <SfxObjectShell>, which should be queried after a current <SfxProgress>, or 0 if an current SfxProgress for the entire application should be obtained. diff --git a/sfx2/source/config/evntconf.cxx b/sfx2/source/config/evntconf.cxx index 3b45707eb1ea..21369698b772 100644 --- a/sfx2/source/config/evntconf.cxx +++ b/sfx2/source/config/evntconf.cxx @@ -205,7 +205,7 @@ uno::Any CreateEventData_Impl( const SvxMacro *pMacro ) } -void PropagateEvent_Impl( SfxObjectShell *pDoc, const OUString& aEventName, const SvxMacro* pMacro ) +void PropagateEvent_Impl( SfxObjectShell const *pDoc, const OUString& aEventName, const SvxMacro* pMacro ) { uno::Reference < document::XEventsSupplier > xSupplier; if ( pDoc ) @@ -245,7 +245,7 @@ void PropagateEvent_Impl( SfxObjectShell *pDoc, const OUString& aEventName, cons } -void SfxEventConfiguration::ConfigureEvent( const OUString& aName, const SvxMacro& rMacro, SfxObjectShell *pDoc ) +void SfxEventConfiguration::ConfigureEvent( const OUString& aName, const SvxMacro& rMacro, SfxObjectShell const *pDoc ) { std::unique_ptr<SvxMacro> pMacro; if ( rMacro.HasMacro() ) diff --git a/sfx2/source/control/bindings.cxx b/sfx2/source/control/bindings.cxx index 6784846f62c5..0aa458014f8d 100644 --- a/sfx2/source/control/bindings.cxx +++ b/sfx2/source/control/bindings.cxx @@ -1246,7 +1246,7 @@ IMPL_LINK( SfxBindings, NextJob, Timer *, pTimer, void ) NextJob_Impl(pTimer); } -bool SfxBindings::NextJob_Impl(Timer * pTimer) +bool SfxBindings::NextJob_Impl(Timer const * pTimer) { const unsigned MAX_INPUT_DELAY = 200; @@ -1724,7 +1724,7 @@ const css::uno::Reference< css::frame::XDispatchRecorder >& SfxBindings::GetReco return pImpl->xRecorder; } -void SfxBindings::SetRecorder_Impl( css::uno::Reference< css::frame::XDispatchRecorder >& rRecorder ) +void SfxBindings::SetRecorder_Impl( css::uno::Reference< css::frame::XDispatchRecorder > const & rRecorder ) { pImpl->xRecorder = rRecorder; } diff --git a/sfx2/source/control/dispatch.cxx b/sfx2/source/control/dispatch.cxx index 5e9f12f7fc35..1cafc6d351d0 100644 --- a/sfx2/source/control/dispatch.cxx +++ b/sfx2/source/control/dispatch.cxx @@ -313,7 +313,7 @@ bool SfxDispatcher::IsAppDispatcher() const } /// Decides if the request is FASTCALL or not, depending on arguments. -bool lcl_IsConditionalFastCall(SfxRequest &rReq) +bool lcl_IsConditionalFastCall(SfxRequest const &rReq) { sal_uInt16 nId = rReq.GetSlot(); bool bRet = false; @@ -761,7 +761,7 @@ void SfxDispatcher::DoActivate_Impl(bool bMDI) are called with the handler <SfxShell::Deactivate(bool)>, starting with the lowest. */ -void SfxDispatcher::DoDeactivate_Impl(bool bMDI, SfxViewFrame* pNew) +void SfxDispatcher::DoDeactivate_Impl(bool bMDI, SfxViewFrame const * pNew) { SFX_STACK(SfxDispatcher::DoDeactivate); @@ -940,7 +940,7 @@ const SfxSlot* SfxDispatcher::GetSlot( const OUString& rCommand ) } const SfxPoolItem* SfxDispatcher::Execute(sal_uInt16 nSlot, SfxCallMode nCall, - SfxItemSet* pArgs, SfxItemSet* pInternalArgs, sal_uInt16 nModi) + SfxItemSet const * pArgs, SfxItemSet const * pInternalArgs, sal_uInt16 nModi) { if ( IsLocked() ) return nullptr; diff --git a/sfx2/source/control/request.cxx b/sfx2/source/control/request.cxx index e65d1f466752..55c94afe17ea 100644 --- a/sfx2/source/control/request.cxx +++ b/sfx2/source/control/request.cxx @@ -660,7 +660,7 @@ bool SfxRequest::IsDone() const } -css::uno::Reference< css::frame::XDispatchRecorder > SfxRequest::GetMacroRecorder( SfxViewFrame* pView ) +css::uno::Reference< css::frame::XDispatchRecorder > SfxRequest::GetMacroRecorder( SfxViewFrame const * pView ) /* [Description] @@ -690,7 +690,7 @@ css::uno::Reference< css::frame::XDispatchRecorder > SfxRequest::GetMacroRecorde return xRecorder; } -bool SfxRequest::HasMacroRecorder( SfxViewFrame* pView ) +bool SfxRequest::HasMacroRecorder( SfxViewFrame const * pView ) { return GetMacroRecorder( pView ).is(); } diff --git a/sfx2/source/control/shell.cxx b/sfx2/source/control/shell.cxx index 317fa2ff5834..e4bb2d647c35 100644 --- a/sfx2/source/control/shell.cxx +++ b/sfx2/source/control/shell.cxx @@ -313,7 +313,7 @@ void SfxShell::DoActivate_Impl( SfxViewFrame *pFrame, bool bMDI ) Activate(bMDI); } -void SfxShell::DoDeactivate_Impl( SfxViewFrame *pFrame, bool bMDI ) +void SfxShell::DoDeactivate_Impl( SfxViewFrame const *pFrame, bool bMDI ) { #ifdef DBG_UTIL const SfxInterface *p_IF = GetInterface(); diff --git a/sfx2/source/control/templatelocalview.cxx b/sfx2/source/control/templatelocalview.cxx index f1fb81586348..d78fceef2e25 100644 --- a/sfx2/source/control/templatelocalview.cxx +++ b/sfx2/source/control/templatelocalview.cxx @@ -198,7 +198,7 @@ void TemplateLocalView::showAllTemplates() maOpenRegionHdl.Call(nullptr); } -void TemplateLocalView::showRegion(TemplateContainerItem *pItem) +void TemplateLocalView::showRegion(TemplateContainerItem const *pItem) { mnCurRegionId = pItem->mnRegionId+1; maCurRegionName = pItem->maTitle; diff --git a/sfx2/source/control/thumbnailview.cxx b/sfx2/source/control/thumbnailview.cxx index 8ecb03dad3e8..d6a02103a500 100644 --- a/sfx2/source/control/thumbnailview.cxx +++ b/sfx2/source/control/thumbnailview.cxx @@ -204,7 +204,7 @@ void ThumbnailView::ApplySettings(vcl::RenderContext& rRenderContext) mpItemAttrs->nMaxTextLength = 0; } -void ThumbnailView::DrawItem(ThumbnailViewItem *pItem) +void ThumbnailView::DrawItem(ThumbnailViewItem const *pItem) { if (pItem->isVisible()) { diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx index be7a8d9ce4e6..acb456e595aa 100644 --- a/sfx2/source/control/unoctitm.cxx +++ b/sfx2/source/control/unoctitm.cxx @@ -440,7 +440,7 @@ void SfxDispatchController_Impl::addParametersToArgs( const css::util::URL& aURL } } -MapUnit SfxDispatchController_Impl::GetCoreMetric( SfxItemPool& rPool, sal_uInt16 nSlotId ) +MapUnit SfxDispatchController_Impl::GetCoreMetric( SfxItemPool const & rPool, sal_uInt16 nSlotId ) { sal_uInt16 nWhich = rPool.GetWhich( nSlotId ); return rPool.GetMetric( nWhich ); @@ -884,7 +884,7 @@ void SfxDispatchController_Impl::sendStatusChanged(const OUString& rURL, const c } } -void SfxDispatchController_Impl::StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState, SfxSlotServer* pSlotServ ) +void SfxDispatchController_Impl::StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState, SfxSlotServer const * pSlotServ ) { if ( !pDispatch ) return; diff --git a/sfx2/source/dialog/basedlgs.cxx b/sfx2/source/dialog/basedlgs.cxx index c16cae72d8ff..30a14417d389 100644 --- a/sfx2/source/dialog/basedlgs.cxx +++ b/sfx2/source/dialog/basedlgs.cxx @@ -223,7 +223,7 @@ void SfxModelessDialog::StateChanged( StateChangedType nStateChange ) ModelessDialog::StateChanged( nStateChange ); } -void SfxModelessDialog::Initialize(SfxChildWinInfo *pInfo) +void SfxModelessDialog::Initialize(SfxChildWinInfo const *pInfo) /* [Description] @@ -555,7 +555,7 @@ void SfxFloatingWindow::StateChanged( StateChangedType nStateChange ) } -void SfxFloatingWindow::Initialize(SfxChildWinInfo *pInfo) +void SfxFloatingWindow::Initialize(SfxChildWinInfo const *pInfo) /* [Description] diff --git a/sfx2/source/dialog/dialoghelper.cxx b/sfx2/source/dialog/dialoghelper.cxx index a5657d8b9e6a..aaea7e22c1a8 100644 --- a/sfx2/source/dialog/dialoghelper.cxx +++ b/sfx2/source/dialog/dialoghelper.cxx @@ -18,7 +18,7 @@ //right, get both of their non-preview areas to request the same size //so that the preview appears in the same place in each one so //flipping between tabs isn't distracting as it jumps around -void setPreviewsToSamePlace(vcl::Window *pParent, VclBuilderContainer *pPage) +void setPreviewsToSamePlace(vcl::Window const *pParent, VclBuilderContainer *pPage) { vcl::Window *pOurGrid = pPage->get<vcl::Window>("maingrid"); if (!pOurGrid) diff --git a/sfx2/source/dialog/dinfdlg.cxx b/sfx2/source/dialog/dinfdlg.cxx index fb2a4831f326..b72b6055f8ce 100644 --- a/sfx2/source/dialog/dinfdlg.cxx +++ b/sfx2/source/dialog/dinfdlg.cxx @@ -869,8 +869,7 @@ IMPL_STATIC_LINK_NOARG(SfxDocumentPage, ChangePassHdl, Button*, void) if (!pFilter) break; - OUString aDocName; - sfx2::RequestPassword(pFilter, aDocName, pMedSet); + sfx2::RequestPassword(pFilter, OUString(), pMedSet); pShell->SetModified(); } while (false); @@ -1807,7 +1806,7 @@ void CustomPropertiesWindow::updateLineWidth() } } -void CustomPropertiesWindow::AddLine( const OUString& sName, Any& rAny ) +void CustomPropertiesWindow::AddLine( const OUString& sName, Any const & rAny ) { CustomPropertyLine* pNewLine = new CustomPropertyLine( this ); pNewLine->m_aTypeBox->SetSelectHdl( LINK( this, CustomPropertiesWindow, TypeHdl ) ); @@ -2192,7 +2191,7 @@ IMPL_LINK_NOARG(CustomPropertiesControl, RemovedHdl, void*, void) m_pVertScroll->DoScrollAction ( ScrollType::LineUp ); } -void CustomPropertiesControl::AddLine( const OUString& sName, Any& rAny, bool bInteractive ) +void CustomPropertiesControl::AddLine( const OUString& sName, Any const & rAny, bool bInteractive ) { m_pPropertiesWin->AddLine( sName, rAny ); long nLineCount = m_pPropertiesWin->GetVisibleLineCount(); @@ -2416,7 +2415,7 @@ void CmisPropertiesWindow::ClearAllLines() void CmisPropertiesWindow::AddLine( const OUString& sId, const OUString& sName, const OUString& sType, const bool bUpdatable, const bool bRequired, const bool bMultiValued, - const bool bOpenChoice, Any& /*aChoices*/, Any& rAny ) + const bool bOpenChoice, Any& /*aChoices*/, Any const & rAny ) { CmisPropertyLine* pNewLine = new CmisPropertyLine( m_pBox ); @@ -2668,7 +2667,7 @@ void CmisPropertiesControl::setScrollRange() void CmisPropertiesControl::AddLine( const OUString& sId, const OUString& sName, const OUString& sType, const bool bUpdatable, const bool bRequired, const bool bMultiValued, - const bool bOpenChoice, Any& aChoices, Any& rAny + const bool bOpenChoice, Any& aChoices, Any const & rAny ) { m_pPropertiesWin.AddLine( sId, sName, sType, bUpdatable, bRequired, bMultiValued, diff --git a/sfx2/source/dialog/filedlghelper.cxx b/sfx2/source/dialog/filedlghelper.cxx index f4ebace14fbd..7e740ef87efb 100644 --- a/sfx2/source/dialog/filedlghelper.cxx +++ b/sfx2/source/dialog/filedlghelper.cxx @@ -2620,7 +2620,7 @@ ErrCode FileOpenDialog_Impl( sal_Int16 nDialogType, return nRet; } -ErrCode RequestPassword(const std::shared_ptr<const SfxFilter>& pCurrentFilter, OUString& aURL, SfxItemSet* pSet) +ErrCode RequestPassword(const std::shared_ptr<const SfxFilter>& pCurrentFilter, OUString const & aURL, SfxItemSet* pSet) { uno::Reference < task::XInteractionHandler2 > xInteractionHandler = task::InteractionHandler::createWithParent( ::comphelper::getProcessComponentContext(), nullptr ); // TODO: need a save way to distinguish MS filters from other filters diff --git a/sfx2/source/dialog/splitwin.cxx b/sfx2/source/dialog/splitwin.cxx index 0f449f1d9b8c..9dfd524349e8 100644 --- a/sfx2/source/dialog/splitwin.cxx +++ b/sfx2/source/dialog/splitwin.cxx @@ -517,7 +517,7 @@ void SfxSplitWindow::InsertWindow( SfxDockingWindow* pDockWin, const Size& rSize } -void SfxSplitWindow::ReleaseWindow_Impl(SfxDockingWindow *pDockWin, bool bSave) +void SfxSplitWindow::ReleaseWindow_Impl(SfxDockingWindow const *pDockWin, bool bSave) { // The docking window is no longer stored in the internal data. sal_uInt16 nCount = maDockArr.size(); @@ -632,7 +632,7 @@ void SfxSplitWindow::InsertWindow( SfxDockingWindow* pDockWin, const Size& rSize } -void SfxSplitWindow::InsertWindow_Impl( SfxDock_Impl* pDock, +void SfxSplitWindow::InsertWindow_Impl( SfxDock_Impl const * pDock, const Size& rSize, sal_uInt16 nLine, sal_uInt16 nPos, bool bNewLine) @@ -757,7 +757,7 @@ void SfxSplitWindow::InsertWindow_Impl( SfxDock_Impl* pDock, } -void SfxSplitWindow::RemoveWindow( SfxDockingWindow* pDockWin, bool bHide ) +void SfxSplitWindow::RemoveWindow( SfxDockingWindow const * pDockWin, bool bHide ) /* [Description] diff --git a/sfx2/source/dialog/templdlg.cxx b/sfx2/source/dialog/templdlg.cxx index 152bb1ab2843..3ff7eea52887 100644 --- a/sfx2/source/dialog/templdlg.cxx +++ b/sfx2/source/dialog/templdlg.cxx @@ -1730,7 +1730,7 @@ void SfxCommonTemplateDialog_Impl::ActionSelect(sal_uInt16 nEntry) } } -static OUString getModuleIdentifier( const Reference< XModuleManager2 >& i_xModMgr, SfxObjectShell* i_pObjSh ) +static OUString getModuleIdentifier( const Reference< XModuleManager2 >& i_xModMgr, SfxObjectShell const * i_pObjSh ) { OSL_ENSURE( i_xModMgr.is(), "getModuleIdentifier(): no XModuleManager" ); OSL_ENSURE( i_pObjSh, "getModuleIdentifier(): no ObjectShell" ); @@ -1753,7 +1753,7 @@ static OUString getModuleIdentifier( const Reference< XModuleManager2 >& i_xModM return sIdentifier; } -sal_Int32 SfxCommonTemplateDialog_Impl::LoadFactoryStyleFilter( SfxObjectShell* i_pObjSh ) +sal_Int32 SfxCommonTemplateDialog_Impl::LoadFactoryStyleFilter( SfxObjectShell const * i_pObjSh ) { OSL_ENSURE( i_pObjSh, "SfxCommonTemplateDialog_Impl::LoadFactoryStyleFilter(): no ObjectShell" ); @@ -1768,7 +1768,7 @@ sal_Int32 SfxCommonTemplateDialog_Impl::LoadFactoryStyleFilter( SfxObjectShell* return nFilter; } -void SfxCommonTemplateDialog_Impl::SaveFactoryStyleFilter( SfxObjectShell* i_pObjSh, sal_Int32 i_nFilter ) +void SfxCommonTemplateDialog_Impl::SaveFactoryStyleFilter( SfxObjectShell const * i_pObjSh, sal_Int32 i_nFilter ) { OSL_ENSURE( i_pObjSh, "SfxCommonTemplateDialog_Impl::LoadFactoryStyleFilter(): no ObjectShell" ); Sequence< PropertyValue > lProps(1); diff --git a/sfx2/source/doc/DocumentMetadataAccess.cxx b/sfx2/source/doc/DocumentMetadataAccess.cxx index 00404ec9acb2..b07117339f40 100644 --- a/sfx2/source/doc/DocumentMetadataAccess.cxx +++ b/sfx2/source/doc/DocumentMetadataAccess.cxx @@ -268,7 +268,7 @@ splitXmlId(OUString const & i_XmlId, static uno::Reference<rdf::XURI> -getURIForStream(struct DocumentMetadataAccess_Impl& i_rImpl, +getURIForStream(struct DocumentMetadataAccess_Impl const & i_rImpl, OUString const& i_rPath) { const uno::Reference<rdf::XURI> xURI( @@ -281,7 +281,7 @@ getURIForStream(struct DocumentMetadataAccess_Impl& i_rImpl, /** add statements declaring i_xResource to be a file of type i_xType with path i_rPath to manifest, with optional additional types i_pTypes */ static void -addFile(struct DocumentMetadataAccess_Impl & i_rImpl, +addFile(struct DocumentMetadataAccess_Impl const & i_rImpl, uno::Reference<rdf::XURI> const& i_xType, OUString const & i_rPath, const uno::Sequence < uno::Reference< rdf::XURI > > * i_pTypes) @@ -313,7 +313,7 @@ addFile(struct DocumentMetadataAccess_Impl & i_rImpl, /** add content.xml or styles.xml to manifest */ static bool -addContentOrStylesFileImpl(struct DocumentMetadataAccess_Impl & i_rImpl, +addContentOrStylesFileImpl(struct DocumentMetadataAccess_Impl const & i_rImpl, const OUString & i_rPath) { uno::Reference<rdf::XURI> xType; @@ -330,7 +330,7 @@ addContentOrStylesFileImpl(struct DocumentMetadataAccess_Impl & i_rImpl, /** add metadata file to manifest */ static void -addMetadataFileImpl(struct DocumentMetadataAccess_Impl & i_rImpl, +addMetadataFileImpl(struct DocumentMetadataAccess_Impl const & i_rImpl, const OUString & i_rPath, const uno::Sequence < uno::Reference< rdf::XURI > > & i_rTypes) { @@ -341,7 +341,7 @@ addMetadataFileImpl(struct DocumentMetadataAccess_Impl & i_rImpl, /** remove a file from the manifest */ static void -removeFile(struct DocumentMetadataAccess_Impl & i_rImpl, +removeFile(struct DocumentMetadataAccess_Impl const & i_rImpl, uno::Reference<rdf::XURI> const& i_xPart) { if (!i_xPart.is()) throw uno::RuntimeException(); @@ -361,7 +361,7 @@ removeFile(struct DocumentMetadataAccess_Impl & i_rImpl, } static ::std::vector< uno::Reference< rdf::XURI > > -getAllParts(struct DocumentMetadataAccess_Impl & i_rImpl) +getAllParts(struct DocumentMetadataAccess_Impl const & i_rImpl) { ::std::vector< uno::Reference< rdf::XURI > > ret; try { @@ -390,7 +390,7 @@ getAllParts(struct DocumentMetadataAccess_Impl & i_rImpl) } static bool -isPartOfType(struct DocumentMetadataAccess_Impl & i_rImpl, +isPartOfType(struct DocumentMetadataAccess_Impl const & i_rImpl, uno::Reference<rdf::XURI> const & i_xPart, uno::Reference<rdf::XURI> const & i_xType) { @@ -589,7 +589,7 @@ retry: /** actually write a metadata file to the storage */ static void -exportStream(struct DocumentMetadataAccess_Impl & i_rImpl, +exportStream(struct DocumentMetadataAccess_Impl const & i_rImpl, uno::Reference< embed::XStorage > const & i_xStorage, uno::Reference<rdf::XURI> const & i_xGraphName, OUString const & i_rFileName, diff --git a/sfx2/source/doc/docfile.cxx b/sfx2/source/doc/docfile.cxx index b371e2e67cab..964c3bac2b0a 100644 --- a/sfx2/source/doc/docfile.cxx +++ b/sfx2/source/doc/docfile.cxx @@ -1783,7 +1783,7 @@ void SfxMedium::TransactedTransferForFS_Impl( const INetURLObject& aSource, } -bool SfxMedium::TryDirectTransfer( const OUString& aURL, SfxItemSet& aTargetSet ) +bool SfxMedium::TryDirectTransfer( const OUString& aURL, SfxItemSet const & aTargetSet ) { if ( GetError() ) return false; @@ -3277,7 +3277,7 @@ void SfxMedium::RemoveVersion_Impl( const OUString& rName ) } } -bool SfxMedium::TransferVersionList_Impl( SfxMedium& rMedium ) +bool SfxMedium::TransferVersionList_Impl( SfxMedium const & rMedium ) { if ( rMedium.pImpl->aVersions.getLength() ) { diff --git a/sfx2/source/doc/docinf.cxx b/sfx2/source/doc/docinf.cxx index f73407735c45..e387526d33ce 100644 --- a/sfx2/source/doc/docinf.cxx +++ b/sfx2/source/doc/docinf.cxx @@ -305,7 +305,7 @@ bool SaveOlePropertySet( return (nGlobError == ERRCODE_NONE) && (nDocError == ERRCODE_NONE); } -uno::Sequence<sal_Int8> convertMetaFile(GDIMetaFile* i_pThumb) +uno::Sequence<sal_Int8> convertMetaFile(GDIMetaFile const * i_pThumb) { if (i_pThumb) { BitmapEx aBitmap; diff --git a/sfx2/source/doc/docinsert.cxx b/sfx2/source/doc/docinsert.cxx index 8209b4a1f4cb..1a155967a5d9 100644 --- a/sfx2/source/doc/docinsert.cxx +++ b/sfx2/source/doc/docinsert.cxx @@ -169,7 +169,7 @@ SfxMediumList* DocumentInserter::CreateMediumList() return pMediumList; } -void impl_FillURLList( sfx2::FileDialogHelper* _pFileDlg, std::vector<OUString>& _rpURLList ) +void impl_FillURLList( sfx2::FileDialogHelper const * _pFileDlg, std::vector<OUString>& _rpURLList ) { DBG_ASSERT( _pFileDlg, "DocumentInserter::fillURLList(): invalid file dialog" ); diff --git a/sfx2/source/doc/doctempl.cxx b/sfx2/source/doc/doctempl.cxx index 5a29eff8f3cf..a1699820bc10 100644 --- a/sfx2/source/doc/doctempl.cxx +++ b/sfx2/source/doc/doctempl.cxx @@ -178,7 +178,7 @@ public: const size_t *pPos ); void DeleteEntry( size_t nIndex ); - int Compare( RegionData_Impl* pCompareWith ) const; + int Compare( RegionData_Impl const * pCompareWith ) const; }; typedef vector< RegionData_Impl* > RegionList_Impl; @@ -1440,7 +1440,7 @@ void RegionData_Impl::DeleteEntry( size_t nIndex ) } -int RegionData_Impl::Compare( RegionData_Impl* pCompare ) const +int RegionData_Impl::Compare( RegionData_Impl const * pCompare ) const { return maTitle.compareTo( pCompare->maTitle ); } diff --git a/sfx2/source/doc/doctemplates.cxx b/sfx2/source/doc/doctemplates.cxx index 699707d8ab2b..62232c9efbd1 100644 --- a/sfx2/source/doc/doctemplates.cxx +++ b/sfx2/source/doc/doctemplates.cxx @@ -259,14 +259,14 @@ class SfxDocTplService_Impl const OUString& rUITitle, const OUString& rOwnURL, bool bWriteableGroup ); - void removeFromHierarchy( DocTemplates_EntryData_Impl *pData ); - void addToHierarchy( GroupData_Impl *pGroup, - DocTemplates_EntryData_Impl *pData ); + void removeFromHierarchy( DocTemplates_EntryData_Impl const *pData ); + void addToHierarchy( GroupData_Impl const *pGroup, + DocTemplates_EntryData_Impl const *pData ); - void removeFromHierarchy( GroupData_Impl *pGroup ); + void removeFromHierarchy( GroupData_Impl const *pGroup ); void addGroupToHierarchy( GroupData_Impl *pGroup ); - void updateData( DocTemplates_EntryData_Impl *pData ); + void updateData( DocTemplates_EntryData_Impl const *pData ); //See: #i66157# and rhbz#1065807 //return which template dir the rURL is a subpath of @@ -2545,7 +2545,7 @@ void SfxDocTplService_Impl::createFromContent( GroupList_Impl& rList, } -void SfxDocTplService_Impl::removeFromHierarchy( DocTemplates_EntryData_Impl *pData ) +void SfxDocTplService_Impl::removeFromHierarchy( DocTemplates_EntryData_Impl const *pData ) { Content aTemplate; @@ -2556,8 +2556,8 @@ void SfxDocTplService_Impl::removeFromHierarchy( DocTemplates_EntryData_Impl *pD } -void SfxDocTplService_Impl::addToHierarchy( GroupData_Impl *pGroup, - DocTemplates_EntryData_Impl *pData ) +void SfxDocTplService_Impl::addToHierarchy( GroupData_Impl const *pGroup, + DocTemplates_EntryData_Impl const *pData ) { Content aGroup, aTemplate; @@ -2583,7 +2583,7 @@ void SfxDocTplService_Impl::addToHierarchy( GroupData_Impl *pGroup, } -void SfxDocTplService_Impl::updateData( DocTemplates_EntryData_Impl *pData ) +void SfxDocTplService_Impl::updateData( DocTemplates_EntryData_Impl const *pData ) { Content aTemplate; @@ -2628,7 +2628,7 @@ void SfxDocTplService_Impl::addGroupToHierarchy( GroupData_Impl *pGroup ) } -void SfxDocTplService_Impl::removeFromHierarchy( GroupData_Impl *pGroup ) +void SfxDocTplService_Impl::removeFromHierarchy( GroupData_Impl const *pGroup ) { Content aGroup; diff --git a/sfx2/source/doc/graphhelp.cxx b/sfx2/source/doc/graphhelp.cxx index b1f7a675faa0..a1129c4a3431 100644 --- a/sfx2/source/doc/graphhelp.cxx +++ b/sfx2/source/doc/graphhelp.cxx @@ -178,7 +178,7 @@ void* GraphicHelper::getWinMetaFileFromGDI_Impl( const GDIMetaFile* pGDIMeta, co // static -bool GraphicHelper::getThumbnailFormatFromGDI_Impl(GDIMetaFile* pMetaFile, const uno::Reference<io::XStream>& xStream) +bool GraphicHelper::getThumbnailFormatFromGDI_Impl(GDIMetaFile const * pMetaFile, const uno::Reference<io::XStream>& xStream) { bool bResult = false; diff --git a/sfx2/source/doc/graphhelp.hxx b/sfx2/source/doc/graphhelp.hxx index 029b0f676c5c..490093e09be0 100644 --- a/sfx2/source/doc/graphhelp.hxx +++ b/sfx2/source/doc/graphhelp.hxx @@ -49,7 +49,7 @@ public: } static bool getThumbnailFormatFromGDI_Impl( - GDIMetaFile* pMetaFile, + GDIMetaFile const * pMetaFile, const css::uno::Reference< css::io::XStream >& xStream ); static OUString getThumbnailReplacementIDByFactoryName_Impl(const OUString& aFactoryShortName); diff --git a/sfx2/source/doc/new.cxx b/sfx2/source/doc/new.cxx index a29fcbae3137..2ea3dc84dc2d 100644 --- a/sfx2/source/doc/new.cxx +++ b/sfx2/source/doc/new.cxx @@ -41,7 +41,7 @@ #include <sfx2/printer.hxx> #include <vcl/waitobj.hxx> -void SfxPreviewBase_Impl::SetObjectShell(SfxObjectShell* pObj) +void SfxPreviewBase_Impl::SetObjectShell(SfxObjectShell const * pObj) { std::shared_ptr<GDIMetaFile> xFile = pObj ? pObj->GetPreviewMetaFile() diff --git a/sfx2/source/doc/objmisc.cxx b/sfx2/source/doc/objmisc.cxx index 4e910b57fcc5..cbf25033f292 100644 --- a/sfx2/source/doc/objmisc.cxx +++ b/sfx2/source/doc/objmisc.cxx @@ -874,7 +874,7 @@ void SfxObjectShell::SetProgress_Impl } -void SfxObjectShell::PostActivateEvent_Impl( SfxViewFrame* pFrame ) +void SfxObjectShell::PostActivateEvent_Impl( SfxViewFrame const * pFrame ) { SfxApplication* pSfxApp = SfxGetpApp(); if ( !pSfxApp->IsDowning() && !IsLoading() && pFrame && !pFrame->GetFrame().IsClosing_Impl() ) @@ -1577,7 +1577,7 @@ bool SfxObjectShell::AdjustMacroMode() return pImpl->aMacroMode.adjustMacroMode( xInteraction ); } -vcl::Window* SfxObjectShell::GetDialogParent( SfxMedium* pLoadingMedium ) +vcl::Window* SfxObjectShell::GetDialogParent( SfxMedium const * pLoadingMedium ) { VclPtr<vcl::Window> pWindow; SfxItemSet* pSet = pLoadingMedium ? pLoadingMedium->GetItemSet() : GetMedium()->GetItemSet(); diff --git a/sfx2/source/doc/objstor.cxx b/sfx2/source/doc/objstor.cxx index 6e5c03265503..a9ff7dc804f4 100644 --- a/sfx2/source/doc/objstor.cxx +++ b/sfx2/source/doc/objstor.cxx @@ -866,7 +866,7 @@ bool SfxObjectShell::DoLoadExternal( SfxMedium *pMed ) return LoadExternal(*pMedium); } -ErrCode SfxObjectShell::HandleFilter( SfxMedium* pMedium, SfxObjectShell* pDoc ) +ErrCode SfxObjectShell::HandleFilter( SfxMedium* pMedium, SfxObjectShell const * pDoc ) { ErrCode nError = ERRCODE_NONE; SfxItemSet* pSet = pMedium->GetItemSet(); @@ -1063,7 +1063,7 @@ bool SfxObjectShell::DoSave() return bOk; } -void Lock_Impl( SfxObjectShell* pDoc, bool bLock ) +void Lock_Impl( SfxObjectShell const * pDoc, bool bLock ) { SfxViewFrame *pFrame= SfxViewFrame::GetFirst( pDoc ); while ( pFrame ) @@ -2701,7 +2701,7 @@ bool SfxObjectShell::CommonSaveAs_Impl(const INetURLObject& aURL, const OUString return false; } -bool SfxObjectShell::PreDoSaveAs_Impl(const OUString& rFileName, const OUString& aFilterName, SfxItemSet& rItemSet) +bool SfxObjectShell::PreDoSaveAs_Impl(const OUString& rFileName, const OUString& aFilterName, SfxItemSet const & rItemSet) { // copy all items stored in the itemset of the current medium SfxAllItemSet* pMergedParams = new SfxAllItemSet( *pMedium->GetItemSet() ); diff --git a/sfx2/source/doc/sfxbasemodel.cxx b/sfx2/source/doc/sfxbasemodel.cxx index 5df92d9175d4..51b3cfbf2a32 100644 --- a/sfx2/source/doc/sfxbasemodel.cxx +++ b/sfx2/source/doc/sfxbasemodel.cxx @@ -581,7 +581,7 @@ Sequence< sal_Int8 > SAL_CALL SfxBaseModel::getImplementationId() // XStarBasicAccess -Reference< script::XStarBasicAccess > implGetStarBasicAccess( SfxObjectShell* pObjectShell ) +Reference< script::XStarBasicAccess > implGetStarBasicAccess( SfxObjectShell const * pObjectShell ) { Reference< script::XStarBasicAccess > xRet; @@ -1718,7 +1718,7 @@ void SAL_CALL SfxBaseModel::initNew() namespace { -OUString getFilterProvider( SfxMedium& rMedium ) +OUString getFilterProvider( SfxMedium const & rMedium ) { std::shared_ptr<const SfxFilter> pFilter = rMedium.GetFilter(); if (!pFilter) @@ -3372,7 +3372,7 @@ static void GetCommandFromSequence( OUString& rCommand, sal_Int32& nIndex, const } } -static void ConvertSlotsToCommands( SfxObjectShell* pDoc, Reference< container::XIndexContainer >& rToolbarDefinition ) +static void ConvertSlotsToCommands( SfxObjectShell const * pDoc, Reference< container::XIndexContainer > const & rToolbarDefinition ) { if ( pDoc ) { diff --git a/sfx2/source/inc/eventsupplier.hxx b/sfx2/source/inc/eventsupplier.hxx index abc42ba77b30..7a5706de907b 100644 --- a/sfx2/source/inc/eventsupplier.hxx +++ b/sfx2/source/inc/eventsupplier.hxx @@ -85,7 +85,7 @@ public: const ::comphelper::NamedValueCollection& i_eventDescriptor, ::comphelper::NamedValueCollection& o_normalizedDescriptor, SfxObjectShell* i_document ); - static void Execute( css::uno::Any& aEventData, const css::document::DocumentEvent& aTrigger, SfxObjectShell* pDoc ); + static void Execute( css::uno::Any const & aEventData, const css::document::DocumentEvent& aTrigger, SfxObjectShell* pDoc ); }; #endif diff --git a/sfx2/source/inc/preview.hxx b/sfx2/source/inc/preview.hxx index 86c8f6fc4bf8..f40b4974d33b 100644 --- a/sfx2/source/inc/preview.hxx +++ b/sfx2/source/inc/preview.hxx @@ -31,7 +31,7 @@ protected: std::shared_ptr<GDIMetaFile> xMetaFile; public: SfxPreviewBase_Impl(vcl::Window* pParent, WinBits nStyle); - void SetObjectShell( SfxObjectShell* pObj ); + void SetObjectShell( SfxObjectShell const * pObj ); virtual void Resize() override; virtual Size GetOptimalSize() const override; }; diff --git a/sfx2/source/inc/splitwin.hxx b/sfx2/source/inc/splitwin.hxx index f83eb2d74d06..32e745f2f131 100644 --- a/sfx2/source/inc/splitwin.hxx +++ b/sfx2/source/inc/splitwin.hxx @@ -50,7 +50,7 @@ private: VclPtr<SfxEmptySplitWin_Impl> pEmptyWin; VclPtr<SfxDockingWindow> pActive; - void InsertWindow_Impl( SfxDock_Impl* pDockWin, + void InsertWindow_Impl( SfxDock_Impl const * pDockWin, const Size& rSize, sal_uInt16 nLine, sal_uInt16 nPos, @@ -77,7 +77,7 @@ public: virtual ~SfxSplitWindow() override; virtual void dispose() override; - void ReleaseWindow_Impl(SfxDockingWindow *pWin, bool bSaveConfig=true); + void ReleaseWindow_Impl(SfxDockingWindow const *pWin, bool bSaveConfig=true); void InsertWindow( SfxDockingWindow* pDockWin, const Size& rSize); @@ -94,7 +94,7 @@ public: sal_uInt16 nPos, bool bNewLine ); - void RemoveWindow( SfxDockingWindow* pDockWin, bool bHide=true); + void RemoveWindow( SfxDockingWindow const * pDockWin, bool bHide=true); void Lock( bool bLock=true ) { diff --git a/sfx2/source/inc/templdgi.hxx b/sfx2/source/inc/templdgi.hxx index 15e111d5d6db..6ede99258587 100644 --- a/sfx2/source/inc/templdgi.hxx +++ b/sfx2/source/inc/templdgi.hxx @@ -278,8 +278,8 @@ protected: void SetFamily(SfxStyleFamily nFamily); void ActionSelect( sal_uInt16 nId ); - sal_Int32 LoadFactoryStyleFilter( SfxObjectShell* i_pObjSh ); - void SaveFactoryStyleFilter( SfxObjectShell* i_pObjSh, sal_Int32 i_nFilter ); + sal_Int32 LoadFactoryStyleFilter( SfxObjectShell const * i_pObjSh ); + void SaveFactoryStyleFilter( SfxObjectShell const * i_pObjSh, sal_Int32 i_nFilter ); SfxObjectShell* SaveSelection(); public: diff --git a/sfx2/source/inc/workwin.hxx b/sfx2/source/inc/workwin.hxx index bb4e50db7025..6a80892900eb 100644 --- a/sfx2/source/inc/workwin.hxx +++ b/sfx2/source/inc/workwin.hxx @@ -224,7 +224,7 @@ class SfxWorkWindow final tools::Rectangle GetTopRect_Impl(); SvBorder Arrange_Impl(); void SaveStatus_Impl(SfxChildWindow*, const SfxChildWinInfo&); - static bool IsPluginMode( SfxObjectShell* pObjShell ); + static bool IsPluginMode( SfxObjectShell const * pObjShell ); public: SfxWorkWindow( vcl::Window* pWin, SfxFrame* pFrm, SfxFrame* pMaster ); diff --git a/sfx2/source/notebookbar/NotebookbarTabControl.cxx b/sfx2/source/notebookbar/NotebookbarTabControl.cxx index fbff4b02661f..bd6c147b87c5 100644 --- a/sfx2/source/notebookbar/NotebookbarTabControl.cxx +++ b/sfx2/source/notebookbar/NotebookbarTabControl.cxx @@ -178,7 +178,7 @@ void NotebookbarTabControl::StateChanged(StateChangedType nStateChange) NotebookbarTabControlBase::StateChanged( nStateChange ); } -void NotebookbarTabControl::FillShortcutsToolBox(Reference<XComponentContext>& xContext, +void NotebookbarTabControl::FillShortcutsToolBox(Reference<XComponentContext> const & xContext, const Reference<XFrame>& xFrame, const OUString& aModuleName, ToolBox* pShortcuts diff --git a/sfx2/source/notebookbar/SfxNotebookBar.cxx b/sfx2/source/notebookbar/SfxNotebookBar.cxx index 023dce7a4e22..450c3c19b915 100644 --- a/sfx2/source/notebookbar/SfxNotebookBar.cxx +++ b/sfx2/source/notebookbar/SfxNotebookBar.cxx @@ -123,7 +123,7 @@ static utl::OConfigurationTreeRoot lcl_getCurrentImplConfigRoot() } static const utl::OConfigurationNode lcl_getCurrentImplConfigNode(const Reference<css::frame::XFrame>& xFrame, - utl::OConfigurationTreeRoot& rNotebookbarNode ) + utl::OConfigurationTreeRoot const & rNotebookbarNode ) { if (!rNotebookbarNode.isValid()) return utl::OConfigurationNode(); @@ -336,7 +336,7 @@ bool SfxNotebookBar::StateMethod(SystemWindow* pSysWindow, return false; } -void SfxNotebookBar::RemoveListeners(SystemWindow* pSysWindow) +void SfxNotebookBar::RemoveListeners(SystemWindow const * pSysWindow) { Reference<XContextChangeEventMultiplexer> xMultiplexer = ContextChangeEventMultiplexer::get( diff --git a/sfx2/source/notify/eventsupplier.cxx b/sfx2/source/notify/eventsupplier.cxx index 68f11cc6d407..87f77be978e6 100644 --- a/sfx2/source/notify/eventsupplier.cxx +++ b/sfx2/source/notify/eventsupplier.cxx @@ -169,7 +169,7 @@ sal_Bool SAL_CALL SfxEvents_Impl::hasElements() return false; } -void SfxEvents_Impl::Execute( uno::Any& aEventData, const document::DocumentEvent& aTrigger, SfxObjectShell* pDoc ) +void SfxEvents_Impl::Execute( uno::Any const & aEventData, const document::DocumentEvent& aTrigger, SfxObjectShell* pDoc ) { uno::Sequence < beans::PropertyValue > aProperties; if ( aEventData >>= aProperties ) diff --git a/sfx2/source/sidebar/Deck.cxx b/sfx2/source/sidebar/Deck.cxx index b3937be0f376..90bbe1ed8b0b 100644 --- a/sfx2/source/sidebar/Deck.cxx +++ b/sfx2/source/sidebar/Deck.cxx @@ -165,7 +165,7 @@ bool Deck::EventNotify(NotifyEvent& rEvent) return Window::EventNotify(rEvent); } -bool Deck::ProcessWheelEvent(CommandEvent* pCommandEvent) +bool Deck::ProcessWheelEvent(CommandEvent const * pCommandEvent) { if ( ! mpVerticalScrollBar) return false; diff --git a/sfx2/source/sidebar/SidebarChildWindow.cxx b/sfx2/source/sidebar/SidebarChildWindow.cxx index c5be03bc17ec..1ffacbe29cde 100644 --- a/sfx2/source/sidebar/SidebarChildWindow.cxx +++ b/sfx2/source/sidebar/SidebarChildWindow.cxx @@ -63,7 +63,7 @@ SidebarChildWindow::SidebarChildWindow (vcl::Window* pParentWindow, sal_uInt16 n GetWindow()->Show(); } -sal_Int32 SidebarChildWindow::GetDefaultWidth (vcl::Window* pWindow) +sal_Int32 SidebarChildWindow::GetDefaultWidth (vcl::Window const * pWindow) { if (pWindow != nullptr) { diff --git a/sfx2/source/statbar/stbitem.cxx b/sfx2/source/statbar/stbitem.cxx index aeee94b41201..d266f72c3ab0 100644 --- a/sfx2/source/statbar/stbitem.cxx +++ b/sfx2/source/statbar/stbitem.cxx @@ -546,7 +546,7 @@ SfxStatusBarControl* SfxStatusBarControl::CreateControl sal_uInt16 nSlotID, sal_uInt16 nStbId, StatusBar* pBar, - SfxModule* pMod + SfxModule const * pMod ) { SolarMutexGuard aGuard; diff --git a/sfx2/source/toolbox/tbxitem.cxx b/sfx2/source/toolbox/tbxitem.cxx index 0bfcf1bcdff3..cfcdedf59769 100644 --- a/sfx2/source/toolbox/tbxitem.cxx +++ b/sfx2/source/toolbox/tbxitem.cxx @@ -256,7 +256,7 @@ void SfxToolBoxControl::RegisterToolBoxControl( SfxModule* pMod, const SfxTbxCtr SfxGetpApp()->RegisterToolBoxControl_Impl( pMod, rFact ); } -SfxToolBoxControl* SfxToolBoxControl::CreateControl( sal_uInt16 nSlotId, sal_uInt16 nTbxId, ToolBox *pBox, SfxModule* pMod ) +SfxToolBoxControl* SfxToolBoxControl::CreateControl( sal_uInt16 nSlotId, sal_uInt16 nTbxId, ToolBox *pBox, SfxModule const * pMod ) { SolarMutexGuard aGuard; @@ -371,7 +371,7 @@ SfxItemState SfxToolBoxControl::GetItemState( void SfxToolBoxControl::Dispatch( const Reference< XDispatchProvider >& rProvider, const OUString& rCommand, - Sequence< ::PropertyValue >& aArgs ) + Sequence< ::PropertyValue > const & aArgs ) { if ( rProvider.is() ) { @@ -386,7 +386,7 @@ void SfxToolBoxControl::Dispatch( } } -void SfxToolBoxControl::Dispatch( const OUString& aCommand, css::uno::Sequence< css::beans::PropertyValue >& aArgs ) +void SfxToolBoxControl::Dispatch( const OUString& aCommand, css::uno::Sequence< css::beans::PropertyValue > const & aArgs ) { Reference < XController > xController; diff --git a/sfx2/source/view/frame.cxx b/sfx2/source/view/frame.cxx index 760cf75b6049..b93cce9e208f 100644 --- a/sfx2/source/view/frame.cxx +++ b/sfx2/source/view/frame.cxx @@ -364,7 +364,7 @@ void SfxFrame::GetViewData_Impl() } } -void SfxFrame::UpdateDescriptor( SfxObjectShell *pDoc ) +void SfxFrame::UpdateDescriptor( SfxObjectShell const *pDoc ) { // For PrepareForDoc_Impl frames, the descriptor of the updated // and new itemset to be initialized. All data fir restoring the view diff --git a/sfx2/source/view/frame2.cxx b/sfx2/source/view/frame2.cxx index e89086bc02f6..1d448e6987cc 100644 --- a/sfx2/source/view/frame2.cxx +++ b/sfx2/source/view/frame2.cxx @@ -217,7 +217,7 @@ Reference < XFrame > SfxFrame::CreateBlankFrame() return xFrame; } -SfxFrame* SfxFrame::Create( SfxObjectShell& rDoc, vcl::Window& rWindow, SfxInterfaceId nViewId, bool bHidden ) +SfxFrame* SfxFrame::Create( SfxObjectShell const & rDoc, vcl::Window& rWindow, SfxInterfaceId nViewId, bool bHidden ) { SfxFrame* pFrame = nullptr; try diff --git a/sfx2/source/view/ipclient.cxx b/sfx2/source/view/ipclient.cxx index fe4ae015f496..a70bb145cd2a 100644 --- a/sfx2/source/view/ipclient.cxx +++ b/sfx2/source/view/ipclient.cxx @@ -797,7 +797,7 @@ bool SfxInPlaceClient::IsObjectInPlaceActive() const } -SfxInPlaceClient* SfxInPlaceClient::GetClient( SfxObjectShell* pDoc, const css::uno::Reference < css::embed::XEmbeddedObject >& xObject ) +SfxInPlaceClient* SfxInPlaceClient::GetClient( SfxObjectShell const * pDoc, const css::uno::Reference < css::embed::XEmbeddedObject >& xObject ) { for ( SfxViewFrame* pFrame = SfxViewFrame::GetFirst(pDoc); pFrame; pFrame=SfxViewFrame::GetNext(*pFrame,pDoc) ) { diff --git a/sfx2/source/view/lokhelper.cxx b/sfx2/source/view/lokhelper.cxx index f5762518d632..70c42b1dd422 100644 --- a/sfx2/source/view/lokhelper.cxx +++ b/sfx2/source/view/lokhelper.cxx @@ -120,7 +120,7 @@ bool SfxLokHelper::getViewIds(int* pArray, size_t nSize) return true; } -void SfxLokHelper::notifyOtherView(SfxViewShell* pThisView, SfxViewShell* pOtherView, int nType, const OString& rKey, const OString& rPayload) +void SfxLokHelper::notifyOtherView(SfxViewShell* pThisView, SfxViewShell const * pOtherView, int nType, const OString& rKey, const OString& rPayload) { OString aPayload = OString("{ \"viewId\": \"") + OString::number(SfxLokHelper::getView(pThisView)) + "\", \"part\": \"" + OString::number(pThisView->getPart()) + @@ -144,7 +144,7 @@ void SfxLokHelper::notifyOtherViews(SfxViewShell* pThisView, int nType, const OS } } -void SfxLokHelper::notifyInvalidation(SfxViewShell* pThisView, const OString& rPayload) +void SfxLokHelper::notifyInvalidation(SfxViewShell const * pThisView, const OString& rPayload) { OStringBuffer aBuf; aBuf.append(rPayload); diff --git a/sfx2/source/view/sfxbasecontroller.cxx b/sfx2/source/view/sfxbasecontroller.cxx index 71040a9e3d7c..997d24348347 100644 --- a/sfx2/source/view/sfxbasecontroller.cxx +++ b/sfx2/source/view/sfxbasecontroller.cxx @@ -1174,7 +1174,7 @@ uno::Sequence< frame::DispatchInformation > SAL_CALL SfxBaseController::getConfi return comphelper::containerToSequence( aCmdList ); } -bool SfxBaseController::HandleEvent_Impl( NotifyEvent& rEvent ) +bool SfxBaseController::HandleEvent_Impl( NotifyEvent const & rEvent ) { return m_pData->m_aUserInputInterception.handleNotifyEvent( rEvent ); } diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx index 7ec9a6190148..75d833880caa 100644 --- a/sfx2/source/view/viewfrm.cxx +++ b/sfx2/source/view/viewfrm.cxx @@ -1052,7 +1052,7 @@ void SfxViewFrame::DoActivate( bool bUI ) m_pDispatcher->DoActivate_Impl( bUI ); } -void SfxViewFrame::DoDeactivate(bool bUI, SfxViewFrame* pNewFrame ) +void SfxViewFrame::DoDeactivate(bool bUI, SfxViewFrame const * pNewFrame ) { m_pDispatcher->DoDeactivate_Impl( bUI, pNewFrame ); } @@ -1755,27 +1755,27 @@ SfxViewShell* SfxViewFrame::LoadViewIntoFrame_Impl( const SfxObjectShell& i_rDoc return pViewShell; } -SfxViewFrame* SfxViewFrame::LoadHiddenDocument( SfxObjectShell& i_rDoc, SfxInterfaceId i_nViewId ) +SfxViewFrame* SfxViewFrame::LoadHiddenDocument( SfxObjectShell const & i_rDoc, SfxInterfaceId i_nViewId ) { return LoadViewIntoFrame_Impl_NoThrow( i_rDoc, Reference< XFrame >(), i_nViewId, true ); } -SfxViewFrame* SfxViewFrame::LoadDocument( SfxObjectShell& i_rDoc, SfxInterfaceId i_nViewId ) +SfxViewFrame* SfxViewFrame::LoadDocument( SfxObjectShell const & i_rDoc, SfxInterfaceId i_nViewId ) { return LoadViewIntoFrame_Impl_NoThrow( i_rDoc, Reference< XFrame >(), i_nViewId, false ); } -SfxViewFrame* SfxViewFrame::LoadDocumentIntoFrame( SfxObjectShell& i_rDoc, const Reference< XFrame >& i_rTargetFrame ) +SfxViewFrame* SfxViewFrame::LoadDocumentIntoFrame( SfxObjectShell const & i_rDoc, const Reference< XFrame >& i_rTargetFrame ) { return LoadViewIntoFrame_Impl_NoThrow( i_rDoc, i_rTargetFrame, SFX_INTERFACE_NONE, false ); } -SfxViewFrame* SfxViewFrame::LoadDocumentIntoFrame( SfxObjectShell& i_rDoc, const SfxFrameItem* i_pFrameItem, SfxInterfaceId i_nViewId ) +SfxViewFrame* SfxViewFrame::LoadDocumentIntoFrame( SfxObjectShell const & i_rDoc, const SfxFrameItem* i_pFrameItem, SfxInterfaceId i_nViewId ) { return LoadViewIntoFrame_Impl_NoThrow( i_rDoc, i_pFrameItem && i_pFrameItem->GetFrame() ? i_pFrameItem->GetFrame()->GetFrameInterface() : nullptr, i_nViewId, false ); } -SfxViewFrame* SfxViewFrame::DisplayNewDocument( SfxObjectShell& i_rDoc, const SfxRequest& i_rCreateDocRequest ) +SfxViewFrame* SfxViewFrame::DisplayNewDocument( SfxObjectShell const & i_rDoc, const SfxRequest& i_rCreateDocRequest ) { const SfxUnoFrameItem* pFrameItem = i_rCreateDocRequest.GetArg<SfxUnoFrameItem>(SID_FILLFRAME); const SfxBoolItem* pHiddenItem = i_rCreateDocRequest.GetArg<SfxBoolItem>(SID_HIDDEN); diff --git a/sfx2/source/view/viewsh.cxx b/sfx2/source/view/viewsh.cxx index 67b326205ed9..bfb0552d2d7d 100644 --- a/sfx2/source/view/viewsh.cxx +++ b/sfx2/source/view/viewsh.cxx @@ -372,7 +372,7 @@ void SfxViewShell::NewIPClient_Impl( SfxInPlaceClient *pIPClient ) pImpl->GetIPClientList_Impl()->push_back(pIPClient); } -void SfxViewShell::IPClientGone_Impl( SfxInPlaceClient *pIPClient ) +void SfxViewShell::IPClientGone_Impl( SfxInPlaceClient const *pIPClient ) { SfxInPlaceClientList* pClientList = pImpl->GetIPClientList_Impl(); @@ -1549,7 +1549,7 @@ void SfxViewShell::ShowCursor( bool /*bOn*/ ) } -void SfxViewShell::ResetAllClients_Impl( SfxInPlaceClient *pIP ) +void SfxViewShell::ResetAllClients_Impl( SfxInPlaceClient const *pIP ) { SfxInPlaceClientList *pClients = pImpl->GetIPClientList_Impl(false); @@ -1597,7 +1597,7 @@ void SfxViewShell::VisAreaChanged() void SfxViewShell::CheckIPClient_Impl( - SfxInPlaceClient *const pIPClient, const tools::Rectangle& rVisArea) + SfxInPlaceClient const *const pIPClient, const tools::Rectangle& rVisArea) { if ( GetObjectShell()->IsInClose() ) return; @@ -1906,7 +1906,7 @@ bool SfxViewShell::TryContextMenuInterception( Menu& rMenu, const OUString& rMen return true; } -bool SfxViewShell::HandleNotifyEvent_Impl( NotifyEvent& rEvent ) +bool SfxViewShell::HandleNotifyEvent_Impl( NotifyEvent const & rEvent ) { if (pImpl->m_pController.is()) return pImpl->m_pController->HandleEvent_Impl( rEvent ); |