summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-03-12 19:49:03 +0100
committerMichael Stahl <mstahl@redhat.com>2015-03-12 20:22:18 +0100
commit26f76420c0bcd002d2bfc17a017d373ea5396a9c (patch)
treed10477ee9735f0084b844b4c4e929191fdbcd1ea /sc
parentae09c25c0a94ef87b66117f6b27ee660b0b4d3d1 (diff)
sc: PVS-Studio V595 'pCode' pointer could be null
Change-Id: I2400fde32a41395f5c118f80661ae2c2f21df7ad
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/formulacell.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sc/source/core/data/formulacell.cxx b/sc/source/core/data/formulacell.cxx
index 55e692b78c17..bf9784539612 100644
--- a/sc/source/core/data/formulacell.cxx
+++ b/sc/source/core/data/formulacell.cxx
@@ -1254,8 +1254,7 @@ void ScFormulaCell::CompileXML( sc::CompileFormulaContext& rCxt, ScProgress& rPr
pDocument->DecXMLImportedFormulaCount( aFormula.getLength() );
rProgress.SetStateCountDownOnPercent( pDocument->GetXMLImportedFormulaCount() );
// pCode may not deleted for queries, but must be empty
- if ( pCode )
- pCode->Clear();
+ pCode->Clear();
bool bSkipCompile = false;