mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 05:40:01 -06:00
Turn loops into range-based form
and some things suggested by cppcheck and compiler warnings.
This commit is contained in:
@ -108,8 +108,8 @@ namespace ButtonManager
|
||||
: _dev(dev) {}
|
||||
~InputDevice()
|
||||
{
|
||||
for (auto it = _binds.begin(); it != _binds.end(); ++it)
|
||||
delete it->second;
|
||||
for (const auto& bind : _binds)
|
||||
delete bind.second;
|
||||
}
|
||||
void AddBind(sBind *bind) { _binds[bind->_buttontype] = bind; _inputbinds[bind->_bind] = bind; }
|
||||
void PressEvent(int button, int action);
|
||||
|
Reference in New Issue
Block a user