Skip to content

Commit 2ed144a

Browse files
committedJun 5, 2018
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

File tree

203 files changed

+567
-561
lines changed

Some content is hidden

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

203 files changed

+567
-561
lines changed
 

‎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

0 commit comments

Comments
 (0)
Please sign in to comment.