summaryrefslogtreecommitdiff
path: root/formula
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2016-04-22 18:30:29 +0200
committerEike Rathke <erack@redhat.com>2016-04-23 15:52:31 +0200
commit4c5932cf06f0434a0df32203d567cab976402011 (patch)
tree703c6778f41000f80c6f0b76bf492775487d7f48 /formula
parent5892c6b2268b5b2290faca9cbdb2807f6a810d96 (diff)
join two lines that cause an annoying debugger step over experience
Change-Id: I50bf6710f7319f5c2ea18d8a3aa02f5c613de063
Diffstat (limited to 'formula')
-rw-r--r--formula/source/core/api/FormulaCompiler.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/formula/source/core/api/FormulaCompiler.cxx b/formula/source/core/api/FormulaCompiler.cxx
index baacb94422c8..31004d453973 100644
--- a/formula/source/core/api/FormulaCompiler.cxx
+++ b/formula/source/core/api/FormulaCompiler.cxx
@@ -1062,8 +1062,7 @@ bool FormulaCompiler::GetToken()
else
{
short nWasColRowName;
- if ( pArr->nIndex
- && pArr->pCode[ pArr->nIndex-1 ]->GetOpCode() == ocColRowName )
+ if ( pArr->nIndex > 0 && pArr->pCode[ pArr->nIndex-1 ]->GetOpCode() == ocColRowName )
nWasColRowName = 1;
else
nWasColRowName = 0;
@@ -1102,8 +1101,7 @@ bool FormulaCompiler::GetToken()
mpToken = new FormulaByteToken( ocStop );
return false;
}
- if ( mpToken->GetOpCode() == ocSubTotal ||
- mpToken->GetOpCode() == ocAggregate )
+ if ( mpToken->GetOpCode() == ocSubTotal || mpToken->GetOpCode() == ocAggregate )
glSubTotal = true;
else if ( mpToken->IsExternalRef() )
{