Skip to content

Commit

Permalink
Clean up some clang-tidy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisThrasher committed Oct 27, 2024
1 parent 4ef3704 commit d612942
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ Checks: >
readability-*,
-bugprone-branch-clone,
-bugprone-easily-swappable-parameters,
-bugprone-multi-level-implicit-pointer-conversion,
-bugprone-unchecked-optional-access,
-cppcoreguidelines-avoid-c-arrays,
-cppcoreguidelines-avoid-magic-numbers,
-cppcoreguidelines-avoid-non-const-global-variables,
Expand All @@ -21,6 +23,7 @@ Checks: >
-cppcoreguidelines-pro-type-cstyle-cast,
-cppcoreguidelines-pro-type-union-access,
-cppcoreguidelines-special-member-functions,
-misc-include-cleaner,
-misc-non-private-member-variables-in-classes,
-modernize-avoid-c-arrays,
-modernize-use-trailing-return-type,
Expand Down
2 changes: 1 addition & 1 deletion imgui-SFML.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ void ProcessEvent(const sf::Window& window, const sf::Event& event)
else if (const auto* textEntered = event.getIf<sf::Event::TextEntered>())
{
// Don't handle the event for unprintable characters
if (!(textEntered->unicode < ' ' || textEntered->unicode == 127))
if (textEntered->unicode >= ' ' && textEntered->unicode != 127)
io.AddInputCharacter(textEntered->unicode);
}
else if (const auto* joystickConnected = event.getIf<sf::Event::JoystickConnected>())
Expand Down

0 comments on commit d612942

Please sign in to comment.