cid#1500712 silence Explicit null dereferenced
Change-Id: I5f7fc843fadfde9f1807350fc879ecea22d4817f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130487 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
parent
ed5503ba4e
commit
81b88be386
1 changed files with 4 additions and 2 deletions
|
@ -313,9 +313,11 @@ namespace slideshow::internal
|
|||
// create combined ExpressionNode
|
||||
std::shared_ptr<ExpressionNode> pNode( maGenerator( pFirstArg,
|
||||
pSecondArg ) );
|
||||
|
||||
assert(pSecondArg && pFirstArg);
|
||||
|
||||
// check for constness
|
||||
if( pFirstArg->isConstant() &&
|
||||
pSecondArg->isConstant() )
|
||||
if (pFirstArg->isConstant() && pSecondArg->isConstant())
|
||||
{
|
||||
// call the operator() at pNode, store result
|
||||
// in constant value ExpressionNode.
|
||||
|
|
Loading…
Reference in a new issue