Kaydet (Commit) 39a33a54 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

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

Change-Id: I28d41341607abae82a3bc5d9cacdb70e7431be18
üst 1e8dc795
...@@ -223,8 +223,12 @@ sal_Int32 FormulaHelper::GetFunctionStart( const OUString& rFormula, ...@@ -223,8 +223,12 @@ sal_Int32 FormulaHelper::GetFunctionStart( const OUString& rFormula,
if (nParPos > 0) if (nParPos > 0)
nParPos--; nParPos--;
} }
else if ( !(bFound = ( rFormula[nParPos] == '(' ) ) ) else
nParPos--; {
bFound = rFormula[nParPos] == '(';
if ( !bFound )
nParPos--;
}
} }
} }
else else
...@@ -238,8 +242,12 @@ sal_Int32 FormulaHelper::GetFunctionStart( const OUString& rFormula, ...@@ -238,8 +242,12 @@ sal_Int32 FormulaHelper::GetFunctionStart( const OUString& rFormula,
nParPos++; nParPos++;
nParPos++; nParPos++;
} }
else if ( !(bFound = ( rFormula[nParPos] == '(' ) ) ) else
nParPos++; {
bFound = rFormula[nParPos] == '(';
if ( !bFound )
nParPos++;
}
} }
} }
......
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