diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-10-07 12:30:13 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-10-07 12:49:43 +0200 |
commit | dc2b5cbbf6ab30def8b7f253ee001d4d8ed2281a (patch) | |
tree | 8661e9f9b4ca6621369e723fd5dcf13696012d43 /formula | |
parent | 1e42e804da9ae28e24b2e59ebc5430cb08818239 (diff) |
clang-analyzer-deadcode.DeadStores
Change-Id: I273aee2d65f952afd78f6e2e504b5fa70dd65ef0
Diffstat (limited to 'formula')
-rw-r--r-- | formula/source/core/api/FormulaCompiler.cxx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/formula/source/core/api/FormulaCompiler.cxx b/formula/source/core/api/FormulaCompiler.cxx index 9d613e992524..443efc80ddec 100644 --- a/formula/source/core/api/FormulaCompiler.cxx +++ b/formula/source/core/api/FormulaCompiler.cxx @@ -1157,7 +1157,7 @@ void FormulaCompiler::Factor() if( eOp != ocClose ) SetError( errPairExpected); else - eOp = NextToken(); + NextToken(); } } } @@ -1181,7 +1181,7 @@ void FormulaCompiler::Factor() if (eOp != ocClose) SetError( errPairExpected); else - eOp = NextToken(); + NextToken(); } else { @@ -1240,7 +1240,7 @@ void FormulaCompiler::Factor() if (eOp != ocClose) SetError( errPairExpected); PutCode( pFacToken); - eOp = NextToken(); + NextToken(); } } // special cases NOT() and NEG() @@ -1278,7 +1278,7 @@ void FormulaCompiler::Factor() if (eOp != ocClose) SetError( errPairExpected); else - eOp = NextToken(); + NextToken(); pFacToken->SetByte( nSepCount ); if (nSepCount == 2) { @@ -1305,7 +1305,7 @@ void FormulaCompiler::Factor() else if ( !pArr->GetCodeError() ) pFacToken->SetByte( 1 ); PutCode( pFacToken ); - eOp = NextToken(); + NextToken(); } } else if ((SC_OPCODE_START_2_PAR <= eOp && eOp < SC_OPCODE_STOP_2_PAR) @@ -1355,7 +1355,7 @@ void FormulaCompiler::Factor() else if (eOp != ocClose) SetError( errPairExpected); else - eOp = NextToken(); + NextToken(); // Jumps are just normal functions for the FunctionAutoPilot tree view if (!mbJumpCommandReorder && pFacToken->GetType() == svJump) pFacToken = new FormulaFAPToken( pFacToken->GetOpCode(), nSepCount, pFacToken ); @@ -1428,7 +1428,7 @@ void FormulaCompiler::Factor() SetError( errPairExpected); else { - eOp = NextToken(); + NextToken(); // always limit to nJumpMax, no arbitrary overwrites if ( ++nJumpCount <= nJumpMax ) pFacToken->GetJump()[ nJumpCount ] = pc-1; @@ -1459,7 +1459,7 @@ void FormulaCompiler::Factor() else if ( eOp == ocMissing ) { PutCode( mpToken ); - eOp = NextToken(); + NextToken(); } else if ( eOp == ocClose ) { @@ -1477,7 +1477,7 @@ void FormulaCompiler::Factor() else if ( mpToken->IsExternalRef() ) { PutCode( mpToken); - eOp = NextToken(); + NextToken(); } else { |