@@ -111,7 +111,7 @@ QgsOgrProvider::QgsOgrProvider( QString const & uri )
111111
112112 // getting the total number of features in the layer
113113 // TODO: This can be expensive, do we really need it!
114- numberFeatures = OGR_L_GetFeatureCount ( ogrLayer, TRUE );
114+ featuresCounted = OGR_L_GetFeatureCount ( ogrLayer, TRUE );
115115
116116 // check the validity of the layer
117117
@@ -410,7 +410,7 @@ QGis::WkbType QgsOgrProvider::geometryType() const
410410 */
411411long QgsOgrProvider::featureCount () const
412412{
413- return numberFeatures ;
413+ return featuresCounted ;
414414}
415415
416416/* *
@@ -549,7 +549,7 @@ bool QgsOgrProvider::addFeature( QgsFeature& f )
549549 {
550550 f.setFeatureId ( OGR_F_GetFID ( feature ) );
551551 }
552- ++numberFeatures ;
552+ ++featuresCounted ;
553553 OGR_F_Destroy ( feature );
554554 return returnValue;
555555}
@@ -568,7 +568,7 @@ bool QgsOgrProvider::addFeatures( QgsFeatureList & flist )
568568
569569 // flush features
570570 OGR_L_SyncToDisk ( ogrLayer );
571- numberFeatures = OGR_L_GetFeatureCount ( ogrLayer, TRUE ); // new feature count
571+ featuresCounted = OGR_L_GetFeatureCount ( ogrLayer, TRUE ); // new feature count
572572 return returnvalue;
573573}
574574
@@ -758,7 +758,7 @@ bool QgsOgrProvider::deleteFeatures( const QgsFeatureIds & id )
758758 QString layerName = fileName.section ( ' .' , 0 , 0 );
759759 QString sql = " REPACK " + layerName;
760760 OGR_DS_ExecuteSQL ( ogrDataSource, sql.toLocal8Bit ().data (), NULL , NULL );
761- numberFeatures = OGR_L_GetFeatureCount ( ogrLayer, TRUE ); // new feature count
761+ featuresCounted = OGR_L_GetFeatureCount ( ogrLayer, TRUE ); // new feature count
762762 return returnvalue;
763763}
764764
0 commit comments