Skip to content

Commit 80d2240

Browse files
committed
Make QgsVectorLayerImport protected members private
This class isn't designed to be subclassed
1 parent 83baf9e commit 80d2240

File tree

2 files changed

+1
-21
lines changed

2 files changed

+1
-21
lines changed

python/core/qgsvectorlayerimport.sip

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -117,24 +117,6 @@ Retrieves error message
117117
Close the new created layer
118118
%End
119119

120-
protected:
121-
bool flushBuffer();
122-
%Docstring
123-
Flush the buffer writing the features to the new layer
124-
:rtype: bool
125-
%End
126-
127-
bool createSpatialIndex();
128-
%Docstring
129-
Create index
130-
:rtype: bool
131-
%End
132-
133-
134-
135-
136-
137-
138120
private:
139121
QgsVectorLayerImport( const QgsVectorLayerImport &rh );
140122
};

src/core/qgsvectorlayerimport.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ class CORE_EXPORT QgsVectorLayerImport : public QgsFeatureSink
121121
//! Close the new created layer
122122
~QgsVectorLayerImport();
123123

124-
protected:
124+
private:
125125
//! Flush the buffer writing the features to the new layer
126126
bool flushBuffer();
127127

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

146-
private:
147-
148146
#ifdef SIP_RUN
149147
QgsVectorLayerImport( const QgsVectorLayerImport &rh );
150148
#endif

0 commit comments

Comments
 (0)