summaryrefslogtreecommitdiff
path: root/sc/source/ui/docshell/docfunc.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/docshell/docfunc.cxx')
-rw-r--r--sc/source/ui/docshell/docfunc.cxx11
1 files changed, 5 insertions, 6 deletions
diff --git a/sc/source/ui/docshell/docfunc.cxx b/sc/source/ui/docshell/docfunc.cxx
index e8705d760aa0..6b0ee190fdd5 100644
--- a/sc/source/ui/docshell/docfunc.cxx
+++ b/sc/source/ui/docshell/docfunc.cxx
@@ -528,21 +528,20 @@ static void lcl_collectAllPredOrSuccRanges(
ScRangeList aSrcRanges(rSrcRanges);
if (aSrcRanges.empty())
return;
- ScRange* p = aSrcRanges.front();
- ScDetectiveFunc aDetFunc(&rDoc, p->aStart.Tab());
- ScRangeList aDestRanges;
+ ScRange const & rFrontRange = aSrcRanges.front();
+ ScDetectiveFunc aDetFunc(&rDoc, rFrontRange.aStart.Tab());
for (size_t i = 0, n = aSrcRanges.size(); i < n; ++i)
{
- p = aSrcRanges[i];
+ ScRange const & r = aSrcRanges[i];
if (bPred)
{
aDetFunc.GetAllPreds(
- p->aStart.Col(), p->aStart.Row(), p->aEnd.Col(), p->aEnd.Row(), aRefTokens);
+ r.aStart.Col(), r.aStart.Row(), r.aEnd.Col(), r.aEnd.Row(), aRefTokens);
}
else
{
aDetFunc.GetAllSuccs(
- p->aStart.Col(), p->aStart.Row(), p->aEnd.Col(), p->aEnd.Row(), aRefTokens);
+ r.aStart.Col(), r.aStart.Row(), r.aEnd.Col(), r.aEnd.Row(), aRefTokens);
}
}
rRefTokens.swap(aRefTokens);