summaryrefslogtreecommitdiff
path: root/sc/source/ui/docshell/editable.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-08-24 12:24:44 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-08-24 15:15:14 +0200
commitc137c2a46cd2276938d572c97fb111b9aa31cdfd (patch)
tree9fe4c1809e836f3c177fd930b632af6cad5407c0 /sc/source/ui/docshell/editable.cxx
parent9fe857b7bd126ff4856fc4689d375881653b97a2 (diff)
loplugin:constparam in sc part5
Change-Id: Iba249d4d8f7cc686941106983031bae53c7528e1 Reviewed-on: https://gerrit.libreoffice.org/41510 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/docshell/editable.cxx')
-rw-r--r--sc/source/ui/docshell/editable.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/sc/source/ui/docshell/editable.cxx b/sc/source/ui/docshell/editable.cxx
index feb34d0b41bf..22e1ed7027ff 100644
--- a/sc/source/ui/docshell/editable.cxx
+++ b/sc/source/ui/docshell/editable.cxx
@@ -29,7 +29,7 @@ ScEditableTester::ScEditableTester() :
{
}
-ScEditableTester::ScEditableTester( ScDocument* pDoc, SCTAB nTab,
+ScEditableTester::ScEditableTester( const ScDocument* pDoc, SCTAB nTab,
SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow ) :
mbIsEditable(true),
mbOnlyMatrix(true)
@@ -37,7 +37,7 @@ ScEditableTester::ScEditableTester( ScDocument* pDoc, SCTAB nTab,
TestBlock( pDoc, nTab, nStartCol, nStartRow, nEndCol, nEndRow );
}
-ScEditableTester::ScEditableTester( ScDocument* pDoc,
+ScEditableTester::ScEditableTester( const ScDocument* pDoc,
SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow,
const ScMarkData& rMark ) :
mbIsEditable(true),
@@ -46,14 +46,14 @@ ScEditableTester::ScEditableTester( ScDocument* pDoc,
TestSelectedBlock( pDoc, nStartCol, nStartRow, nEndCol, nEndRow, rMark );
}
-ScEditableTester::ScEditableTester( ScDocument* pDoc, const ScRange& rRange ) :
+ScEditableTester::ScEditableTester( const ScDocument* pDoc, const ScRange& rRange ) :
mbIsEditable(true),
mbOnlyMatrix(true)
{
TestRange( pDoc, rRange );
}
-ScEditableTester::ScEditableTester( ScDocument* pDoc, const ScMarkData& rMark ) :
+ScEditableTester::ScEditableTester( const ScDocument* pDoc, const ScMarkData& rMark ) :
mbIsEditable(true),
mbOnlyMatrix(true)
{
@@ -80,7 +80,7 @@ ScEditableTester::ScEditableTester(
TestBlockForAction(rDoc, eAction, nStart, nEnd, rMark);
}
-void ScEditableTester::TestBlock( ScDocument* pDoc, SCTAB nTab,
+void ScEditableTester::TestBlock( const ScDocument* pDoc, SCTAB nTab,
SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow )
{
if (mbIsEditable || mbOnlyMatrix)
@@ -95,7 +95,7 @@ void ScEditableTester::TestBlock( ScDocument* pDoc, SCTAB nTab,
}
}
-void ScEditableTester::TestSelectedBlock( ScDocument* pDoc,
+void ScEditableTester::TestSelectedBlock( const ScDocument* pDoc,
SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow,
const ScMarkData& rMark )
{
@@ -105,7 +105,7 @@ void ScEditableTester::TestSelectedBlock( ScDocument* pDoc,
TestBlock( pDoc, *itr, nStartCol, nStartRow, nEndCol, nEndRow );
}
-void ScEditableTester::TestRange( ScDocument* pDoc, const ScRange& rRange )
+void ScEditableTester::TestRange( const ScDocument* pDoc, const ScRange& rRange )
{
SCCOL nStartCol = rRange.aStart.Col();
SCROW nStartRow = rRange.aStart.Row();
@@ -117,7 +117,7 @@ void ScEditableTester::TestRange( ScDocument* pDoc, const ScRange& rRange )
TestBlock( pDoc, nTab, nStartCol, nStartRow, nEndCol, nEndRow );
}
-void ScEditableTester::TestSelection( ScDocument* pDoc, const ScMarkData& rMark )
+void ScEditableTester::TestSelection( const ScDocument* pDoc, const ScMarkData& rMark )
{
if (mbIsEditable || mbOnlyMatrix)
{