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

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

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

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