Rewrite some (trivial) assignments inside if/while conditions: formula
Change-Id: I28d41341607abae82a3bc5d9cacdb70e7431be18
This commit is contained in:
@@ -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++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user