summaryrefslogtreecommitdiff
path: root/sc/source/core/data/tabprotection.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/core/data/tabprotection.cxx')
-rw-r--r--sc/source/core/data/tabprotection.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sc/source/core/data/tabprotection.cxx b/sc/source/core/data/tabprotection.cxx
index 3f0d0dae595c..6c3de2bde15b 100644
--- a/sc/source/core/data/tabprotection.cxx
+++ b/sc/source/core/data/tabprotection.cxx
@@ -139,7 +139,7 @@ public:
void setEnhancedProtection( const ::std::vector< ScEnhancedProtection > & rProt );
const ::std::vector< ScEnhancedProtection > & getEnhancedProtection() const { return maEnhancedProtection;}
- bool updateReference( UpdateRefMode, const ScDocument*, const ScRange& rWhere, SCCOL nDx, SCROW nDy, SCTAB nDz );
+ bool updateReference( UpdateRefMode, const ScDocument&, const ScRange& rWhere, SCCOL nDx, SCROW nDy, SCTAB nDz );
bool isBlockEditable( const ScRange& rRange ) const;
bool isSelectionEditable( const ScRangeList& rRangeList ) const;
@@ -428,14 +428,14 @@ void ScTableProtectionImpl::setEnhancedProtection( const ::std::vector< ScEnhanc
maEnhancedProtection = rProt;
}
-bool ScTableProtectionImpl::updateReference( UpdateRefMode eMode, const ScDocument* pDoc,
+bool ScTableProtectionImpl::updateReference( UpdateRefMode eMode, const ScDocument& rDoc,
const ScRange& rWhere, SCCOL nDx, SCROW nDy, SCTAB nDz )
{
bool bChanged = false;
for (auto& rEnhancedProtection : maEnhancedProtection)
{
if (rEnhancedProtection.maRangeList.is())
- bChanged |= rEnhancedProtection.maRangeList->UpdateReference( eMode, pDoc, rWhere, nDx, nDy, nDz);
+ bChanged |= rEnhancedProtection.maRangeList->UpdateReference( eMode, &rDoc, rWhere, nDx, nDy, nDz);
}
return bChanged;
}
@@ -705,10 +705,10 @@ const ::std::vector< ScEnhancedProtection > & ScTableProtection::getEnhancedProt
return mpImpl->getEnhancedProtection();
}
-bool ScTableProtection::updateReference( UpdateRefMode eMode, const ScDocument* pDoc, const ScRange& rWhere,
+bool ScTableProtection::updateReference( UpdateRefMode eMode, const ScDocument& rDoc, const ScRange& rWhere,
SCCOL nDx, SCROW nDy, SCTAB nDz )
{
- return mpImpl->updateReference( eMode, pDoc, rWhere, nDx, nDy, nDz);
+ return mpImpl->updateReference( eMode, rDoc, rWhere, nDx, nDy, nDz);
}
bool ScTableProtection::isBlockEditable( const ScRange& rRange ) const