mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
make context const
This commit is contained in:
parent
2b8401c251
commit
550de156c5
@ -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;
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user