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

View File

@ -180,7 +180,7 @@ Returns the display name of the layer.
virtual QgsDataProvider *dataProvider(); virtual QgsDataProvider *dataProvider();
%Docstring %Docstring
Returns the layer's data provider. Returns the layer's data provider, it may be null.
%End %End

View File

@ -232,12 +232,12 @@ class CORE_EXPORT QgsMapLayer : public QObject
QString name() const; QString name() const;
/** /**
* Returns the layer's data provider. * Returns the layer's data provider, it may be null.
*/ */
virtual QgsDataProvider *dataProvider(); 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 * \note not available in Python bindings
*/ */
virtual const QgsDataProvider *dataProvider() const SIP_SKIP; virtual const QgsDataProvider *dataProvider() const SIP_SKIP;