Skip to content
Permalink
Browse files

Fix Coverity null pointer dereference warning

  • Loading branch information
nyalldawson committed Jun 17, 2016
1 parent 1ff1875 commit efdbb8740694f90f89a89288cc0b4483d399f7ec
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/core/dxf/qgsdxfexport.cpp
@@ -963,9 +963,8 @@ void QgsDxfExport::writeEntities()
const QgsAbstractVectorLayerLabeling *labeling = vl->labeling();
QgsDxfLabelProvider *lp = nullptr;
QgsDxfRuleBasedLabelProvider *rblp = nullptr;
if ( dynamic_cast<const QgsRuleBasedLabeling*>( labeling ) )
if ( const QgsRuleBasedLabeling *rbl = dynamic_cast<const QgsRuleBasedLabeling*>( labeling ) )
{
const QgsRuleBasedLabeling *rbl = dynamic_cast<const QgsRuleBasedLabeling*>( labeling );
rblp = new QgsDxfRuleBasedLabelProvider( *rbl, vl, this );
rblp->reinit( vl );
engine.addProvider( rblp );

0 comments on commit efdbb87

Please sign in to comment.
You can’t perform that action at this time.