Skip to content

Commit 1368ad8

Browse files
committed
Add readability-avoid-const-params-in-decls check
1 parent 39fde07 commit 1368ad8

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

.clang-tidy

-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ Checks: >
2525
-modernize-avoid-c-arrays,
2626
-modernize-use-trailing-return-type,
2727
-performance-no-int-to-ptr,
28-
-readability-avoid-const-params-in-decls,
2928
-readability-braces-around-statements,
3029
-readability-function-cognitive-complexity,
3130
-readability-identifier-length,

imgui-SFML.h

+6-6
Original file line numberDiff line numberDiff line change
@@ -99,29 +99,29 @@ IMGUI_SFML_API void Image(const sf::Sprite& sprite, const sf::Vector2f& size,
9999
const sf::Color& borderColor = sf::Color::Transparent);
100100

101101
// ImageButton overloads for sf::Texture
102-
IMGUI_SFML_API bool ImageButton(const sf::Texture& texture, const int framePadding = -1,
102+
IMGUI_SFML_API bool ImageButton(const sf::Texture& texture, int framePadding = -1,
103103
const sf::Color& bgColor = sf::Color::Transparent,
104104
const sf::Color& tintColor = sf::Color::White);
105105
IMGUI_SFML_API bool ImageButton(const sf::Texture& texture, const sf::Vector2f& size,
106-
const int framePadding = -1,
106+
int framePadding = -1,
107107
const sf::Color& bgColor = sf::Color::Transparent,
108108
const sf::Color& tintColor = sf::Color::White);
109109

110110
// ImageButton overloads for sf::RenderTexture
111-
IMGUI_SFML_API bool ImageButton(const sf::RenderTexture& texture, const int framePadding = -1,
111+
IMGUI_SFML_API bool ImageButton(const sf::RenderTexture& texture, int framePadding = -1,
112112
const sf::Color& bgColor = sf::Color::Transparent,
113113
const sf::Color& tintColor = sf::Color::White);
114114
IMGUI_SFML_API bool ImageButton(const sf::RenderTexture& texture, const sf::Vector2f& size,
115-
const int framePadding = -1,
115+
int framePadding = -1,
116116
const sf::Color& bgColor = sf::Color::Transparent,
117117
const sf::Color& tintColor = sf::Color::White);
118118

119119
// ImageButton overloads for sf::Sprite
120-
IMGUI_SFML_API bool ImageButton(const sf::Sprite& sprite, const int framePadding = -1,
120+
IMGUI_SFML_API bool ImageButton(const sf::Sprite& sprite, int framePadding = -1,
121121
const sf::Color& bgColor = sf::Color::Transparent,
122122
const sf::Color& tintColor = sf::Color::White);
123123
IMGUI_SFML_API bool ImageButton(const sf::Sprite& sprite, const sf::Vector2f& size,
124-
const int framePadding = -1,
124+
int framePadding = -1,
125125
const sf::Color& bgColor = sf::Color::Transparent,
126126
const sf::Color& tintColor = sf::Color::White);
127127

0 commit comments

Comments
 (0)