diff options
| author | 2018-12-20 15:43:10 -0800 | |
|---|---|---|
| committer | 2019-01-10 19:52:43 +0000 | |
| commit | 625b03ed1853adb97e8c589d83a01ed9eb8b18b1 (patch) | |
| tree | 3525ced5554a87fe832c2066317533186ba599b3 | |
| parent | a7fa269ddaf4ee156bbe4796f0e77541d1283f98 (diff) | |
Fix/suppress google-explicit-constructor warnings
* Add explicit to conversion constructors/operators
Bug: 28341362
Test: make with WITH_TIDY=1 DEFAULT_GLOBAL_TIDY_CHECKS=-*,google-explicit-constructor
Change-Id: I323876d1a5db47ef4e7b7996994d168b82cca00d
| -rw-r--r-- | services/displayservice/include/displayservice/DisplayEventReceiver.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/displayservice/include/displayservice/DisplayEventReceiver.h b/services/displayservice/include/displayservice/DisplayEventReceiver.h index 5d569b6d53..042a0549f5 100644 --- a/services/displayservice/include/displayservice/DisplayEventReceiver.h +++ b/services/displayservice/include/displayservice/DisplayEventReceiver.h @@ -45,7 +45,7 @@ private: using FwkReceiver = ::android::DisplayEventReceiver; struct AttachedEvent : LooperCallback { - AttachedEvent(const sp<IEventCallback> &callback); + explicit AttachedEvent(const sp<IEventCallback> &callback); ~AttachedEvent(); bool detach(); |