Rewrite some (trivial) assignments inside if/while conditions: formula

Change-Id: I28d41341607abae82a3bc5d9cacdb70e7431be18
This commit is contained in:
Stephan Bergmann
2016-11-29 17:20:52 +01:00
parent 1e8dc79555
commit 39a33a548b

View File

@@ -223,8 +223,12 @@ sal_Int32 FormulaHelper::GetFunctionStart( const OUString& rFormula,
if (nParPos > 0)
nParPos--;
}
else if ( !(bFound = ( rFormula[nParPos] == '(' ) ) )
nParPos--;
else
{
bFound = rFormula[nParPos] == '(';
if ( !bFound )
nParPos--;
}
}
}
else
@@ -238,8 +242,12 @@ sal_Int32 FormulaHelper::GetFunctionStart( const OUString& rFormula,
nParPos++;
nParPos++;
}
else if ( !(bFound = ( rFormula[nParPos] == '(' ) ) )
nParPos++;
else
{
bFound = rFormula[nParPos] == '(';
if ( !bFound )
nParPos++;
}
}
}