Skip to content

Commit 1280779

Browse files
committedApr 26, 2017
Don't force use of In,Out in QgsFeatureSink methods
1 parent 49d4b5e commit 1280779

File tree

7 files changed

+14
-14
lines changed

7 files changed

+14
-14
lines changed
 

‎python/core/qgsfeaturesink.sip

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ class QgsFeatureSink
2424

2525
virtual ~QgsFeatureSink();
2626

27-
virtual bool addFeature( QgsFeature &feature /In,Out/ ) = 0;
27+
virtual bool addFeature( QgsFeature &feature ) = 0;
2828
%Docstring
2929
Adds a single ``feature`` to the sink.
3030
\see addFeatures()
3131
:return: true in case of success and false in case of failure
3232
:rtype: bool
3333
%End
3434

35-
virtual bool addFeatures( QgsFeatureList &features /In,Out/ ) = 0;
35+
virtual bool addFeatures( QgsFeatureList &features ) = 0;
3636
%Docstring
3737
Adds a list of ``features`` to the sink.
3838
\see addFeature()

‎python/core/qgsfeaturestore.sip

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ Constructor
5353
\see crs()
5454
%End
5555

56-
virtual bool addFeature( QgsFeature &feature /In,Out/ );
56+
virtual bool addFeature( QgsFeature &feature );
5757

58-
virtual bool addFeatures( QgsFeatureList &features /In,Out/ );
58+
virtual bool addFeatures( QgsFeatureList &features );
5959

6060

6161
QgsFeatureList features() const;

‎python/core/qgsvectorfilewriter.sip

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,8 +380,8 @@ class QgsVectorFileWriter : QgsFeatureSink
380380
/** Retrieves error message */
381381
QString errorMessage();
382382

383-
bool addFeature( QgsFeature &feature /In,Out/ );
384-
bool addFeatures( QgsFeatureList &features /In,Out/ );
383+
bool addFeature( QgsFeature &feature );
384+
bool addFeatures( QgsFeatureList &features );
385385

386386
/** Add feature to the currently opened data source */
387387
bool addFeature( QgsFeature& feature, QgsFeatureRenderer* renderer, QgsUnitTypes::DistanceUnit outputUnit = QgsUnitTypes::DistanceMeters );

‎python/core/qgsvectorlayer.sip

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -901,7 +901,7 @@ Return the provider type for this layer
901901
:rtype: QgsFeatureIterator
902902
%End
903903

904-
virtual bool addFeature( QgsFeature &feature /In,Out/ );
904+
virtual bool addFeature( QgsFeature &feature );
905905

906906
%Docstring
907907
Adds a single ``feature`` to the layer.
@@ -1260,7 +1260,7 @@ Delete an attribute field (but does not commit it)
12601260
:rtype: bool
12611261
%End
12621262

1263-
virtual bool addFeatures( QgsFeatureList &features /In,Out/ );
1263+
virtual bool addFeatures( QgsFeatureList &features );
12641264

12651265

12661266
bool deleteFeature( QgsFeatureId fid );

‎src/core/qgsfeaturesink.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,14 @@ class CORE_EXPORT QgsFeatureSink
4040
* \see addFeatures()
4141
* \returns true in case of success and false in case of failure
4242
*/
43-
virtual bool addFeature( QgsFeature &feature SIP_INOUT ) = 0;
43+
virtual bool addFeature( QgsFeature &feature ) = 0;
4444

4545
/**
4646
* Adds a list of \a features to the sink.
4747
* \see addFeature()
4848
* \returns true in case of success and false in case of failure
4949
*/
50-
virtual bool addFeatures( QgsFeatureList &features SIP_INOUT ) = 0;
50+
virtual bool addFeatures( QgsFeatureList &features ) = 0;
5151

5252
};
5353

‎src/core/qgsfeaturestore.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ class CORE_EXPORT QgsFeatureStore : public QgsFeatureSink
6161
*/
6262
void setCrs( const QgsCoordinateReferenceSystem &crs ) { mCrs = crs; }
6363

64-
bool addFeature( QgsFeature &feature SIP_INOUT ) override;
65-
bool addFeatures( QgsFeatureList &features SIP_INOUT ) override;
64+
bool addFeature( QgsFeature &feature ) override;
65+
bool addFeatures( QgsFeatureList &features ) override;
6666

6767
/**
6868
* Returns the list of features contained in the store.

‎src/core/qgsvectorlayer.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -881,7 +881,7 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer, public QgsExpressionConte
881881
* \see addFeatures()
882882
* \returns true in case of success and false in case of failure
883883
*/
884-
bool addFeature( QgsFeature &feature SIP_INOUT ) override;
884+
bool addFeature( QgsFeature &feature ) override;
885885

886886
/** Updates an existing feature. This method needs to query the datasource
887887
on every call. Consider using changeAttributeValue() or
@@ -1205,7 +1205,7 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer, public QgsExpressionConte
12051205
*/
12061206
bool deleteAttributes( QList<int> attrs );
12071207

1208-
bool addFeatures( QgsFeatureList &features SIP_INOUT ) override;
1208+
bool addFeatures( QgsFeatureList &features ) override;
12091209

12101210
//! Delete a feature from the layer (but does not commit it)
12111211
bool deleteFeature( QgsFeatureId fid );

0 commit comments

Comments
 (0)
Please sign in to comment.