Skip to content

Commit 550de15

Browse files
3nidsm-kuhn
authored andcommitted
make context const
1 parent 2b8401c commit 550de15

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

python/analysis/auto_generated/vector/geometry_checker/qgsgeometrycheckerutils.sip.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ the Free Software Foundation; either version 2 of the License, or *
3535
%End
3636
public:
3737

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

src/analysis/vector/geometry_checker/qgsgeometrycheckerutils.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
QgsGeometryCheckerUtils::LayerFeature::LayerFeature( const QgsFeaturePool *pool,
3333
const QgsFeature &feature,
34-
QgsGeometryCheckContext *context,
34+
const QgsGeometryCheckContext *context,
3535
bool useMapCrs )
3636
: mFeaturePool( pool )
3737
, mFeature( feature )
@@ -211,7 +211,7 @@ QgsGeometryCheckerUtils::LayerFeatures::LayerFeatures( const QMap<QString, QgsFe
211211
const QMap<QString, QgsFeatureIds> &featureIds,
212212
const QList<QgsWkbTypes::GeometryType> &geometryTypes,
213213
QgsFeedback *feedback,
214-
QgsGeometryCheckContext *context,
214+
const QgsGeometryCheckContext *context,
215215
bool useMapCrs )
216216
: mFeaturePools( featurePools )
217217
, mFeatureIds( featureIds )
@@ -225,7 +225,7 @@ QgsGeometryCheckerUtils::LayerFeatures::LayerFeatures( const QMap<QString, QgsFe
225225
QgsGeometryCheckerUtils::LayerFeatures::LayerFeatures( const QMap<QString, QgsFeaturePool *> &featurePools,
226226
const QList<QString> &layerIds, const QgsRectangle &extent,
227227
const QList<QgsWkbTypes::GeometryType> &geometryTypes,
228-
QgsGeometryCheckContext *context )
228+
const QgsGeometryCheckContext *context )
229229
: mFeaturePools( featurePools )
230230
, mLayerIds( layerIds )
231231
, mExtent( extent )

src/analysis/vector/geometry_checker/qgsgeometrycheckerutils.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class ANALYSIS_EXPORT QgsGeometryCheckerUtils
4141
* If \a useMapCrs is True, geometries will be reprojected to the mapCrs defined
4242
* in \a context.
4343
*/
44-
LayerFeature( const QgsFeaturePool *pool, const QgsFeature &feature, QgsGeometryCheckContext *context, bool useMapCrs );
44+
LayerFeature( const QgsFeaturePool *pool, const QgsFeature &feature, const QgsGeometryCheckContext *context, bool useMapCrs );
4545

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

9595
LayerFeatures( const QMap<QString, QgsFeaturePool *> &featurePools,
9696
const QList<QString> &layerIds, const QgsRectangle &extent,
9797
const QList<QgsWkbTypes::GeometryType> &geometryTypes,
98-
QgsGeometryCheckContext *context );
98+
const QgsGeometryCheckContext *context );
9999

100100
class iterator
101101
{
@@ -133,7 +133,7 @@ class ANALYSIS_EXPORT QgsGeometryCheckerUtils
133133
QgsRectangle mExtent;
134134
QList<QgsWkbTypes::GeometryType> mGeometryTypes;
135135
QgsFeedback *mFeedback = nullptr;
136-
QgsGeometryCheckContext *mContext = nullptr;
136+
const QgsGeometryCheckContext *mContext = nullptr;
137137
bool mUseMapCrs = true;
138138
};
139139

0 commit comments

Comments
 (0)