diff --git a/widget/gonk/OrientationObserver.cpp b/widget/gonk/OrientationObserver.cpp index b156872bf0bc..4c7f736099bb 100644 --- a/widget/gonk/OrientationObserver.cpp +++ b/widget/gonk/OrientationObserver.cpp @@ -200,7 +200,7 @@ OrientationObserver::Notify(const hal::SensorData& aSensorData) MOZ_ASSERT(NS_IsMainThread()); MOZ_ASSERT(aSensorData.sensor() == hal::SensorType::SENSOR_ORIENTATION); - InfallibleTArray values = aSensorData.values(); + const InfallibleTArray& values = aSensorData.values(); // Azimuth (values[0]): the device's horizontal orientation // (0 degree is north). It's unused for screen rotation. float pitch = values[1];