diff options
author | 2020-01-31 03:46:27 +0100 | |
---|---|---|
committer | 2020-01-30 21:46:27 -0500 | |
commit | dfaf9dd5bcf354f09fde7573b7042bb63d84fad0 (patch) | |
tree | d018f200f2077123b6e0971499b1de213577ded4 /src/osd/modules/input/input_dinput.cpp | |
parent | 4a102057779ece1b11431ff0b7787249ce0ad3ad (diff) |
fixed some modernize-use-auto clang-tidy warnings (nw) (#6238)
Diffstat (limited to 'src/osd/modules/input/input_dinput.cpp')
-rw-r--r-- | src/osd/modules/input/input_dinput.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/osd/modules/input/input_dinput.cpp b/src/osd/modules/input/input_dinput.cpp index 0b5eb348dc0..e694cd8c63c 100644 --- a/src/osd/modules/input/input_dinput.cpp +++ b/src/osd/modules/input/input_dinput.cpp @@ -403,7 +403,7 @@ public: // populate the buttons for (butnum = 0; butnum < devinfo->dinput.caps.dwButtons; butnum++) { - uintptr_t offset = reinterpret_cast<uintptr_t>(&static_cast<DIMOUSESTATE *>(nullptr)->rgbButtons[butnum]); + auto offset = reinterpret_cast<uintptr_t>(&static_cast<DIMOUSESTATE *>(nullptr)->rgbButtons[butnum]); // add to the mouse device std::string name = device_item_name(devinfo, offset, default_button_name(butnum), nullptr); @@ -535,7 +535,7 @@ int dinput_joystick_device::configure() // populate the buttons for (uint32_t butnum = 0; butnum < dinput.caps.dwButtons; butnum++) { - uintptr_t offset = reinterpret_cast<uintptr_t>(&static_cast<DIJOYSTATE2 *>(nullptr)->rgbButtons[butnum]); + auto offset = reinterpret_cast<uintptr_t>(&static_cast<DIJOYSTATE2 *>(nullptr)->rgbButtons[butnum]); std::string name = dinput_module::device_item_name(this, offset, default_button_name(butnum), nullptr); input_item_id itemid; @@ -602,7 +602,7 @@ public: static int32_t dinput_joystick_pov_get_state(void *device_internal, void *item_internal) { - dinput_joystick_device *devinfo = static_cast<dinput_joystick_device *>(device_internal); + auto *devinfo = static_cast<dinput_joystick_device *>(device_internal); int povnum = reinterpret_cast<uintptr_t>(item_internal) / 4; int povdir = reinterpret_cast<uintptr_t>(item_internal) % 4; int32_t result = 0; |