Skip to content

Commit

Permalink
Noted in the method documentation that dataProvider() may return null
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Nov 5, 2018
1 parent f856b4c commit 3fe7848
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion python/core/auto_generated/qgsmaplayer.sip.in
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ Returns the display name of the layer.

virtual QgsDataProvider *dataProvider();
%Docstring
Returns the layer's data provider.
Returns the layer's data provider, it may be null.
%End


Expand Down
4 changes: 2 additions & 2 deletions src/core/qgsmaplayer.h
Original file line number Diff line number Diff line change
Expand Up @@ -232,12 +232,12 @@ class CORE_EXPORT QgsMapLayer : public QObject
QString name() const;

/**
* Returns the layer's data provider.
* Returns the layer's data provider, it may be null.
*/
virtual QgsDataProvider *dataProvider();

/**
* Returns the layer's data provider in a const-correct manner
* Returns the layer's data provider in a const-correct manner, it may be null.
* \note not available in Python bindings
*/
virtual const QgsDataProvider *dataProvider() const SIP_SKIP;
Expand Down

0 comments on commit 3fe7848

Please sign in to comment.