diff options
author | Chih-Hung Hsieh <chh@google.com> | 2018-12-20 13:51:01 -0800 |
---|---|---|
committer | Chih-hung Hsieh <chh@google.com> | 2019-01-10 19:52:57 +0000 |
commit | 0c29f39c8eb6677ad81154b9cbc3beb95433f221 (patch) | |
tree | 48a7996247fda9aef308f0eca6edf80e8ad1a3bd /libs/input/PointerController.cpp | |
parent | c0f3daa11ab5038ea6338db8822c7a7bacb07a40 (diff) |
Fix/suppress libs/* 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: I31d45e4c6ff9fa69801a14c341f2da66baf565a0
Diffstat (limited to 'libs/input/PointerController.cpp')
-rw-r--r-- | libs/input/PointerController.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/input/PointerController.cpp b/libs/input/PointerController.cpp index 0a90f85cda0e..6c5f20c1d416 100644 --- a/libs/input/PointerController.cpp +++ b/libs/input/PointerController.cpp @@ -39,7 +39,7 @@ protected: virtual ~WeakLooperCallback() { } public: - WeakLooperCallback(const wp<LooperCallback>& callback) : + explicit WeakLooperCallback(const wp<LooperCallback>& callback) : mCallback(callback) { } |