Skip to content
Permalink
Browse files

Noted in the method documentation that dataProvider() may return null

  • Loading branch information
elpaso committed Oct 30, 2018
1 parent f856b4c commit 3fe7848c16b98b699114d223db52b500a31e0a2c
Showing with 3 additions and 3 deletions.
  1. +1 −1 python/core/auto_generated/qgsmaplayer.sip.in
  2. +2 −2 src/core/qgsmaplayer.h
@@ -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


@@ -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;

0 comments on commit 3fe7848

Please sign in to comment.
You can’t perform that action at this time.