aidl: light: Use const on getLights' foreach loop

Change-Id: I00570c7315ef31e20c8265650025b4969e2d98af
This commit is contained in:
Sebastiano Barezzi 2023-11-13 01:15:38 +01:00
parent 481f209d2a
commit ad315044e4
No known key found for this signature in database
GPG Key ID: 763BD3AE91A7A13F

View File

@ -98,7 +98,7 @@ ndk::ScopedAStatus Lights::setLightState(int32_t id, const HwLightState& state)
}
ndk::ScopedAStatus Lights::getLights(std::vector<HwLight> *_aidl_return) {
for (auto& light : mLights)
for (const auto& light : mLights)
_aidl_return->push_back(light);
return ndk::ScopedAStatus::ok();