Skip to content

Commit ddaa8ea

Browse files
committedSep 18, 2018
inline and virtual are no good friends
1 parent 9f407d0 commit ddaa8ea

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed
 

‎python/core/auto_generated/qgsvectorlayer.sip.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1450,7 +1450,7 @@ Returns new instance of QgsMapLayerRenderer that will be used for rendering of g
14501450
QgsRectangle extent() const final;
14511451
QgsRectangle sourceExtent() const final;
14521452

1453-
QgsFields fields() const;
1453+
QgsFields fields() const final;
14541454
%Docstring
14551455
Returns the list of fields of this layer.
14561456
This also includes fields which have not yet been saved to the provider.

‎src/core/qgsvectorlayer.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2877,6 +2877,11 @@ bool QgsVectorLayer::deleteFeatures( const QgsFeatureIds &fids )
28772877
return res;
28782878
}
28792879

2880+
QgsFields QgsVectorLayer::fields() const
2881+
{
2882+
return mFields;
2883+
}
2884+
28802885
QgsAttributeList QgsVectorLayer::primaryKeyAttributes() const
28812886
{
28822887
QgsAttributeList pkAttributesList;

‎src/core/qgsvectorlayer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1369,7 +1369,7 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer, public QgsExpressionConte
13691369
*
13701370
* \returns A list of fields
13711371
*/
1372-
inline QgsFields fields() const { return mFields; }
1372+
QgsFields fields() const final;
13731373

13741374
/**
13751375
* Returns list of attribute indexes. i.e. a list from 0 ... fieldCount()

0 commit comments

Comments
 (0)
Please sign in to comment.