Merge "Fix clang-tidy performance warnings in healthd."
This commit is contained in:
commit
b66b16b39a
2 changed files with 2 additions and 2 deletions
|
|
@ -35,7 +35,7 @@ void BatteryPropertiesRegistrar::publish(
|
||||||
defaultServiceManager()->addService(String16("batteryproperties"), service);
|
defaultServiceManager()->addService(String16("batteryproperties"), service);
|
||||||
}
|
}
|
||||||
|
|
||||||
void BatteryPropertiesRegistrar::notifyListeners(struct BatteryProperties props) {
|
void BatteryPropertiesRegistrar::notifyListeners(const struct BatteryProperties& props) {
|
||||||
Mutex::Autolock _l(mRegistrationLock);
|
Mutex::Autolock _l(mRegistrationLock);
|
||||||
for (size_t i = 0; i < mListeners.size(); i++) {
|
for (size_t i = 0; i < mListeners.size(); i++) {
|
||||||
mListeners[i]->batteryPropertiesChanged(props);
|
mListeners[i]->batteryPropertiesChanged(props);
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ class BatteryPropertiesRegistrar : public BnBatteryPropertiesRegistrar,
|
||||||
public IBinder::DeathRecipient {
|
public IBinder::DeathRecipient {
|
||||||
public:
|
public:
|
||||||
void publish(const sp<BatteryPropertiesRegistrar>& service);
|
void publish(const sp<BatteryPropertiesRegistrar>& service);
|
||||||
void notifyListeners(struct BatteryProperties props);
|
void notifyListeners(const struct BatteryProperties& props);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Mutex mRegistrationLock;
|
Mutex mRegistrationLock;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue