summaryrefslogtreecommitdiff
path: root/sc/source/ui/undo
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-08-25 13:10:36 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-08-25 14:45:42 +0200
commit407a126af45d93f83eb4dbdc358dd569bea4db6f (patch)
treedfeba7a3c19f88bcb7c26a31a400489283504e90 /sc/source/ui/undo
parent001e0e530f42b3838fa882ab77a3bb2b24f69ef7 (diff)
loplugin:constparam in sc part6
Change-Id: Ifbb921b820b7210e7f9539e45d4852764a1e9cbd Reviewed-on: https://gerrit.libreoffice.org/41563 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/undo')
-rw-r--r--sc/source/ui/undo/undoblk.cxx2
-rw-r--r--sc/source/ui/undo/undoblk3.cxx2
-rw-r--r--sc/source/ui/undo/undocell.cxx2
-rw-r--r--sc/source/ui/undo/undorangename.cxx2
-rw-r--r--sc/source/ui/undo/undostyl.cxx2
-rw-r--r--sc/source/ui/undo/undotab.cxx4
-rw-r--r--sc/source/ui/undo/undoutil.cxx8
7 files changed, 11 insertions, 11 deletions
diff --git a/sc/source/ui/undo/undoblk.cxx b/sc/source/ui/undo/undoblk.cxx
index 8573e1768485..5ca8efebab7c 100644
--- a/sc/source/ui/undo/undoblk.cxx
+++ b/sc/source/ui/undo/undoblk.cxx
@@ -1571,7 +1571,7 @@ void ScUndoConditionalFormatList::Redo()
DoChange(mpRedoDoc.get());
}
-void ScUndoConditionalFormatList::DoChange(ScDocument* pSrcDoc)
+void ScUndoConditionalFormatList::DoChange(const ScDocument* pSrcDoc)
{
ScDocument& rDoc = pDocShell->GetDocument();
diff --git a/sc/source/ui/undo/undoblk3.cxx b/sc/source/ui/undo/undoblk3.cxx
index 95f466ad6dd4..a20832c5c550 100644
--- a/sc/source/ui/undo/undoblk3.cxx
+++ b/sc/source/ui/undo/undoblk3.cxx
@@ -1462,7 +1462,7 @@ bool ScUndoRefreshLink::CanRepeat(SfxRepeatTarget& /* rTarget */) const
return false;
}
-static ScAreaLink* lcl_FindAreaLink( sfx2::LinkManager* pLinkManager, const OUString& rDoc,
+static ScAreaLink* lcl_FindAreaLink( const sfx2::LinkManager* pLinkManager, const OUString& rDoc,
const OUString& rFlt, const OUString& rOpt,
const OUString& rSrc, const ScRange& rDest )
{
diff --git a/sc/source/ui/undo/undocell.cxx b/sc/source/ui/undo/undocell.cxx
index 173a569a8002..360135d6cb97 100644
--- a/sc/source/ui/undo/undocell.cxx
+++ b/sc/source/ui/undo/undocell.cxx
@@ -49,7 +49,7 @@ using std::shared_ptr;
namespace HelperNotifyChanges
{
- void NotifyIfChangesListeners(ScDocShell& rDocShell, const ScAddress &rPos,
+ void NotifyIfChangesListeners(const ScDocShell& rDocShell, const ScAddress &rPos,
const ScUndoEnterData::ValuesType &rOldValues)
{
if (ScModelObj* pModelObj = getMustPropagateChangesModel(rDocShell))
diff --git a/sc/source/ui/undo/undorangename.cxx b/sc/source/ui/undo/undorangename.cxx
index ec2564f357cf..793846cfd000 100644
--- a/sc/source/ui/undo/undorangename.cxx
+++ b/sc/source/ui/undo/undorangename.cxx
@@ -77,7 +77,7 @@ void ScUndoAllRangeNames::DoChange(const std::map<OUString, std::unique_ptr<ScRa
SfxGetpApp()->Broadcast(SfxHint(SfxHintId::ScAreasChanged));
}
-ScUndoAddRangeData::ScUndoAddRangeData(ScDocShell* pDocSh, ScRangeData* pRangeData, SCTAB nTab) :
+ScUndoAddRangeData::ScUndoAddRangeData(ScDocShell* pDocSh, const ScRangeData* pRangeData, SCTAB nTab) :
ScSimpleUndo(pDocSh),
mpRangeData(new ScRangeData(*pRangeData)),
mnTab(nTab)
diff --git a/sc/source/ui/undo/undostyl.cxx b/sc/source/ui/undo/undostyl.cxx
index 1af29c7bc135..eabbfd08e823 100644
--- a/sc/source/ui/undo/undostyl.cxx
+++ b/sc/source/ui/undo/undostyl.cxx
@@ -86,7 +86,7 @@ OUString ScUndoModifyStyle::GetComment() const
return ScGlobal::GetRscString(pId);
}
-static void lcl_DocStyleChanged( ScDocument* pDoc, SfxStyleSheetBase* pStyle, bool bRemoved )
+static void lcl_DocStyleChanged( ScDocument* pDoc, const SfxStyleSheetBase* pStyle, bool bRemoved )
{
//! move to document or docshell
diff --git a/sc/source/ui/undo/undotab.cxx b/sc/source/ui/undo/undotab.cxx
index b7224b805423..0b41b3d460e0 100644
--- a/sc/source/ui/undo/undotab.cxx
+++ b/sc/source/ui/undo/undotab.cxx
@@ -153,7 +153,7 @@ bool ScUndoInsertTab::CanRepeat(SfxRepeatTarget& rTarget) const
ScUndoInsertTables::ScUndoInsertTables( ScDocShell* pNewDocShell,
SCTAB nTabNum,
- std::vector<OUString>& newNameList) :
+ const std::vector<OUString>& newNameList) :
ScSimpleUndo( pNewDocShell ),
pDrawUndo( nullptr ),
aNameList( newNameList ),
@@ -284,7 +284,7 @@ void ScUndoDeleteTab::SetChangeTrack()
nStartChangeAction = nEndChangeAction = 0;
}
-static SCTAB lcl_GetVisibleTabBefore( ScDocument& rDoc, SCTAB nTab )
+static SCTAB lcl_GetVisibleTabBefore( const ScDocument& rDoc, SCTAB nTab )
{
while ( nTab > 0 && !rDoc.IsVisible( nTab ) )
--nTab;
diff --git a/sc/source/ui/undo/undoutil.cxx b/sc/source/ui/undo/undoutil.cxx
index 7aba46f07e3a..41d2caf92e69 100644
--- a/sc/source/ui/undo/undoutil.cxx
+++ b/sc/source/ui/undo/undoutil.cxx
@@ -28,7 +28,7 @@
#include "global.hxx"
#include "markdata.hxx"
-void ScUndoUtil::MarkSimpleBlock( ScDocShell* pDocShell,
+void ScUndoUtil::MarkSimpleBlock( const ScDocShell* pDocShell,
SCCOL nStartX, SCROW nStartY, SCTAB nStartZ,
SCCOL nEndX, SCROW nEndY, SCTAB nEndZ )
{
@@ -51,7 +51,7 @@ void ScUndoUtil::MarkSimpleBlock( ScDocShell* pDocShell,
}
}
-void ScUndoUtil::MarkSimpleBlock( ScDocShell* pDocShell,
+void ScUndoUtil::MarkSimpleBlock( const ScDocShell* pDocShell,
const ScAddress& rBlockStart,
const ScAddress& rBlockEnd )
{
@@ -59,14 +59,14 @@ void ScUndoUtil::MarkSimpleBlock( ScDocShell* pDocShell,
rBlockEnd.Col(), rBlockEnd.Row(), rBlockEnd.Tab() );
}
-void ScUndoUtil::MarkSimpleBlock( ScDocShell* pDocShell,
+void ScUndoUtil::MarkSimpleBlock( const ScDocShell* pDocShell,
const ScRange& rRange )
{
MarkSimpleBlock( pDocShell, rRange.aStart.Col(), rRange.aStart.Row(), rRange.aStart.Tab(),
rRange.aEnd.Col(), rRange.aEnd.Row(), rRange.aEnd.Tab() );
}
-ScDBData* ScUndoUtil::GetOldDBData( ScDBData* pUndoData, ScDocument* pDoc, SCTAB nTab,
+ScDBData* ScUndoUtil::GetOldDBData( const ScDBData* pUndoData, ScDocument* pDoc, SCTAB nTab,
SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2 )
{
ScDBData* pRet = pDoc->GetDBAtArea( nTab, nCol1, nRow1, nCol2, nRow2 );