Browse Source

Clang-tidy: readability-convert-member-functions-to-static

pull/2243/head
Anders Jenbo 5 years ago
parent
commit
acd74cc0e3
  1. 2
      Source/controls/devices/joystick.cpp
  2. 2
      Source/controls/devices/joystick.h

2
Source/controls/devices/joystick.cpp

@ -178,7 +178,7 @@ int Joystick::ToSdlJoyButton(ControllerButton button)
}
}
bool Joystick::IsHatButtonPressed(ControllerButton button) const
bool Joystick::IsHatButtonPressed(ControllerButton button)
{
switch (button) {
#if defined(JOY_HAT_DPAD_UP_HAT) && defined(JOY_HAT_DPAD_UP)

2
Source/controls/devices/joystick.h

@ -38,7 +38,7 @@ private:
static int ToSdlJoyButton(ControllerButton button);
// NOLINTNEXTLINE(readability-convert-member-functions-to-static): Not static if joystick mappings are defined.
bool IsHatButtonPressed(ControllerButton button) const;
static bool IsHatButtonPressed(ControllerButton button);
SDL_Joystick *sdl_joystick_ = NULL;
SDL_JoystickID instance_id_ = -1;

Loading…
Cancel
Save