Skip to content

Commit

Permalink
Make QgsVectorLayerImport protected members private
Browse files Browse the repository at this point in the history
This class isn't designed to be subclassed
  • Loading branch information
nyalldawson committed May 6, 2017
1 parent 83baf9e commit 80d2240
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 21 deletions.
18 changes: 0 additions & 18 deletions python/core/qgsvectorlayerimport.sip
Original file line number Diff line number Diff line change
Expand Up @@ -117,24 +117,6 @@ Retrieves error message
Close the new created layer
%End

protected:
bool flushBuffer();
%Docstring
Flush the buffer writing the features to the new layer
:rtype: bool
%End

bool createSpatialIndex();
%Docstring
Create index
:rtype: bool
%End






private:
QgsVectorLayerImport( const QgsVectorLayerImport &rh );
};
Expand Down
4 changes: 1 addition & 3 deletions src/core/qgsvectorlayerimport.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class CORE_EXPORT QgsVectorLayerImport : public QgsFeatureSink
//! Close the new created layer
~QgsVectorLayerImport();

protected:
private:
//! Flush the buffer writing the features to the new layer
bool flushBuffer();

Expand All @@ -143,8 +143,6 @@ class CORE_EXPORT QgsVectorLayerImport : public QgsFeatureSink
QgsFeatureList mFeatureBuffer;
QProgressDialog *mProgress = nullptr;

private:

#ifdef SIP_RUN
QgsVectorLayerImport( const QgsVectorLayerImport &rh );
#endif
Expand Down

0 comments on commit 80d2240

Please sign in to comment.