summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2014-03-22 03:08:50 +0100
committerEike Rathke <erack@redhat.com>2014-03-22 03:43:42 +0100
commiteceba5512636445c9ce827e2d6151875a4fc4673 (patch)
tree27ea8fa6d627471dfc5f52fbc1a0c6cd68e59457 /sc
parentf84e7f573dd88cc814bdbc8c1678ed64f1edbf48 (diff)
no need to use the getter here
Change-Id: I5bbec2c06a641729194ceee3882b88e7372d41a9
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/table1.cxx20
1 files changed, 8 insertions, 12 deletions
diff --git a/sc/source/core/data/table1.cxx b/sc/source/core/data/table1.cxx
index 0f71358153bc..cb59dc4c9473 100644
--- a/sc/source/core/data/table1.cxx
+++ b/sc/source/core/data/table1.cxx
@@ -1578,9 +1578,8 @@ void ScTable::UpdateReference(
if(mpCondFormatList)
mpCondFormatList->UpdateReference(rCxt);
- ScTableProtection* pProtection = GetProtection();
- if (pProtection)
- pProtection->updateReference( eUpdateRefMode, pDocument, rCxt.maRange, nDx, nDy, nDz);
+ if (pTabProtection)
+ pTabProtection->updateReference( eUpdateRefMode, pDocument, rCxt.maRange, nDx, nDy, nDz);
}
void ScTable::UpdateTranspose( const ScRange& rSource, const ScAddress& rDest,
@@ -1611,9 +1610,8 @@ void ScTable::UpdateInsertTab( sc::RefUpdateInsertTabContext& rCxt )
if (mpCondFormatList)
mpCondFormatList->UpdateInsertTab(rCxt);
- ScTableProtection* pProtection = GetProtection();
- if (pProtection)
- pProtection->updateReference( URM_INSDEL, pDocument,
+ if (pTabProtection)
+ pTabProtection->updateReference( URM_INSDEL, pDocument,
ScRange( 0, 0, rCxt.mnInsertPos, MAXCOL, MAXROW, MAXTAB),
0, 0, rCxt.mnSheets);
@@ -1639,9 +1637,8 @@ void ScTable::UpdateDeleteTab( sc::RefUpdateDeleteTabContext& rCxt )
if (mpCondFormatList)
mpCondFormatList->UpdateDeleteTab(rCxt);
- ScTableProtection* pProtection = GetProtection();
- if (pProtection)
- pProtection->updateReference( URM_INSDEL, pDocument,
+ if (pTabProtection)
+ pTabProtection->updateReference( URM_INSDEL, pDocument,
ScRange( 0, 0, rCxt.mnDeletePos, MAXCOL, MAXROW, MAXTAB),
0, 0, -rCxt.mnSheets);
@@ -1665,9 +1662,8 @@ void ScTable::UpdateMoveTab(
if(mpCondFormatList)
mpCondFormatList->UpdateMoveTab(rCxt);
- ScTableProtection* pProtection = GetProtection();
- if (pProtection)
- pProtection->updateReference( URM_REORDER, pDocument,
+ if (pTabProtection)
+ pTabProtection->updateReference( URM_REORDER, pDocument,
ScRange( 0, 0, rCxt.mnOldPos, MAXCOL, MAXROW, MAXTAB),
0, 0, rCxt.mnNewPos - rCxt.mnOldPos);