diff options
author | Chih-Hung Hsieh <chh@google.com> | 2018-12-20 13:39:40 -0800 |
---|---|---|
committer | Chih-hung Hsieh <chh@google.com> | 2019-01-02 02:43:37 +0000 |
commit | a08d2c2ee72775afdc9892cdc114902bd174f96d (patch) | |
tree | b8e324181da191c72c63e5b9f5bef8ca902b45fe /cmds/bootanimation/BootAnimation.h | |
parent | 99f6957f2e42caeea209d2069174cab24c347a95 (diff) |
Fix/suppress bootanimation 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: Ia6ada49250973d507ae8b10d8f0d7c2d47ee805c
Diffstat (limited to 'cmds/bootanimation/BootAnimation.h')
-rw-r--r-- | cmds/bootanimation/BootAnimation.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmds/bootanimation/BootAnimation.h b/cmds/bootanimation/BootAnimation.h index b4699d884681..4fd5c0ef5f28 100644 --- a/cmds/bootanimation/BootAnimation.h +++ b/cmds/bootanimation/BootAnimation.h @@ -113,7 +113,7 @@ public: virtual void shutdown() {} }; - BootAnimation(sp<Callbacks> callbacks); + explicit BootAnimation(sp<Callbacks> callbacks); sp<SurfaceComposerClient> session() const; @@ -127,7 +127,7 @@ private: class TimeCheckThread : public Thread { public: - TimeCheckThread(BootAnimation* bootAnimation); + explicit TimeCheckThread(BootAnimation* bootAnimation); virtual ~TimeCheckThread(); private: virtual status_t readyToRun(); |