zumapro: avoid vector<const T>
std::vector<const T> uses std::allocator<const T>, which is an undocumented libc++ extension to the C++ standard library. The extension was removed in llvm.org/PR96319. Use an ordinary non-const T instead. Bug: http://b/349681543 Test: m android.hardware.power.stats-impl.zumapro Flag: EXEMPT, refactor to fix build failure Change-Id: I96ab1eb2caf092008cc573949a1529c057ee4bb1
This commit is contained in:
parent
6bbbcd5877
commit
678b37960e
1 changed files with 1 additions and 1 deletions
|
@ -282,7 +282,7 @@ void addSoC(std::shared_ptr<PowerStats> p) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void setEnergyMeter(std::shared_ptr<PowerStats> p) {
|
void setEnergyMeter(std::shared_ptr<PowerStats> p) {
|
||||||
std::vector<const std::string> deviceNames { "s2mpg14-odpm", "s2mpg15-odpm" };
|
std::vector<std::string> deviceNames { "s2mpg14-odpm", "s2mpg15-odpm" };
|
||||||
p->setEnergyMeterDataProvider(std::make_unique<IioEnergyMeterDataProvider>(deviceNames, true));
|
p->setEnergyMeterDataProvider(std::make_unique<IioEnergyMeterDataProvider>(deviceNames, true));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue