diff options
Diffstat (limited to 'sc/source/core/tool/token.cxx')
-rw-r--r-- | sc/source/core/tool/token.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sc/source/core/tool/token.cxx b/sc/source/core/tool/token.cxx index c1fb5e2e9de6..c4cf19cb71ec 100644 --- a/sc/source/core/tool/token.cxx +++ b/sc/source/core/tool/token.cxx @@ -596,11 +596,9 @@ FormulaTokenRef extendRangeReference( FormulaToken & rTok1, FormulaToken & rTok2 const ScRefList* p = pt[i]->GetRefList(); if (p->empty()) return nullptr; - ScRefList::const_iterator it( p->begin()); - ScRefList::const_iterator end( p->end()); - for ( ; it != end; ++it) + for (const auto& rRefData : *p) { - rRef.Extend( *it, rPos); + rRef.Extend( rRefData, rPos); } } break; |