mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-16 00:03:12 -04:00
Const correctness (because it's not an API break)
This commit is contained in:
parent
3157af2eaa
commit
7e8592bca2
@ -133,7 +133,7 @@ Returns true if the attribute value is valid for the field. Any constraint failu
|
|||||||
If the strength or origin parameter is set then only constraints with a matching strength/origin will be checked.
|
If the strength or origin parameter is set then only constraints with a matching strength/origin will be checked.
|
||||||
%End
|
%End
|
||||||
|
|
||||||
static QgsFeature createFeature( QgsVectorLayer *layer,
|
static QgsFeature createFeature( const QgsVectorLayer *layer,
|
||||||
const QgsGeometry &geometry = QgsGeometry(),
|
const QgsGeometry &geometry = QgsGeometry(),
|
||||||
const QgsAttributeMap &attributes = QgsAttributeMap(),
|
const QgsAttributeMap &attributes = QgsAttributeMap(),
|
||||||
QgsExpressionContext *context = 0 );
|
QgsExpressionContext *context = 0 );
|
||||||
@ -178,7 +178,7 @@ are padded with NULL values to match the required length).
|
|||||||
%End
|
%End
|
||||||
|
|
||||||
|
|
||||||
static QgsFeatureList makeFeaturesCompatible( const QgsFeatureList &features, QgsVectorLayer &layer );
|
static QgsFeatureList makeFeaturesCompatible( const QgsFeatureList &features, const QgsVectorLayer &layer );
|
||||||
%Docstring
|
%Docstring
|
||||||
Converts input ``features`` to be compatible with the given ``layer``.
|
Converts input ``features`` to be compatible with the given ``layer``.
|
||||||
|
|
||||||
|
@ -349,7 +349,7 @@ bool QgsVectorLayerUtils::validateAttribute( const QgsVectorLayer *layer, const
|
|||||||
return valid;
|
return valid;
|
||||||
}
|
}
|
||||||
|
|
||||||
QgsFeature QgsVectorLayerUtils::createFeature( QgsVectorLayer *layer, const QgsGeometry &geometry,
|
QgsFeature QgsVectorLayerUtils::createFeature( const QgsVectorLayer *layer, const QgsGeometry &geometry,
|
||||||
const QgsAttributeMap &attributes, QgsExpressionContext *context )
|
const QgsAttributeMap &attributes, QgsExpressionContext *context )
|
||||||
{
|
{
|
||||||
if ( !layer )
|
if ( !layer )
|
||||||
@ -561,7 +561,7 @@ void QgsVectorLayerUtils::matchAttributesToFields( QgsFeature &feature, const Qg
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
QgsFeatureList QgsVectorLayerUtils::makeFeaturesCompatible( const QgsFeatureList &features, QgsVectorLayer &layer )
|
QgsFeatureList QgsVectorLayerUtils::makeFeaturesCompatible( const QgsFeatureList &features, const QgsVectorLayer &layer )
|
||||||
{
|
{
|
||||||
QgsWkbTypes::Type inputWkbType( layer.wkbType( ) );
|
QgsWkbTypes::Type inputWkbType( layer.wkbType( ) );
|
||||||
QgsFeatureList resultFeatures;
|
QgsFeatureList resultFeatures;
|
||||||
|
@ -140,7 +140,7 @@ class CORE_EXPORT QgsVectorLayerUtils
|
|||||||
* assuming that they respect the layer's constraints. Note that the created feature is not
|
* assuming that they respect the layer's constraints. Note that the created feature is not
|
||||||
* automatically inserted into the layer.
|
* automatically inserted into the layer.
|
||||||
*/
|
*/
|
||||||
static QgsFeature createFeature( QgsVectorLayer *layer,
|
static QgsFeature createFeature( const QgsVectorLayer *layer,
|
||||||
const QgsGeometry &geometry = QgsGeometry(),
|
const QgsGeometry &geometry = QgsGeometry(),
|
||||||
const QgsAttributeMap &attributes = QgsAttributeMap(),
|
const QgsAttributeMap &attributes = QgsAttributeMap(),
|
||||||
QgsExpressionContext *context = nullptr );
|
QgsExpressionContext *context = nullptr );
|
||||||
@ -207,7 +207,7 @@ class CORE_EXPORT QgsVectorLayerUtils
|
|||||||
*
|
*
|
||||||
* \since QGIS 3.4
|
* \since QGIS 3.4
|
||||||
*/
|
*/
|
||||||
static QgsFeatureList makeFeaturesCompatible( const QgsFeatureList &features, QgsVectorLayer &layer );
|
static QgsFeatureList makeFeaturesCompatible( const QgsFeatureList &features, const QgsVectorLayer &layer );
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user