summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-02-12 13:12:10 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-02-12 15:22:43 +0000
commit20bea5c86f793b8e48d12ba487c9dee50792b0bd (patch)
treee47f368ba9ee55895989e7c4b28d3f6ea8c2d199 /sc
parentf7cd7b2ce40d39fd890d7bd3d098c9001fb477e5 (diff)
coverity#1267653 Logically dead code
Change-Id: I371e719cc7e1ba2faa53535f25eca1d9074342bb
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/documen4.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sc/source/core/data/documen4.cxx b/sc/source/core/data/documen4.cxx
index ba09b3b92508..01667c30e653 100644
--- a/sc/source/core/data/documen4.cxx
+++ b/sc/source/core/data/documen4.cxx
@@ -291,8 +291,7 @@ void ScDocument::InsertMatrixFormula(SCCOL nCol1, SCROW nRow1,
if (*itr == nTab1)
{
pCell = maTabs[*itr]->SetFormulaCell(nCol1, nRow1, pCell);
- assert(pCell); //NULL if nCol1/nRow1 is invalid, which it can't be here
- if (!pCell)
+ if (!pCell) //NULL if nCol1/nRow1 is invalid, which it can't be here
break;
}
else