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:
parent
f856b4c8e3
commit
3fe7848c16
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user