diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-08-24 09:26:25 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-08-24 10:55:29 +0200 |
commit | fd736c4f7910f5b876c3ab8b8e0e804aa83347a0 (patch) | |
tree | 573dcdf37e09ccd74b8fe6706d3cb5ffc327e5e6 /sc/source/ui/app | |
parent | loplugin:constparam in sc part3 (diff) | |
download | core-fd736c4f7910f5b876c3ab8b8e0e804aa83347a0.tar.gz core-fd736c4f7910f5b876c3ab8b8e0e804aa83347a0.zip |
loplugin:constparam in sc part4
Change-Id: I745f50257948a53ca07766955c4f4e86dd2a366e
Reviewed-on: https://gerrit.libreoffice.org/41497
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/app')
-rw-r--r-- | sc/source/ui/app/client.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/app/drwtrans.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/app/inputhdl.cxx | 14 | ||||
-rw-r--r-- | sc/source/ui/app/inputwin.cxx | 4 | ||||
-rw-r--r-- | sc/source/ui/app/scmod.cxx | 8 | ||||
-rw-r--r-- | sc/source/ui/app/transobj.cxx | 2 |
6 files changed, 16 insertions, 16 deletions
diff --git a/sc/source/ui/app/client.cxx b/sc/source/ui/app/client.cxx index ec5ee4ba36e0..241aacbc5a2e 100644 --- a/sc/source/ui/app/client.cxx +++ b/sc/source/ui/app/client.cxx @@ -39,7 +39,7 @@ using namespace com::sun::star; -ScClient::ScClient( ScTabViewShell* pViewShell, vcl::Window* pDraw, SdrModel* pSdrModel, SdrOle2Obj* pObj ) : +ScClient::ScClient( ScTabViewShell* pViewShell, vcl::Window* pDraw, SdrModel* pSdrModel, const SdrOle2Obj* pObj ) : SfxInPlaceClient( pViewShell, pDraw, pObj->GetAspect() ), pModel( pSdrModel ) { diff --git a/sc/source/ui/app/drwtrans.cxx b/sc/source/ui/app/drwtrans.cxx index 27ffddae8336..39b067f906e4 100644 --- a/sc/source/ui/app/drwtrans.cxx +++ b/sc/source/ui/app/drwtrans.cxx @@ -635,7 +635,7 @@ static void lcl_InitMarks( SdrMarkView& rDest, const SdrMarkView& rSource, SCTAB } } -void ScDrawTransferObj::SetDragSource( ScDrawView* pView ) +void ScDrawTransferObj::SetDragSource( const ScDrawView* pView ) { DELETEZ( pDragSourceView ); pDragSourceView = new SdrView( pView->GetModel() ); diff --git a/sc/source/ui/app/inputhdl.cxx b/sc/source/ui/app/inputhdl.cxx index 9e491efe425e..9be7701dfb92 100644 --- a/sc/source/ui/app/inputhdl.cxx +++ b/sc/source/ui/app/inputhdl.cxx @@ -490,7 +490,7 @@ void ScInputHandler::DeleteRangeFinder() } } -inline OUString GetEditText(EditEngine* pEng) +inline OUString GetEditText(const EditEngine* pEng) { return ScEditUtil::GetSpaceDelimitedString(*pEng); } @@ -1827,7 +1827,7 @@ void ScInputHandler::UpdateParenthesis() bParenthesisShown = bFound; } -void ScInputHandler::ViewShellGone(ScTabViewShell* pViewSh) // Executed synchronously! +void ScInputHandler::ViewShellGone(const ScTabViewShell* pViewSh) // Executed synchronously! { if ( pViewSh == pActiveViewSh ) { @@ -2215,7 +2215,7 @@ static void lcl_SetTopSelection( EditView* pEditView, ESelection& rSel ) pEditView->SetSelection( rSel ); } -void ScInputHandler::SyncViews( EditView* pSourceView ) +void ScInputHandler::SyncViews( const EditView* pSourceView ) { if (pSourceView) { @@ -2978,7 +2978,7 @@ void ScInputHandler::CancelHandler() bInOwnChange = false; } -bool ScInputHandler::IsModalMode( SfxObjectShell* pDocSh ) +bool ScInputHandler::IsModalMode( const SfxObjectShell* pDocSh ) { // References to unnamed document; that doesn't work return bFormulaMode && pRefViewSh @@ -3014,7 +3014,7 @@ void ScInputHandler::AddRefEntry() DataChanged(); } -void ScInputHandler::SetReference( const ScRange& rRef, ScDocument* pDoc ) +void ScInputHandler::SetReference( const ScRange& rRef, const ScDocument* pDoc ) { HideTip(); @@ -3801,7 +3801,7 @@ IMPL_LINK_NOARG( ScInputHandler, DelayTimer, Timer*, void ) } } -void ScInputHandler::InputSelection( EditView* pView ) +void ScInputHandler::InputSelection( const EditView* pView ) { SyncViews( pView ); ShowTipCursor(); @@ -3811,7 +3811,7 @@ void ScInputHandler::InputSelection( EditView* pView ) ResetAutoPar(); } -void ScInputHandler::InputChanged( EditView* pView, bool bFromNotify ) +void ScInputHandler::InputChanged( const EditView* pView, bool bFromNotify ) { UpdateActiveView(); diff --git a/sc/source/ui/app/inputwin.cxx b/sc/source/ui/app/inputwin.cxx index f60937c047f0..c69dae4a98a0 100644 --- a/sc/source/ui/app/inputwin.cxx +++ b/sc/source/ui/app/inputwin.cxx @@ -143,7 +143,7 @@ SfxChildWinInfo ScInputWindowWrapper::GetInfo() const // class ScInputWindow -static VclPtr<ScTextWndBase> lcl_chooseRuntimeImpl( vcl::Window* pParent, SfxBindings* pBind ) +static VclPtr<ScTextWndBase> lcl_chooseRuntimeImpl( vcl::Window* pParent, const SfxBindings* pBind ) { ScTabViewShell* pViewSh = nullptr; SfxDispatcher* pDisp = pBind->GetDispatcher(); @@ -157,7 +157,7 @@ static VclPtr<ScTextWndBase> lcl_chooseRuntimeImpl( vcl::Window* pParent, SfxBin return VclPtr<ScInputBarGroup>::Create( pParent, pViewSh ); } -ScInputWindow::ScInputWindow( vcl::Window* pParent, SfxBindings* pBind ) : +ScInputWindow::ScInputWindow( vcl::Window* pParent, const SfxBindings* pBind ) : // With WB_CLIPCHILDREN otherwise we get flickering ToolBox ( pParent, WinBits(WB_CLIPCHILDREN) ), aWndPos ( VclPtr<ScPosWnd>::Create(this) ), diff --git a/sc/source/ui/app/scmod.cxx b/sc/source/ui/app/scmod.cxx index e30dd47e4b11..e4cc2839c85a 100644 --- a/sc/source/ui/app/scmod.cxx +++ b/sc/source/ui/app/scmod.cxx @@ -1426,21 +1426,21 @@ void ScModule::InputCancelHandler() pHdl->CancelHandler(); } -void ScModule::InputSelection( EditView* pView ) +void ScModule::InputSelection( const EditView* pView ) { ScInputHandler* pHdl = GetInputHdl(); if (pHdl) pHdl->InputSelection( pView ); } -void ScModule::InputChanged( EditView* pView ) +void ScModule::InputChanged( const EditView* pView ) { ScInputHandler* pHdl = GetInputHdl(); if (pHdl) pHdl->InputChanged( pView, false ); } -void ScModule::ViewShellGone( ScTabViewShell* pViewSh ) +void ScModule::ViewShellGone( const ScTabViewShell* pViewSh ) { ScInputHandler* pHdl = GetInputHdl(); if (pHdl) @@ -1822,7 +1822,7 @@ void ScModule::AnythingChanged() nIdleCount = 0; } -static void lcl_CheckNeedsRepaint( ScDocShell* pDocShell ) +static void lcl_CheckNeedsRepaint( const ScDocShell* pDocShell ) { SfxViewFrame* pFrame = SfxViewFrame::GetFirst( pDocShell ); while ( pFrame ) diff --git a/sc/source/ui/app/transobj.cxx b/sc/source/ui/app/transobj.cxx index cedac34ed374..d24e83b7382b 100644 --- a/sc/source/ui/app/transobj.cxx +++ b/sc/source/ui/app/transobj.cxx @@ -74,7 +74,7 @@ using namespace com::sun::star; #define SCTRANS_TYPE_EMBOBJ SotClipboardFormatId::PRIVATE #define SCTRANS_TYPE_EDIT_ODF_TEXT_FLAT SotClipboardFormatId::EDITENGINE_ODF_TEXT_FLAT -void ScTransferObj::GetAreaSize( ScDocument* pDoc, SCTAB nTab1, SCTAB nTab2, SCROW& nRow, SCCOL& nCol ) +void ScTransferObj::GetAreaSize( const ScDocument* pDoc, SCTAB nTab1, SCTAB nTab2, SCROW& nRow, SCCOL& nCol ) { SCCOL nMaxCol = 0; SCROW nMaxRow = 0; |