Skip to content

Commit

Permalink
Allow python creation of QgsFeatureIterator from an abstract one
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Jun 1, 2018
1 parent 7ffdab2 commit 324fd7d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 4 additions & 0 deletions python/core/auto_generated/qgsfeatureiterator.sip.in
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,10 @@ Wrapper for iterator of features from vector data provider or vector layer
QgsFeatureIterator();
%Docstring
construct invalid iterator
%End
QgsFeatureIterator( QgsAbstractFeatureIterator *iter /Transfer/ );
%Docstring
construct a valid iterator
%End
QgsFeatureIterator( const QgsFeatureIterator &fi );
%Docstring
Expand Down
4 changes: 1 addition & 3 deletions src/core/qgsfeatureiterator.h
Original file line number Diff line number Diff line change
Expand Up @@ -278,10 +278,8 @@ class CORE_EXPORT QgsFeatureIterator

//! construct invalid iterator
QgsFeatureIterator() = default;
#ifndef SIP_RUN
//! construct a valid iterator
QgsFeatureIterator( QgsAbstractFeatureIterator *iter );
#endif
QgsFeatureIterator( QgsAbstractFeatureIterator *iter SIP_TRANSFER );
//! copy constructor copies the iterator, increases ref.count
QgsFeatureIterator( const QgsFeatureIterator &fi );
//! destructor deletes the iterator if it has no more references
Expand Down

0 comments on commit 324fd7d

Please sign in to comment.