diff options
| author | 2018-12-21 14:53:00 -0800 | |
|---|---|---|
| committer | 2018-12-21 14:53:00 -0800 | |
| commit | 76b5c6b244f2cb715c41a1a00c1fa7920f324414 (patch) | |
| tree | 810a337fa75a1e5ba5cb9642770d515def527c91 | |
| parent | 52859157816ef939d5066e8be2941b3f4ca3be7a (diff) | |
| parent | 9a55c7aba6a93618a28de523091bd9b8ebcb5bc2 (diff) | |
Merge "Fix/suppress google-explicit-constructor warnings" am: aad7e1ccc5
am: 9a55c7aba6
Change-Id: I5042d7f5378a1192455a5086e68f9a76bea47a00
| -rw-r--r-- | include/input/Input.h | 2 | ||||
| -rw-r--r-- | include/input/KeyCharacterMap.h | 2 | ||||
| -rw-r--r-- | libs/input/tests/TestHelpers.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/include/input/Input.h b/include/input/Input.h index cfcafabebf..756b337bc8 100644 --- a/include/input/Input.h +++ b/include/input/Input.h @@ -661,7 +661,7 @@ private: */ class PooledInputEventFactory : public InputEventFactoryInterface { public: - PooledInputEventFactory(size_t maxPoolSize = 20); + explicit PooledInputEventFactory(size_t maxPoolSize = 20); virtual ~PooledInputEventFactory(); virtual KeyEvent* createKeyEvent(); diff --git a/include/input/KeyCharacterMap.h b/include/input/KeyCharacterMap.h index 33d2757ec8..5e542b87ec 100644 --- a/include/input/KeyCharacterMap.h +++ b/include/input/KeyCharacterMap.h @@ -196,7 +196,7 @@ private: }; struct Property { - inline Property(int32_t property = 0, int32_t metaState = 0) : + inline explicit Property(int32_t property = 0, int32_t metaState = 0) : property(property), metaState(metaState) { } int32_t property; diff --git a/libs/input/tests/TestHelpers.h b/libs/input/tests/TestHelpers.h index fe87bb95a5..343d81f917 100644 --- a/libs/input/tests/TestHelpers.h +++ b/libs/input/tests/TestHelpers.h @@ -62,7 +62,7 @@ class DelayedTask : public Thread { int mDelayMillis; public: - DelayedTask(int delayMillis) : mDelayMillis(delayMillis) { } + explicit DelayedTask(int delayMillis) : mDelayMillis(delayMillis) { } protected: virtual ~DelayedTask() { } |