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

Commit 081d9008 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix for-loop type."

parents 060e3e63 e2f38aca
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -206,7 +206,7 @@ JoystickInputMapper::Axis JoystickInputMapper::createAxis(const AxisInfo& axisIn
}

bool JoystickInputMapper::haveAxis(int32_t axisId) {
    for (const std::pair<int32_t, Axis>& pair : mAxes) {
    for (const std::pair<const int32_t, Axis>& pair : mAxes) {
        const Axis& axis = pair.second;
        if (axis.axisInfo.axis == axisId ||
            (axis.axisInfo.mode == AxisInfo::MODE_SPLIT && axis.axisInfo.highAxis == axisId)) {