Skip to content

Commit 3fe7848

Browse files
committedNov 5, 2018
Noted in the method documentation that dataProvider() may return null
1 parent f856b4c commit 3fe7848

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎python/core/auto_generated/qgsmaplayer.sip.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ Returns the display name of the layer.
180180

181181
virtual QgsDataProvider *dataProvider();
182182
%Docstring
183-
Returns the layer's data provider.
183+
Returns the layer's data provider, it may be null.
184184
%End
185185

186186

‎src/core/qgsmaplayer.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,12 +232,12 @@ class CORE_EXPORT QgsMapLayer : public QObject
232232
QString name() const;
233233

234234
/**
235-
* Returns the layer's data provider.
235+
* Returns the layer's data provider, it may be null.
236236
*/
237237
virtual QgsDataProvider *dataProvider();
238238

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

0 commit comments

Comments
 (0)
Please sign in to comment.