Skip to content

Commit 0036e4e

Browse files
committed
Const correctness
1 parent 1d8ddf4 commit 0036e4e

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

python/PyQt6/core/auto_generated/qgsogcutils.sip.in

+4-4
Original file line numberDiff line numberDiff line change
@@ -96,14 +96,14 @@ Exports the geometry to GML2
9696
:return: QDomElement
9797
%End
9898

99-
static QDomElement rectangleToGMLBox( QgsRectangle *box, QDomDocument &doc, int precision = 17 );
99+
static QDomElement rectangleToGMLBox( const QgsRectangle *box, QDomDocument &doc, int precision = 17 );
100100
%Docstring
101101
Exports the rectangle to GML2 Box
102102

103103
:return: QDomElement
104104
%End
105105

106-
static QDomElement rectangleToGMLBox( QgsRectangle *box, QDomDocument &doc,
106+
static QDomElement rectangleToGMLBox( const QgsRectangle *box, QDomDocument &doc,
107107
const QString &srsName,
108108
bool invertAxisOrientation,
109109
int precision = 17 );
@@ -113,14 +113,14 @@ Exports the rectangle to GML2 Box
113113
:return: QDomElement
114114
%End
115115

116-
static QDomElement rectangleToGMLEnvelope( QgsRectangle *env, QDomDocument &doc, int precision = 17 );
116+
static QDomElement rectangleToGMLEnvelope( const QgsRectangle *env, QDomDocument &doc, int precision = 17 );
117117
%Docstring
118118
Exports the rectangle to GML3 Envelope
119119

120120
:return: QDomElement
121121
%End
122122

123-
static QDomElement rectangleToGMLEnvelope( QgsRectangle *env, QDomDocument &doc,
123+
static QDomElement rectangleToGMLEnvelope( const QgsRectangle *env, QDomDocument &doc,
124124
const QString &srsName,
125125
bool invertAxisOrientation,
126126
int precision = 17 );

python/core/auto_generated/qgsogcutils.sip.in

+4-4
Original file line numberDiff line numberDiff line change
@@ -96,14 +96,14 @@ Exports the geometry to GML2
9696
:return: QDomElement
9797
%End
9898

99-
static QDomElement rectangleToGMLBox( QgsRectangle *box, QDomDocument &doc, int precision = 17 );
99+
static QDomElement rectangleToGMLBox( const QgsRectangle *box, QDomDocument &doc, int precision = 17 );
100100
%Docstring
101101
Exports the rectangle to GML2 Box
102102

103103
:return: QDomElement
104104
%End
105105

106-
static QDomElement rectangleToGMLBox( QgsRectangle *box, QDomDocument &doc,
106+
static QDomElement rectangleToGMLBox( const QgsRectangle *box, QDomDocument &doc,
107107
const QString &srsName,
108108
bool invertAxisOrientation,
109109
int precision = 17 );
@@ -113,14 +113,14 @@ Exports the rectangle to GML2 Box
113113
:return: QDomElement
114114
%End
115115

116-
static QDomElement rectangleToGMLEnvelope( QgsRectangle *env, QDomDocument &doc, int precision = 17 );
116+
static QDomElement rectangleToGMLEnvelope( const QgsRectangle *env, QDomDocument &doc, int precision = 17 );
117117
%Docstring
118118
Exports the rectangle to GML3 Envelope
119119

120120
:return: QDomElement
121121
%End
122122

123-
static QDomElement rectangleToGMLEnvelope( QgsRectangle *env, QDomDocument &doc,
123+
static QDomElement rectangleToGMLEnvelope( const QgsRectangle *env, QDomDocument &doc,
124124
const QString &srsName,
125125
bool invertAxisOrientation,
126126
int precision = 17 );

src/core/qgsogcutils.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -1125,12 +1125,12 @@ QgsRectangle QgsOgcUtils::rectangleFromGMLEnvelope( const QDomNode &envelopeNode
11251125
return rect;
11261126
}
11271127

1128-
QDomElement QgsOgcUtils::rectangleToGMLBox( QgsRectangle *box, QDomDocument &doc, int precision )
1128+
QDomElement QgsOgcUtils::rectangleToGMLBox( const QgsRectangle *box, QDomDocument &doc, int precision )
11291129
{
11301130
return rectangleToGMLBox( box, doc, QString(), false, precision );
11311131
}
11321132

1133-
QDomElement QgsOgcUtils::rectangleToGMLBox( QgsRectangle *box, QDomDocument &doc,
1133+
QDomElement QgsOgcUtils::rectangleToGMLBox( const QgsRectangle *box, QDomDocument &doc,
11341134
const QString &srsName,
11351135
bool invertAxisOrientation,
11361136
int precision )
@@ -1165,12 +1165,12 @@ QDomElement QgsOgcUtils::rectangleToGMLBox( QgsRectangle *box, QDomDocument &doc
11651165
return boxElem;
11661166
}
11671167

1168-
QDomElement QgsOgcUtils::rectangleToGMLEnvelope( QgsRectangle *env, QDomDocument &doc, int precision )
1168+
QDomElement QgsOgcUtils::rectangleToGMLEnvelope( const QgsRectangle *env, QDomDocument &doc, int precision )
11691169
{
11701170
return rectangleToGMLEnvelope( env, doc, QString(), false, precision );
11711171
}
11721172

1173-
QDomElement QgsOgcUtils::rectangleToGMLEnvelope( QgsRectangle *env, QDomDocument &doc,
1173+
QDomElement QgsOgcUtils::rectangleToGMLEnvelope( const QgsRectangle *env, QDomDocument &doc,
11741174
const QString &srsName,
11751175
bool invertAxisOrientation,
11761176
int precision )

src/core/qgsogcutils.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -130,13 +130,13 @@ class CORE_EXPORT QgsOgcUtils
130130
* Exports the rectangle to GML2 Box
131131
* \returns QDomElement
132132
*/
133-
static QDomElement rectangleToGMLBox( QgsRectangle *box, QDomDocument &doc, int precision = 17 );
133+
static QDomElement rectangleToGMLBox( const QgsRectangle *box, QDomDocument &doc, int precision = 17 );
134134

135135
/**
136136
* Exports the rectangle to GML2 Box
137137
* \returns QDomElement
138138
*/
139-
static QDomElement rectangleToGMLBox( QgsRectangle *box, QDomDocument &doc,
139+
static QDomElement rectangleToGMLBox( const QgsRectangle *box, QDomDocument &doc,
140140
const QString &srsName,
141141
bool invertAxisOrientation,
142142
int precision = 17 );
@@ -145,13 +145,13 @@ class CORE_EXPORT QgsOgcUtils
145145
* Exports the rectangle to GML3 Envelope
146146
* \returns QDomElement
147147
*/
148-
static QDomElement rectangleToGMLEnvelope( QgsRectangle *env, QDomDocument &doc, int precision = 17 );
148+
static QDomElement rectangleToGMLEnvelope( const QgsRectangle *env, QDomDocument &doc, int precision = 17 );
149149

150150
/**
151151
* Exports the rectangle to GML3 Envelope
152152
* \returns QDomElement
153153
*/
154-
static QDomElement rectangleToGMLEnvelope( QgsRectangle *env, QDomDocument &doc,
154+
static QDomElement rectangleToGMLEnvelope( const QgsRectangle *env, QDomDocument &doc,
155155
const QString &srsName,
156156
bool invertAxisOrientation,
157157
int precision = 17 );

0 commit comments

Comments
 (0)