diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-06-27 17:34:37 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-06-27 17:34:37 +0200 |
commit | b99758f7aad28b0fa3906704068ba15499fb7c44 (patch) | |
tree | bc4b8577a6950344198492169599ae5bcb0c72b4 /sc | |
parent | 2795cb694b6563772e1326b74cfd678ed251681f (diff) |
clang-analyzer-deadcode.DeadStores
Change-Id: If1a2ab69d919bf2e7d462f76e7545924945b2cb5
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/formulacell.cxx | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/sc/source/core/data/formulacell.cxx b/sc/source/core/data/formulacell.cxx index 57503801eff1..4d3936b64cb8 100644 --- a/sc/source/core/data/formulacell.cxx +++ b/sc/source/core/data/formulacell.cxx @@ -1574,7 +1574,6 @@ void ScFormulaCell::Interpret() !rRecursionHelper.IsDoingIteration()) || bIterationFromRecursion || bResumeIteration) { - ScFormulaCell* pIterCell = this; // scope for debug convenience bool & rDone = rRecursionHelper.GetConvergingReference(); rDone = false; if (!bIterationFromRecursion && bResumeIteration) @@ -1589,7 +1588,7 @@ void ScFormulaCell::Interpret() rRecursionHelper.GetIterationStart()); aIter != aOldStart; ++aIter) { - pIterCell = (*aIter).pCell; + ScFormulaCell* pIterCell = (*aIter).pCell; pIterCell->bIsIterCell = true; } // Mark older cells dirty again, in case they converted @@ -1601,7 +1600,7 @@ void ScFormulaCell::Interpret() aOldStart); aIter != rRecursionHelper.GetIterationEnd(); ++aIter) { - pIterCell = (*aIter).pCell; + ScFormulaCell* pIterCell = (*aIter).pCell; if (pIterCell->nSeenInIteration == nIteration) { if (!pIterCell->bDirty || aIter == aOldStart) @@ -1626,7 +1625,7 @@ void ScFormulaCell::Interpret() rRecursionHelper.GetIterationStart()); aIter != rRecursionHelper.GetIterationEnd(); ++aIter) { - pIterCell = (*aIter).pCell; + ScFormulaCell* pIterCell = (*aIter).pCell; pIterCell->bIsIterCell = true; } } @@ -1641,7 +1640,7 @@ void ScFormulaCell::Interpret() rRecursionHelper.GetIterationEnd() && !rRecursionHelper.IsInReturn(); ++aIter) { - pIterCell = (*aIter).pCell; + ScFormulaCell* pIterCell = (*aIter).pCell; if (pIterCell->IsDirtyOrInTableOpDirty() && rRecursionHelper.GetIteration() != pIterCell->GetSeenInIteration()) @@ -1667,7 +1666,7 @@ void ScFormulaCell::Interpret() aIter != rRecursionHelper.GetIterationEnd(); ++aIter) { - pIterCell = (*aIter).pCell; + ScFormulaCell* pIterCell = (*aIter).pCell; pIterCell->bIsIterCell = false; pIterCell->nSeenInIteration = 0; pIterCell->bRunning = (*aIter).bOldRunning; @@ -1680,7 +1679,7 @@ void ScFormulaCell::Interpret() aIter != rRecursionHelper.GetIterationEnd(); ++aIter) { - pIterCell = (*aIter).pCell; + ScFormulaCell* pIterCell = (*aIter).pCell; pIterCell->bIsIterCell = false; pIterCell->nSeenInIteration = 0; pIterCell->bRunning = (*aIter).bOldRunning; |