Skip to content
Permalink
Browse files
Fix cppcheck warning
  • Loading branch information
nyalldawson committed Jun 28, 2021
1 parent a5d7fe2 commit 686a81479a614588af4188490db2772877a2a72b
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/core/providers/ogr/qgsogrproviderutils.cpp
@@ -2336,7 +2336,9 @@ QList< QgsProviderSublayerDetails > QgsOgrProviderUtils::querySubLayerList( int

if ( slowGeomTypeRetrieval || wkbFlatten( layerGeomType ) != wkbUnknown || !( flags & Qgis::SublayerQueryFlag::ResolveGeometryType ) )
{
const long long layerFeatureCount = flags & Qgis::SublayerQueryFlag::CountFeatures ? layer->GetApproxFeatureCount() : static_cast< long >( Qgis::FeatureCountState::Uncounted );
const long long layerFeatureCount = ( flags & Qgis::SublayerQueryFlag::CountFeatures )
? layer->GetApproxFeatureCount()
: static_cast< long >( Qgis::FeatureCountState::Uncounted );

QgsProviderSublayerDetails details;
details.setLayerNumber( i );

0 comments on commit 686a814

Please sign in to comment.