Skip to content

Commit 2ed144a

Browse files
committed
Apply clang-tidy readability-avoid-const-params-in-decls fixit
Checks whether a function declaration has parameters that are top level const. const values in declarations do not affect the signature of a function, so they should not be put there.
1 parent e91aed6 commit 2ed144a

203 files changed

Lines changed: 567 additions & 561 deletions

File tree

Some content is hidden

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

python/analysis/auto_generated/network/qgsvectorlayerdirector.sip.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Determine making the graph from vector line layer
3535
const QString &directDirectionValue,
3636
const QString &reverseDirectionValue,
3737
const QString &bothDirectionValue,
38-
const Direction defaultDirection
38+
Direction defaultDirection
3939
);
4040
%Docstring
4141
Default constructor

python/core/auto_generated/effects/qgseffectstack.sip.in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ Appends an effect to the end of the stack.
9393
.. seealso:: :py:func:`insertEffect`
9494
%End
9595

96-
bool insertEffect( const int index, QgsPaintEffect *effect /Transfer/ );
96+
bool insertEffect( int index, QgsPaintEffect *effect /Transfer/ );
9797
%Docstring
9898
Inserts an effect at a specified index within the stack.
9999

@@ -104,7 +104,7 @@ Inserts an effect at a specified index within the stack.
104104
.. seealso:: :py:func:`appendEffect`
105105
%End
106106

107-
bool changeEffect( const int index, QgsPaintEffect *effect /Transfer/ );
107+
bool changeEffect( int index, QgsPaintEffect *effect /Transfer/ );
108108
%Docstring
109109
Replaces the effect at a specified position within the stack.
110110

@@ -113,7 +113,7 @@ Replaces the effect at a specified position within the stack.
113113
transferred to the stack object.
114114
%End
115115

116-
QgsPaintEffect *takeEffect( const int index /TransferBack/ );
116+
QgsPaintEffect *takeEffect( int index /TransferBack/ );
117117
%Docstring
118118
Removes an effect from the stack and returns a pointer to it.
119119

python/core/auto_generated/effects/qgsimageoperation.sip.in

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,15 @@ on which is faster for the particular operation.
4646
FlipVertical
4747
};
4848

49-
static void convertToGrayscale( QImage &image, const GrayscaleMode mode = GrayscaleLuminosity );
49+
static void convertToGrayscale( QImage &image, GrayscaleMode mode = GrayscaleLuminosity );
5050
%Docstring
5151
Convert a QImage to a grayscale image. Alpha channel is preserved.
5252

5353
:param image: QImage to convert
5454
:param mode: mode to use during grayscale conversion
5555
%End
5656

57-
static void adjustBrightnessContrast( QImage &image, const int brightness, const double contrast );
57+
static void adjustBrightnessContrast( QImage &image, int brightness, double contrast );
5858
%Docstring
5959
Alter the brightness or contrast of a QImage.
6060

@@ -67,8 +67,8 @@ Alter the brightness or contrast of a QImage.
6767
contrast of the image.
6868
%End
6969

70-
static void adjustHueSaturation( QImage &image, const double saturation, const QColor &colorizeColor = QColor(),
71-
const double colorizeStrength = 1.0 );
70+
static void adjustHueSaturation( QImage &image, double saturation, const QColor &colorizeColor = QColor(),
71+
double colorizeStrength = 1.0 );
7272
%Docstring
7373
Alter the hue or saturation of a QImage.
7474

@@ -79,7 +79,7 @@ Alter the hue or saturation of a QImage.
7979
:param colorizeStrength: double between 0 and 1, where 0 = no colorization and 1.0 = full colorization
8080
%End
8181

82-
static void multiplyOpacity( QImage &image, const double factor );
82+
static void multiplyOpacity( QImage &image, double factor );
8383
%Docstring
8484
Multiplies opacity of image pixel values by a factor.
8585

@@ -118,7 +118,7 @@ using a color ramp.
118118
for the distance transform operation
119119
%End
120120

121-
static void stackBlur( QImage &image, const int radius, const bool alphaOnly = false );
121+
static void stackBlur( QImage &image, int radius, bool alphaOnly = false );
122122
%Docstring
123123
Performs a stack blur on an image. Stack blur represents a good balance between
124124
speed and blur quality.
@@ -133,7 +133,7 @@ speed and blur quality.
133133
alphaOnly is set to false, or ARGB32 if alphaOnly is true
134134
%End
135135

136-
static QImage *gaussianBlur( QImage &image, const int radius ) /Factory/;
136+
static QImage *gaussianBlur( QImage &image, int radius ) /Factory/;
137137
%Docstring
138138
Performs a gaussian blur on an image. Gaussian blur is slower but results in a high
139139
quality blur.

python/core/auto_generated/effects/qgspainteffect.sip.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ Returns whether the effect is enabled
196196
.. seealso:: :py:func:`setEnabled`
197197
%End
198198

199-
void setEnabled( const bool enabled );
199+
void setEnabled( bool enabled );
200200
%Docstring
201201
Sets whether the effect is enabled
202202

@@ -215,7 +215,7 @@ effect if the paint effect is used in a :py:class:`QgsEffectStack`.
215215
.. seealso:: :py:func:`setDrawMode`
216216
%End
217217

218-
void setDrawMode( const DrawMode drawMode );
218+
void setDrawMode( DrawMode drawMode );
219219
%Docstring
220220
Sets the draw mode for the effect. This property only has an
221221
effect if the paint effect is used in a :py:class:`QgsEffectStack`.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ This function returns variables in each expression between [% and %].
388388
.. versionadded:: 3.2
389389
%End
390390

391-
static double evaluateToDouble( const QString &text, const double fallbackValue );
391+
static double evaluateToDouble( const QString &text, double fallbackValue );
392392
%Docstring
393393
Attempts to evaluate a text string as an expression to a resultant double
394394
value.

python/core/auto_generated/geometry/qgscircle.sip.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ Note that this method is 2D only and does not consider the z-value of the circle
196196

197197

198198

199-
virtual void setSemiMajorAxis( const double semiMajorAxis );
199+
virtual void setSemiMajorAxis( double semiMajorAxis );
200200

201201
%Docstring
202202
Inherited method. Use setRadius instead.
@@ -206,7 +206,7 @@ Inherited method. Use setRadius instead.
206206
.. seealso:: :py:func:`setRadius`
207207
%End
208208

209-
virtual void setSemiMinorAxis( const double semiMinorAxis );
209+
virtual void setSemiMinorAxis( double semiMinorAxis );
210210

211211
%Docstring
212212
Inherited method. Use setRadius instead.

python/core/auto_generated/geometry/qgsellipse.sip.in

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Constructor for QgsEllipse.
3434

3535
virtual ~QgsEllipse();
3636

37-
QgsEllipse( const QgsPoint &center, const double semiMajorAxis, const double semiMinorAxis, const double azimuth = 90 );
37+
QgsEllipse( const QgsPoint &center, double semiMajorAxis, double semiMinorAxis, double azimuth = 90 );
3838
%Docstring
3939
Constructs an ellipse by defining all the members.
4040

@@ -146,21 +146,21 @@ Sets the center point.
146146
.. seealso:: :py:func:`rcenter`
147147
%End
148148

149-
virtual void setSemiMajorAxis( const double semiMajorAxis );
149+
virtual void setSemiMajorAxis( double semiMajorAxis );
150150
%Docstring
151151
Sets the semi-major axis.
152152

153153
.. seealso:: :py:func:`semiMajorAxis`
154154
%End
155155

156-
virtual void setSemiMinorAxis( const double semiMinorAxis );
156+
virtual void setSemiMinorAxis( double semiMinorAxis );
157157
%Docstring
158158
Sets the semi-minor axis.
159159

160160
.. seealso:: :py:func:`semiMinorAxis`
161161
%End
162162

163-
void setAzimuth( const double azimuth );
163+
void setAzimuth( double azimuth );
164164
%Docstring
165165
Sets the azimuth (orientation).
166166

python/core/auto_generated/geometry/qgsgeometry.sip.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1751,7 +1751,7 @@ The 2 types should match.
17511751
}
17521752
%End
17531753

1754-
QgsGeometry smooth( const unsigned int iterations = 1, const double offset = 0.25,
1754+
QgsGeometry smooth( unsigned int iterations = 1, double offset = 0.25,
17551755
double minimumDistance = -1.0, double maxAngle = 180.0 ) const;
17561756
%Docstring
17571757
Smooths a geometry by rounding off corners using the Chaikin algorithm. This operation

python/core/auto_generated/geometry/qgsgeometryutils.sip.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ supported and is retrieved from the first 3D point amongst ``p1`` and
102102
:return: Whether the lines intersect
103103
%End
104104

105-
static bool segmentIntersection( const QgsPoint &p1, const QgsPoint &p2, const QgsPoint &q1, const QgsPoint &q2, QgsPoint &intersectionPoint /Out/, bool &isIntersection /Out/, const double tolerance = 1e-8, bool acceptImproperIntersection = false );
105+
static bool segmentIntersection( const QgsPoint &p1, const QgsPoint &p2, const QgsPoint &q1, const QgsPoint &q2, QgsPoint &intersectionPoint /Out/, bool &isIntersection /Out/, double tolerance = 1e-8, bool acceptImproperIntersection = false );
106106
%Docstring
107107
Compute the intersection between two segments
108108

@@ -140,7 +140,7 @@ Compute the intersection between two segments
140140
# (True, 'Point (0 0)', True)
141141
%End
142142

143-
static bool lineCircleIntersection( const QgsPointXY &center, const double radius,
143+
static bool lineCircleIntersection( const QgsPointXY &center, double radius,
144144
const QgsPointXY &linePoint1, const QgsPointXY &linePoint2,
145145
QgsPointXY &intersection /In,Out/ );
146146
%Docstring

python/core/auto_generated/geometry/qgslinestring.sip.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ segment in the line.
220220

221221
virtual QPolygonF asQPolygonF() const;
222222

223+
223224
virtual bool fromWkb( QgsConstWkbPtr &wkb );
224225

225226
virtual bool fromWkt( const QString &wkt );

0 commit comments

Comments
 (0)