summaryrefslogtreecommitdiff
path: root/sc/source/core
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-03-25 16:49:38 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-03-26 07:30:35 +0100
commit276c722b0c13d84756da8e06fb94f58810c8849a (patch)
tree5e13c45c446b7485bb053553d929cc158f59b6e7 /sc/source/core
parent6c0f5f7f2a6cc122a738deb0a17353cca1cd5c7e (diff)
flatten TabRanges
no need to declare this separately, saves one pointer hop Change-Id: I14fd82a9448c43ddfa0b6179a3b79cf6d364130d Reviewed-on: https://gerrit.libreoffice.org/69687 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/core')
-rw-r--r--sc/source/core/data/dociter.cxx6
-rw-r--r--sc/source/core/data/segmenttree.cxx2
2 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/core/data/dociter.cxx b/sc/source/core/data/dociter.cxx
index 5031caa5666b..d9bb1c415b8e 100644
--- a/sc/source/core/data/dociter.cxx
+++ b/sc/source/core/data/dociter.cxx
@@ -2511,7 +2511,7 @@ const ScPatternAttr* ScDocAttrIterator::GetNext( SCCOL& rCol, SCROW& rRow1, SCRO
}
ScDocRowHeightUpdater::TabRanges::TabRanges(SCTAB nTab) :
- mnTab(nTab), mpRanges(new ScFlatBoolRowSegments)
+ mnTab(nTab)
{
}
@@ -2537,7 +2537,7 @@ void ScDocRowHeightUpdater::update()
continue;
ScFlatBoolRowSegments::RangeData aData;
- ScFlatBoolRowSegments::RangeIterator aRangeItr(*rTabRanges.mpRanges);
+ ScFlatBoolRowSegments::RangeIterator aRangeItr(rTabRanges.maRanges);
for (bool bFound = aRangeItr.getFirst(aData); bFound; bFound = aRangeItr.getNext(aData))
{
if (!aData.mbValue)
@@ -2559,7 +2559,7 @@ void ScDocRowHeightUpdater::update()
sc::RowHeightContext aCxt(mfPPTX, mfPPTY, aZoom, aZoom, mpOutDev);
ScFlatBoolRowSegments::RangeData aData;
- ScFlatBoolRowSegments::RangeIterator aRangeItr(*rTabRanges.mpRanges);
+ ScFlatBoolRowSegments::RangeIterator aRangeItr(rTabRanges.maRanges);
for (bool bFound = aRangeItr.getFirst(aData); bFound; bFound = aRangeItr.getNext(aData))
{
if (!aData.mbValue)
diff --git a/sc/source/core/data/segmenttree.cxx b/sc/source/core/data/segmenttree.cxx
index e7b35ea5dfd5..b47f1e7b9f3c 100644
--- a/sc/source/core/data/segmenttree.cxx
+++ b/sc/source/core/data/segmenttree.cxx
@@ -318,7 +318,7 @@ bool ScFlatBoolRowSegments::ForwardIterator::getValue(SCROW nPos, bool& rVal)
return true;
}
-ScFlatBoolRowSegments::RangeIterator::RangeIterator(ScFlatBoolRowSegments& rSegs) :
+ScFlatBoolRowSegments::RangeIterator::RangeIterator(ScFlatBoolRowSegments const & rSegs) :
mrSegs(rSegs)
{
}