diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2024-11-25 21:15:18 +0100 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2024-11-26 10:24:03 +0100 |
commit | 2ed282bedf626ac93ce005906aed7fc2bb835a55 (patch) | |
tree | 85dd3a9d6656a7562fa61dd55161afde2dbd91ac /sc/source/core | |
parent | 2baa317ae365003b75537bbdc4d7b57bfa20e0b3 (diff) |
sc: prefix members of ScConditionalFormat
Change-Id: Ib8d6b19f4ff1a5a641039f7e06083430b53a6edb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177301
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sc/source/core')
-rw-r--r-- | sc/source/core/data/conditio.cxx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/sc/source/core/data/conditio.cxx b/sc/source/core/data/conditio.cxx index 29c1c2654f83..94ced759894a 100644 --- a/sc/source/core/data/conditio.cxx +++ b/sc/source/core/data/conditio.cxx @@ -1786,8 +1786,8 @@ void ScColorFormatCache::Notify(const SfxHint& rHint) ScConditionalFormat::ScConditionalFormat(sal_uInt32 nNewKey, ScDocument* pDocument) : - pDoc( pDocument ), - nKey( nNewKey ) + mpDoc( pDocument ), + mnKey( nNewKey ) { } @@ -1795,9 +1795,9 @@ std::unique_ptr<ScConditionalFormat> ScConditionalFormat::Clone(ScDocument* pNew { // Real copy of the formula (for Ref Undo/between documents) if (!pNewDoc) - pNewDoc = pDoc; + pNewDoc = mpDoc; - std::unique_ptr<ScConditionalFormat> pNew(new ScConditionalFormat(nKey, pNewDoc)); + std::unique_ptr<ScConditionalFormat> pNew(new ScConditionalFormat(mnKey, pNewDoc)); pNew->SetRange( maRanges ); // prerequisite for listeners for (const auto& rxEntry : maEntries) @@ -1863,7 +1863,7 @@ size_t ScConditionalFormat::size() const ScDocument* ScConditionalFormat::GetDocument() { - return pDoc; + return mpDoc; } ScConditionalFormat::~ScConditionalFormat() @@ -1941,7 +1941,7 @@ ScCondFormatData ScConditionalFormat::GetData( ScRefCellValue& rCell, const ScAd void ScConditionalFormat::DoRepaint() { // all conditional format cells - pDoc->RepaintRange( maRanges ); + mpDoc->RepaintRange( maRanges ); } void ScConditionalFormat::CompileAll() @@ -1967,7 +1967,7 @@ void ScConditionalFormat::UpdateReference( sc::RefUpdateContext& rCxt, bool bCop // ScConditionEntry::UpdateReference() obtains its aSrcPos from // maRanges and does not update it on URM_COPY, but it's needed later // for the moved position, so update maRanges beforehand. - maRanges.UpdateReference(URM_MOVE, pDoc, rCxt.maRange, rCxt.mnColDelta, rCxt.mnRowDelta, rCxt.mnTabDelta); + maRanges.UpdateReference(URM_MOVE, mpDoc, rCxt.maRange, rCxt.mnColDelta, rCxt.mnRowDelta, rCxt.mnTabDelta); for (auto& rxEntry : maEntries) rxEntry->UpdateReference(rCxt); } @@ -1975,7 +1975,7 @@ void ScConditionalFormat::UpdateReference( sc::RefUpdateContext& rCxt, bool bCop { for (auto& rxEntry : maEntries) rxEntry->UpdateReference(rCxt); - maRanges.UpdateReference(rCxt.meMode, pDoc, rCxt.maRange, rCxt.mnColDelta, rCxt.mnRowDelta, rCxt.mnTabDelta); + maRanges.UpdateReference(rCxt.meMode, mpDoc, rCxt.maRange, rCxt.mnColDelta, rCxt.mnRowDelta, rCxt.mnTabDelta); } ResetCache(); @@ -2162,8 +2162,8 @@ void ScConditionalFormat::CalcAll() void ScConditionalFormat::ResetCache() const { - if (!maRanges.empty() && pDoc) - mpCache = std::make_unique<ScColorFormatCache>(*pDoc, maRanges); + if (!maRanges.empty() && mpDoc) + mpCache = std::make_unique<ScColorFormatCache>(*mpDoc, maRanges); else mpCache.reset(); } |