Skip to content
Permalink
Browse files

make context const

  • Loading branch information
3nids authored and m-kuhn committed Sep 24, 2018
1 parent 2b8401c commit 550de156c54eb7055813120ceba33c52c6034168
@@ -35,7 +35,7 @@ the Free Software Foundation; either version 2 of the License, or *
%End
public:

LayerFeature( const QgsFeaturePool *pool, const QgsFeature &feature, QgsGeometryCheckContext *context, bool useMapCrs );
LayerFeature( const QgsFeaturePool *pool, const QgsFeature &feature, const QgsGeometryCheckContext *context, bool useMapCrs );
%Docstring
Create a new layer/feature combination.
The layer is defined by ``pool``, ``feature`` needs to be from this layer.
@@ -31,7 +31,7 @@

QgsGeometryCheckerUtils::LayerFeature::LayerFeature( const QgsFeaturePool *pool,
const QgsFeature &feature,
QgsGeometryCheckContext *context,
const QgsGeometryCheckContext *context,
bool useMapCrs )
: mFeaturePool( pool )
, mFeature( feature )
@@ -211,7 +211,7 @@ QgsGeometryCheckerUtils::LayerFeatures::LayerFeatures( const QMap<QString, QgsFe
const QMap<QString, QgsFeatureIds> &featureIds,
const QList<QgsWkbTypes::GeometryType> &geometryTypes,
QgsFeedback *feedback,
QgsGeometryCheckContext *context,
const QgsGeometryCheckContext *context,
bool useMapCrs )
: mFeaturePools( featurePools )
, mFeatureIds( featureIds )
@@ -225,7 +225,7 @@ QgsGeometryCheckerUtils::LayerFeatures::LayerFeatures( const QMap<QString, QgsFe
QgsGeometryCheckerUtils::LayerFeatures::LayerFeatures( const QMap<QString, QgsFeaturePool *> &featurePools,
const QList<QString> &layerIds, const QgsRectangle &extent,
const QList<QgsWkbTypes::GeometryType> &geometryTypes,
QgsGeometryCheckContext *context )
const QgsGeometryCheckContext *context )
: mFeaturePools( featurePools )
, mLayerIds( layerIds )
, mExtent( extent )
@@ -41,7 +41,7 @@ class ANALYSIS_EXPORT QgsGeometryCheckerUtils
* If \a useMapCrs is True, geometries will be reprojected to the mapCrs defined
* in \a context.
*/
LayerFeature( const QgsFeaturePool *pool, const QgsFeature &feature, QgsGeometryCheckContext *context, bool useMapCrs );
LayerFeature( const QgsFeaturePool *pool, const QgsFeature &feature, const QgsGeometryCheckContext *context, bool useMapCrs );

/**
* Returns the feature.
@@ -89,13 +89,13 @@ class ANALYSIS_EXPORT QgsGeometryCheckerUtils
const QMap<QString, QgsFeatureIds> &featureIds,
const QList<QgsWkbTypes::GeometryType> &geometryTypes,
QgsFeedback *feedback,
QgsGeometryCheckContext *context,
const QgsGeometryCheckContext *context,
bool useMapCrs = false );

LayerFeatures( const QMap<QString, QgsFeaturePool *> &featurePools,
const QList<QString> &layerIds, const QgsRectangle &extent,
const QList<QgsWkbTypes::GeometryType> &geometryTypes,
QgsGeometryCheckContext *context );
const QgsGeometryCheckContext *context );

class iterator
{
@@ -133,7 +133,7 @@ class ANALYSIS_EXPORT QgsGeometryCheckerUtils
QgsRectangle mExtent;
QList<QgsWkbTypes::GeometryType> mGeometryTypes;
QgsFeedback *mFeedback = nullptr;
QgsGeometryCheckContext *mContext = nullptr;
const QgsGeometryCheckContext *mContext = nullptr;
bool mUseMapCrs = true;
};

0 comments on commit 550de15

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