Kaydet (Commit) 26f76420 authored tarafından Michael Stahl's avatar Michael Stahl

sc: PVS-Studio V595 'pCode' pointer could be null

Change-Id: I2400fde32a41395f5c118f80661ae2c2f21df7ad
üst ae09c25c
...@@ -1254,8 +1254,7 @@ void ScFormulaCell::CompileXML( sc::CompileFormulaContext& rCxt, ScProgress& rPr ...@@ -1254,8 +1254,7 @@ void ScFormulaCell::CompileXML( sc::CompileFormulaContext& rCxt, ScProgress& rPr
pDocument->DecXMLImportedFormulaCount( aFormula.getLength() ); pDocument->DecXMLImportedFormulaCount( aFormula.getLength() );
rProgress.SetStateCountDownOnPercent( pDocument->GetXMLImportedFormulaCount() ); rProgress.SetStateCountDownOnPercent( pDocument->GetXMLImportedFormulaCount() );
// pCode may not deleted for queries, but must be empty // pCode may not deleted for queries, but must be empty
if ( pCode ) pCode->Clear();
pCode->Clear();
bool bSkipCompile = false; bool bSkipCompile = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment