forked from donjohanliebert/hardware_xiaomi
aidl: light: Use const on getLights' foreach loop
Change-Id: I00570c7315ef31e20c8265650025b4969e2d98af
This commit is contained in:
parent
481f209d2a
commit
ad315044e4
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user