Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 31d9023b authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Fix iterator usage" into rvc-dev am: 85df93ed am: 8d509471 am: b44bc76e

Change-Id: I03e273ce627dd954344c71c2303f10bd5ba14fe6
parents afb9c87e b44bc76e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -106,7 +106,7 @@ static int getGamepadkeyCode(int32_t androidKeyCode) {
static const GamepadAxis* getGamepadAxis(int32_t androidAxisCode) {
    std::unordered_map<int32_t, int>::iterator it =
            gamepadAndroidAxisToIndexMap.find(androidAxisCode);
    if (it == gamepadAndroidToLinuxKeyMap.end()) {
    if (it == gamepadAndroidAxisToIndexMap.end()) {
        return nullptr;
    }
    return &GAMEPAD_AXES[it->second];