Skip to content

Commit a7ca087

Browse files
committed
Nullptr consistency in dox
1 parent d60b5e2 commit a7ca087

File tree

148 files changed

+322
-310
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

148 files changed

+322
-310
lines changed

python/3d/auto_generated/qgsrulebased3drenderer.sip.in

+2-2
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ takes ownership of symbol, symbol may be None
8989

9090
QgsAbstract3DSymbol *symbol() const;
9191
%Docstring
92-
Gets the labeling settings. May return a null pointer.
92+
Returns the labeling settings. May return None.
9393
%End
9494

9595
QString filterExpression() const;
@@ -127,7 +127,7 @@ Unique rule identifier (for identification of rule within labeling, used as prov
127127

128128
void setSymbol( QgsAbstract3DSymbol *symbol /Transfer/ );
129129
%Docstring
130-
Sets new symbol (or NULL). Deletes old symbol if any.
130+
Sets new symbol (or None). Deletes old symbol if any.
131131
%End
132132

133133
void setFilterExpression( const QString &filterExp );

python/core/auto_generated/3d/qgs3drendererregistry.sip.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Returns unique identifier of the 3D renderer class
3333

3434
virtual QgsAbstract3DRenderer *createRenderer( QDomElement &elem, const QgsReadWriteContext &context ) = 0 /Factory/;
3535
%Docstring
36-
Returns new instance of the renderer given the DOM element. Returns NULL on error.
36+
Returns new instance of the renderer given the DOM element. Returns None on error.
3737
Pure virtual function: must be implemented in derived classes.
3838
%End
3939

python/core/auto_generated/expression/qgsexpressioncontextutils.sip.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ with the variables specified.
245245
Creates a new scope which contains variables and functions relating to a :py:class:`QgsLayoutAtlas`.
246246
For instance, current page name and number.
247247

248-
:param atlas: source atlas. If null, a set of default atlas variables will be added to the scope.
248+
:param atlas: source atlas. If None, a set of default atlas variables will be added to the scope.
249249
%End
250250

251251
static QgsExpressionContextScope *layoutItemScope( const QgsLayoutItem *item ) /Factory/;

python/core/auto_generated/layertree/qgslayertreegroup.sip.in

+2-2
Original file line numberDiff line numberDiff line change
@@ -136,13 +136,13 @@ Find all group layer nodes
136136

137137
static QgsLayerTreeGroup *readXml( QDomElement &element, const QgsReadWriteContext &context ) /Factory/;
138138
%Docstring
139-
Read group (tree) from XML element <layer-tree-group> and return the newly created group (or null on error).
139+
Read group (tree) from XML element <layer-tree-group> and return the newly created group (or None on error).
140140
Does not resolve textual references to layers. Call resolveReferences() afterwards to do it.
141141
%End
142142

143143
static QgsLayerTreeGroup *readXml( QDomElement &element, const QgsProject *project, const QgsReadWriteContext &context ) /Factory/;
144144
%Docstring
145-
Read group (tree) from XML element <layer-tree-group> and return the newly created group (or null on error).
145+
Read group (tree) from XML element <layer-tree-group> and return the newly created group (or None on error).
146146
Also resolves textual references to layers from the project (calls resolveReferences() internally).
147147

148148
.. versionadded:: 3.0

python/core/auto_generated/layertree/qgslayertreemodel.sip.in

+8-8
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ whether to allow changes to the layer tree.
4141

4242
explicit QgsLayerTreeModel( QgsLayerTree *rootNode, QObject *parent /TransferThis/ = 0 );
4343
%Docstring
44-
Construct a new tree model with given layer tree (root node must not be null pointer).
44+
Construct a new tree model with given layer tree (root node must not be None).
4545
The root node is not transferred by the model.
4646
%End
4747

@@ -112,7 +112,7 @@ Check whether a flag is enabled
112112
QgsLayerTreeNode *index2node( const QModelIndex &index ) const;
113113
%Docstring
114114
Returns layer tree node for given index. Returns root node for invalid index.
115-
Returns null pointer if index does not refer to a layer tree node (e.g. it is a legend node)
115+
Returns None if index does not refer to a layer tree node (e.g. it is a legend node)
116116
%End
117117
QModelIndex node2index( QgsLayerTreeNode *node ) const;
118118
%Docstring
@@ -128,7 +128,7 @@ If ``skipInternal`` is ``True``, a node is included in the output list only if n
128128

129129
static QgsLayerTreeModelLegendNode *index2legendNode( const QModelIndex &index );
130130
%Docstring
131-
Returns legend node for given index. Returns null for invalid index
131+
Returns legend node for given index. Returns None for invalid index
132132

133133
.. versionadded:: 2.6
134134
%End
@@ -186,7 +186,7 @@ and rule key.
186186

187187
QgsLayerTree *rootGroup() const;
188188
%Docstring
189-
Returns pointer to the root node of the layer tree. Always a non-null pointer.
189+
Returns pointer to the root node of the layer tree. Always a non None value.
190190
%End
191191

192192
void setRootGroup( QgsLayerTree *newRootGroup );
@@ -254,7 +254,7 @@ A scale <= 0 indicates that no scale filtering is being performed.
254254
void setLegendFilterByMap( const QgsMapSettings *settings );
255255
%Docstring
256256
Force only display of legend nodes which are valid for given map settings.
257-
Setting null pointer or invalid map settings will disable the functionality.
257+
Setting None or invalid map settings will disable the functionality.
258258
Ownership of map settings pointer does not change, a copy is made.
259259

260260
.. versionadded:: 2.6
@@ -264,7 +264,7 @@ Ownership of map settings pointer does not change, a copy is made.
264264
%Docstring
265265
Filter display of legend nodes for given map settings
266266

267-
:param settings: Map settings. Setting a null pointer or invalid settings will disable any filter. Ownership is not changed, a copy is made
267+
:param settings: Map settings. Setting a None or invalid settings will disable any filter. Ownership is not changed, a copy is made
268268
:param useExtent: Whether to use the extent of the map settings as a first spatial filter on legend nodes
269269
:param polygon: If not empty, this polygon will be used instead of the map extent to filter legend nodes
270270
:param useExpressions: Whether to use legend node filter expressions
@@ -274,7 +274,7 @@ Filter display of legend nodes for given map settings
274274

275275
const QgsMapSettings *legendFilterMapSettings() const;
276276
%Docstring
277-
Returns the current map settings used for the current legend filter (or null if none is enabled)
277+
Returns the current map settings used for the current legend filter (or None if none is enabled)
278278

279279
.. versionadded:: 2.14
280280
%End
@@ -289,7 +289,7 @@ so that legend nodes that use map units can be scaled currectly
289289

290290
void legendMapViewData( double *mapUnitsPerPixel /Out/, int *dpi /Out/, double *scale /Out/ ) const;
291291
%Docstring
292-
Gets hints about map view - to be used in legend nodes. Arguments that are not null will receive values.
292+
Gets hints about map view - to be used in legend nodes. Arguments that are not None will receive values.
293293
If there are no valid map view data (from previous call to setLegendMapViewData()), returned values are zeros.
294294

295295
.. versionadded:: 2.6

python/core/auto_generated/layertree/qgslayertreemodellegendnode.sip.in

+3-3
Original file line numberDiff line numberDiff line change
@@ -93,15 +93,15 @@ Default implementation does nothing. *
9393
Entry point called from QgsLegendRenderer to do the rendering.
9494
Default implementation calls drawSymbol() and drawSymbolText() methods.
9595

96-
If ctx is null, this is just first stage when preparing layout - without actual rendering.
96+
If ctx is None, this is just first stage when preparing layout - without actual rendering.
9797
%End
9898

9999
virtual QSizeF drawSymbol( const QgsLegendSettings &settings, ItemContext *ctx, double itemHeight ) const;
100100
%Docstring
101101
Draws symbol on the left side of the item
102102

103103
:param settings: Legend layout configuration
104-
:param ctx: Context for rendering - may be null if only doing layout without actual rendering
104+
:param ctx: Context for rendering - may be None if only doing layout without actual rendering
105105
:param itemHeight: Minimal height of the legend item - used for correct positioning when rendering
106106

107107
:return: Real size of the symbol (may be bigger than "normal" symbol size from settings)
@@ -112,7 +112,7 @@ Draws symbol on the left side of the item
112112
Draws label on the right side of the item
113113

114114
:param settings: Legend layout configuration
115-
:param ctx: Context for rendering - may be null if only doing layout without actual rendering
115+
:param ctx: Context for rendering - may be nullptrnullptr if only doing layout without actual rendering
116116
:param symbolSize: Real size of the associated symbol - used for correct positioning when rendering
117117

118118
:return: Size of the label (may span multiple lines)

python/core/auto_generated/layertree/qgslayertreenode.sip.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ Find out about type of the node. It is usually shorter to use convenience functi
8989
%End
9090
QgsLayerTreeNode *parent();
9191
%Docstring
92-
Gets pointer to the parent. If parent is a null pointer, the node is a root node
92+
Gets pointer to the parent. If parent is None, the node is a root node
9393
%End
9494
QList<QgsLayerTreeNode *> children();
9595
%Docstring

python/core/auto_generated/layout/qgslayout.sip.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ Calling this method removes all items and pages from the layout.
7878
QgsProject *project() const;
7979
%Docstring
8080
The project associated with the layout. Used to get access to layers, map themes,
81-
relations and various other bits. It is never null.
81+
relations and various other bits. It is never None.
8282
%End
8383

8484
QgsLayoutModel *itemsModel();

python/core/auto_generated/layout/qgsmasterlayoutinterface.sip.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ Sets the layout's name.
8282
virtual QgsProject *layoutProject() const = 0;
8383
%Docstring
8484
The project associated with the layout. Used to get access to layers, map themes,
85-
relations and various other bits. It is never null.
85+
relations and various other bits. It is never None.
8686
%End
8787

8888
virtual QDomElement writeLayoutXml( QDomDocument &document, const QgsReadWriteContext &context ) const = 0;

python/core/auto_generated/qgsapplication.sip.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,7 @@ Returns the application's authentication manager instance
717717

718718
.. note::
719719

720-
this can be a null pointer if called before initQgis
720+
this can be None if called before initQgis
721721

722722
.. seealso:: :py:func:`initQgis`
723723

python/core/auto_generated/qgsdatadefinedsizelegend.sip.in

+4-4
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,11 @@ Returns marker symbol that will be used to draw markers in legend
7676

7777
void setSizeScaleTransformer( QgsSizeScaleTransformer *transformer /Transfer/ );
7878
%Docstring
79-
Sets transformer for scaling of symbol sizes. Takes ownership of the object. Accepts null pointer to set no transformer.
79+
Sets transformer for scaling of symbol sizes. Takes ownership of the object. Accepts None to set no transformer.
8080
%End
8181
QgsSizeScaleTransformer *sizeScaleTransformer() const;
8282
%Docstring
83-
Returns transformer for scaling of symbol sizes. Returns null if no transformer is defined.
83+
Returns transformer for scaling of symbol sizes. Returns None if no transformer is defined.
8484
%End
8585

8686
void setClasses( const QList< QgsDataDefinedSizeLegend::SizeClass > &classes );
@@ -151,7 +151,7 @@ Generates legend symbol items according to the configuration
151151
void drawCollapsedLegend( QgsRenderContext &context, QSize *outputSize /Out/ = 0, int *labelXOffset /Out/ = 0 ) const;
152152
%Docstring
153153
Draw the legend if using LegendOneNodeForAll and optionally output size of the legend and x offset of labels (in painter units).
154-
If the painter in context is null, it only does size calculation without actual rendering.
154+
If the painter in context is None, it only does size calculation without actual rendering.
155155
Does nothing if legend is not configured as collapsed.
156156
%End
157157

@@ -162,7 +162,7 @@ Returns output image that would be shown in the legend. Returns invalid image if
162162

163163
static QgsDataDefinedSizeLegend *readXml( const QDomElement &elem, const QgsReadWriteContext &context ) /Factory/;
164164
%Docstring
165-
Creates instance from given element and returns it (caller takes ownership). Returns null on error.
165+
Creates instance from given element and returns it (caller takes ownership). Returns None on error.
166166
%End
167167

168168
void writeXml( QDomElement &elem, const QgsReadWriteContext &context ) const;

python/core/auto_generated/qgsdataitem.sip.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ Removes a child item and returns it without deleting it. Emits relevant signals
115115

116116
:param child: child to remove
117117

118-
:return: pointer to the removed item or null if no such item was found
118+
:return: pointer to the removed item or None if no such item was found
119119
%End
120120

121121
virtual bool equal( const QgsDataItem *other );

python/core/auto_generated/qgsdataitemprovider.sip.in

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ This is the interface for those who want to add custom data items to the browser
1919

2020
The method createDataItem() is ever called only if capabilities() return non-zero value.
2121
There are two occasions when createDataItem() is called:
22-
1. to create root items (passed path is empty, parent item is null).
22+
1. to create root items (passed path is empty, parent item is None).
2323
2. to create items in directory structure. For this capabilities have to return at least
2424
of the following: QgsDataProvider.Dir or QgsDataProvider.File. Passed path is the file
2525
or directory being inspected, parent item is a valid QgsDirectoryItem
@@ -45,13 +45,13 @@ Returns combination of flags from QgsDataProvider.DataCapabilities
4545

4646
virtual QgsDataItem *createDataItem( const QString &path, QgsDataItem *parentItem ) = 0 /Factory/;
4747
%Docstring
48-
Create a new instance of :py:class:`QgsDataItem` (or null) for given path and parent item.
48+
Create a new instance of :py:class:`QgsDataItem` (or None) for given path and parent item.
4949
Caller takes responsibility of deleting created items.
5050
%End
5151

5252
virtual QVector<QgsDataItem *> createDataItems( const QString &path, QgsDataItem *parentItem );
5353
%Docstring
54-
Create a vector of instances of :py:class:`QgsDataItem` (or null) for given path and parent item.
54+
Create a vector of instances of :py:class:`QgsDataItem` (or None) for given path and parent item.
5555
Caller takes responsibility of deleting created items.
5656
%End
5757

python/core/auto_generated/qgsdiagramrenderer.sip.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,7 @@ Configures appearance of legend. Takes ownership of the passed settings objects.
737737

738738
QgsDataDefinedSizeLegend *dataDefinedSizeLegend() const;
739739
%Docstring
740-
Returns configuration of appearance of legend. Will return null if no configuration has been set.
740+
Returns configuration of appearance of legend. Will return None if no configuration has been set.
741741

742742
.. versionadded:: 3.0
743743
%End

python/core/auto_generated/qgsexpressioncontext.sip.in

+4-4
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ Retrieves a function from the scope.
263263

264264
:param name: function name
265265

266-
:return: function, or null if matching function could not be found
266+
:return: function, or None if matching function could not be found
267267

268268
.. seealso:: :py:func:`hasFunction`
269269

@@ -498,7 +498,7 @@ scope which contains a matching variable.
498498

499499
:param name: variable name
500500

501-
:return: matching scope containing variable, or null if none found
501+
:return: matching scope containing variable, or None if none found
502502
%End
503503

504504

@@ -508,7 +508,7 @@ Returns the scope at the specified index within the context.
508508

509509
:param index: index of scope
510510

511-
:return: matching scope, or null if none found
511+
:return: matching scope, or None if none found
512512

513513
.. seealso:: :py:func:`lastScope`
514514
%End
@@ -620,7 +620,7 @@ function set.
620620

621621
:param name: function name
622622

623-
:return: function if contained by the context, otherwise null.
623+
:return: function if contained by the context, otherwise None.
624624

625625
.. seealso:: :py:func:`hasFunction`
626626
%End

python/core/auto_generated/qgsmaplayer.sip.in

+4-4
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, it may be null.
183+
Returns the layer's data provider, it may be None.
184184
%End
185185

186186

@@ -1021,14 +1021,14 @@ Returns the format for a URL based layer legend.
10211021
%Docstring
10221022
Assign a legend controller to the map layer. The object will be responsible for providing legend items.
10231023

1024-
:param legend: Takes ownership of the object. Can be null pointer
1024+
:param legend: Takes ownership of the object. Can be None.
10251025

10261026
.. versionadded:: 2.6
10271027
%End
10281028

10291029
QgsMapLayerLegend *legend() const;
10301030
%Docstring
1031-
Can be null.
1031+
Can be None.
10321032

10331033
.. versionadded:: 2.6
10341034
%End
@@ -1049,7 +1049,7 @@ Sets 3D renderer for the layer. Takes ownership of the renderer.
10491049

10501050
QgsAbstract3DRenderer *renderer3D() const;
10511051
%Docstring
1052-
Returns 3D renderer associated with the layer. May be null.
1052+
Returns 3D renderer associated with the layer. May be None.
10531053

10541054
.. versionadded:: 3.0
10551055
%End

python/core/auto_generated/qgsmaplayerrenderer.sip.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Do the rendering (based on data stored in the class)
4949

5050
virtual QgsFeedback *feedback() const;
5151
%Docstring
52-
Access to feedback object of the layer renderer (may be null)
52+
Access to feedback object of the layer renderer (may be None)
5353

5454
.. versionadded:: 3.0
5555
%End

python/core/auto_generated/qgsmaplayerstore.sip.in

+2-2
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ Remove a set of ``layers`` from the store.
180180
The specified layers will be removed from the store.
181181
These layers will also be deleted.
182182

183-
:param layers: A list of layers to remove. Null pointers are ignored.
183+
:param layers: A list of layers to remove. None values are ignored.
184184

185185
.. seealso:: :py:func:`takeMapLayer`
186186

@@ -210,7 +210,7 @@ Remove a ``layer`` from the store.
210210

211211
The specified layer will be removed from the store. The layer will also be deleted.
212212

213-
:param layer: The layer to remove. Null pointers are ignored.
213+
:param layer: The layer to remove. None values are ignored.
214214

215215
.. seealso:: :py:func:`takeMapLayer`
216216

python/core/auto_generated/qgsmaplayerstylemanager.sip.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ style followed by restoration of the original style (for example, when rendering
4343

4444
QgsMapLayerStyleManager( QgsMapLayer *layer /TransferThis/ );
4545
%Docstring
46-
Construct a style manager associated with a map layer (must not be null).
46+
Construct a style manager associated with a map layer (must not be None).
4747
The style manager will be parented to ``layer``.
4848
%End
4949

python/core/auto_generated/qgspluginlayerregistry.sip.in

+3-3
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ class for creating plugin specific layers
2929

3030
virtual QgsPluginLayer *createLayer() /Factory/;
3131
%Docstring
32-
Returns new layer of this type. Return NULL on error
32+
Returns new layer of this type. Return None on error
3333
%End
3434

3535
virtual QgsPluginLayer *createLayer( const QString &uri ) /Factory/;
3636
%Docstring
37-
Returns new layer of this type, using layer URI (specific to this plugin layer type). Return NULL on error.
37+
Returns new layer of this type, using layer URI (specific to this plugin layer type). Return None on error.
3838

3939
.. versionadded:: 2.10
4040
%End
@@ -86,7 +86,7 @@ Remove plugin layer type and return ``True`` on success
8686

8787
QgsPluginLayerType *pluginLayerType( const QString &typeName );
8888
%Docstring
89-
Returns plugin layer type metadata or NULL if doesn't exist
89+
Returns plugin layer type metadata or None if doesn't exist
9090
%End
9191

9292
QgsPluginLayer *createLayer( const QString &typeName, const QString &uri = QString() ) /Factory/;

0 commit comments

Comments
 (0)