Merge \\"Fix clang-tidy performance warnings in healthd.\\" am: b66b16b39a

am: 119d41c18e

Change-Id: I1da885d1b942c7680dc5131768f7b7bcff31c9f1
This commit is contained in:
Chih-Hung Hsieh 2016-07-28 06:27:29 +00:00 committed by android-build-merger
commit c15b1f9ca0
2 changed files with 2 additions and 2 deletions

View file

@ -35,7 +35,7 @@ void BatteryPropertiesRegistrar::publish(
defaultServiceManager()->addService(String16("batteryproperties"), service);
}
void BatteryPropertiesRegistrar::notifyListeners(struct BatteryProperties props) {
void BatteryPropertiesRegistrar::notifyListeners(const struct BatteryProperties& props) {
Mutex::Autolock _l(mRegistrationLock);
for (size_t i = 0; i < mListeners.size(); i++) {
mListeners[i]->batteryPropertiesChanged(props);

View file

@ -31,7 +31,7 @@ class BatteryPropertiesRegistrar : public BnBatteryPropertiesRegistrar,
public IBinder::DeathRecipient {
public:
void publish(const sp<BatteryPropertiesRegistrar>& service);
void notifyListeners(struct BatteryProperties props);
void notifyListeners(const struct BatteryProperties& props);
private:
Mutex mRegistrationLock;