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

Commit be49efc5 authored by Greg Kaiser's avatar Greg Kaiser
Browse files

Fix iterator usage

We change to reference the end() of the correct iterator.

Test: TreeHugger
Bug: 150764186
Change-Id: I380d41a916184c90c3a38848b0a039ea56006f47
Merged-In: I380d41a916184c90c3a38848b0a039ea56006f47
(cherry picked from commit ef05f714)
parent 4bdbd126
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];