Kaydet (Commit) 0eefc955 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Take new FormulaTokenArrayPlainIterator into use in a couple more places

Change-Id: I49ddf780c0adee7123d985b1e343b8d248a46446
üst f01ff6b8
......@@ -83,9 +83,9 @@ static bool lcl_HasRelRef( ScDocument* pDoc, ScTokenArray* pFormula, sal_uInt16
{
if (pFormula)
{
pFormula->Reset();
FormulaTokenArrayPlainIterator aIter( *pFormula );
FormulaToken* t;
for( t = pFormula->Next(); t; t = pFormula->Next() )
for( t = aIter.Next(); t; t = aIter.Next() )
{
switch( t->GetType() )
{
......@@ -1418,9 +1418,9 @@ ScAddress ScConditionEntry::GetValidSrcPos() const
ScTokenArray* pFormula = nPass ? pFormula2 : pFormula1;
if (pFormula)
{
pFormula->Reset();
formula::FormulaTokenArrayPlainIterator aIter(*pFormula);
formula::FormulaToken* t;
while ( ( t = pFormula->GetNextReference() ) != nullptr )
while ( ( t = aIter.GetNextReference() ) != nullptr )
{
ScSingleRefData& rRef1 = *t->GetSingleRef();
ScAddress aAbs = rRef1.toAbs(aSrcPos);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment