Skip to content

Commit

Permalink
QgsFeaturePool does not need to be a QObject
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Aug 20, 2018
1 parent 0ba7b5f commit a59900f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/analysis/CMakeLists.txt
Expand Up @@ -169,7 +169,6 @@ SET(QGIS_ANALYSIS_MOC_HDRS

processing/qgsalgorithmfiledownloader.h

vector/geometry_checker/qgsfeaturepool.h
vector/geometry_checker/qgsgeometrychecker.h
vector/geometry_checker/qgsgeometryanglecheck.h
vector/geometry_checker/qgsgeometryareacheck.h
Expand Down Expand Up @@ -255,6 +254,7 @@ SET(QGIS_ANALYSIS_HDRS
vector/qgsgeometrysnapper.h
vector/qgszonalstatistics.h
vector/geometry_checker/qgsgeometrycheckerutils.h
vector/geometry_checker/qgsfeaturepool.h

interpolation/qgsinterpolator.h
interpolation/qgsgridfilewriter.h
Expand Down
2 changes: 0 additions & 2 deletions src/analysis/vector/geometry_checker/qgsfeaturepool.cpp
Expand Up @@ -20,10 +20,8 @@
#include "qgsgeometry.h"
#include "qgsvectorlayer.h"
#include "qgsvectordataprovider.h"
#include "qgsgeometryutils.h"

#include <QMutexLocker>
#include <limits>

QgsFeaturePool::QgsFeaturePool( QgsVectorLayer *layer, double layerToMapUnits, const QgsCoordinateTransform &layerToMapTransform, bool selectedOnly )
: mFeatureCache( CACHE_SIZE )
Expand Down
7 changes: 2 additions & 5 deletions src/analysis/vector/geometry_checker/qgsfeaturepool.h
Expand Up @@ -20,19 +20,16 @@
#define QGS_FEATUREPOOL_H

#include <QCache>
#include <QLinkedList>
#include <QMap>
#include <QMutex>
#include "qgis_analysis.h"
#include "qgsfeature.h"
#include "qgsspatialindex.h"
#include "qgsgeometrycheckerutils.h"

class QgsVectorLayer;

class ANALYSIS_EXPORT QgsFeaturePool : public QObject
class ANALYSIS_EXPORT QgsFeaturePool
{
Q_OBJECT

public:
QgsFeaturePool( QgsVectorLayer *layer, double layerToMapUnits, const QgsCoordinateTransform &layerToMapTransform, bool selectedOnly = false );
bool get( QgsFeatureId id, QgsFeature &feature );
Expand Down

0 comments on commit a59900f

Please sign in to comment.