1
0
mirror of https://github.com/qgis/QGIS.git synced 2025-04-28 00:05:04 -04:00

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

This commit is contained in:
Alessandro Pasotti 2018-10-30 16:35:48 +01:00
parent f856b4c8e3
commit 3fe7848c16
2 changed files with 3 additions and 3 deletions
python/core/auto_generated
src/core

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