Skip to content
Permalink
Browse files

qgisapp.cpp: remove useless nullptr check

  • Loading branch information
rouault committed Jun 1, 2020
1 parent 4dbfe2f commit c530b528516fa1630d82d509d74e0814272f6281
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/app/qgisapp.cpp
@@ -12350,7 +12350,7 @@ QgsVectorLayer *QgisApp::addVectorLayerPrivate( const QString &vectorLayerPath,
options.loadDefaultStyle = false;
QgsVectorLayer *layer = new QgsVectorLayer( vectorLayerPath, baseName, providerKey, options );

if ( authok && layer && layer->isValid() )
if ( authok && layer->isValid() )
{
QStringList sublayers = layer->dataProvider()->subLayers();
QgsDebugMsgLevel( QStringLiteral( "got valid layer with %1 sublayers" ).arg( sublayers.count() ), 2 );

0 comments on commit c530b52

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