commit | 6ca70efdaef8c07e91692101c7a3ae35dc1e0cbb | [log] [tgz] |
---|---|---|
author | Chih-Hung Hsieh <chh@google.com> | Fri Apr 29 16:23:55 2016 -0700 |
committer | Chih-Hung Hsieh <chh@google.com> | Fri Apr 29 16:23:55 2016 -0700 |
tree | b5f5d2811b066167210792e988c04f072966d58f | |
parent | a5226fb2cf3d03544da1f9d4d44887c4143e0af0 [diff] |
Fix google-explicit-constructor warnings. Bug: 28341362 Change-Id: I83bb2282249ecd4e39347b90f5fb53788e1fff5b
diff --git a/services/batteryservice/IBatteryPropertiesListener.cpp b/services/batteryservice/IBatteryPropertiesListener.cpp index 8aff26c..7555f4b 100644 --- a/services/batteryservice/IBatteryPropertiesListener.cpp +++ b/services/batteryservice/IBatteryPropertiesListener.cpp
@@ -24,7 +24,7 @@ class BpBatteryPropertiesListener : public BpInterface<IBatteryPropertiesListener> { public: - BpBatteryPropertiesListener(const sp<IBinder>& impl) + explicit BpBatteryPropertiesListener(const sp<IBinder>& impl) : BpInterface<IBatteryPropertiesListener>(impl) { }
diff --git a/services/batteryservice/IBatteryPropertiesRegistrar.cpp b/services/batteryservice/IBatteryPropertiesRegistrar.cpp index 46934e0..1fdda43 100644 --- a/services/batteryservice/IBatteryPropertiesRegistrar.cpp +++ b/services/batteryservice/IBatteryPropertiesRegistrar.cpp
@@ -28,7 +28,7 @@ class BpBatteryPropertiesRegistrar : public BpInterface<IBatteryPropertiesRegistrar> { public: - BpBatteryPropertiesRegistrar(const sp<IBinder>& impl) + explicit BpBatteryPropertiesRegistrar(const sp<IBinder>& impl) : BpInterface<IBatteryPropertiesRegistrar>(impl) {} void registerListener(const sp<IBatteryPropertiesListener>& listener) {
diff --git a/services/inputflinger/tests/InputReader_test.cpp b/services/inputflinger/tests/InputReader_test.cpp index a7fe69c..f12320d 100644 --- a/services/inputflinger/tests/InputReader_test.cpp +++ b/services/inputflinger/tests/InputReader_test.cpp
@@ -325,7 +325,7 @@ KeyedVector<int32_t, bool> leds; Vector<VirtualKeyDefinition> virtualKeys; - Device(uint32_t classes) : + explicit Device(uint32_t classes) : classes(classes) { } };
diff --git a/services/powermanager/IPowerManager.cpp b/services/powermanager/IPowerManager.cpp index bff8719..ea3a831 100644 --- a/services/powermanager/IPowerManager.cpp +++ b/services/powermanager/IPowerManager.cpp
@@ -30,7 +30,7 @@ class BpPowerManager : public BpInterface<IPowerManager> { public: - BpPowerManager(const sp<IBinder>& impl) + explicit BpPowerManager(const sp<IBinder>& impl) : BpInterface<IPowerManager>(impl) { }