diff options
author | Chih-Hung Hsieh <chh@google.com> | 2016-07-21 11:23:06 -0700 |
---|---|---|
committer | Chih-Hung Hsieh <chh@google.com> | 2016-07-21 16:24:06 -0700 |
commit | faecb78a6b11c780db47bc940ca7662899ab5d5e (patch) | |
tree | b1ccd5cd96537fb8aac5f3ee7ddd4ef86809df1e /libs/hwui/renderthread/RenderTask.h | |
parent | ed6625d9074a1de1515c97faf201a91fbb3abb27 (diff) |
Fix google-explicit-constructor warnings in frameworks/base
* Add explicit keyword to conversion constructors.
* Add NOLINT to implicit conversion constructors.
Bug: 28341362
Test: build with clang-tidy
Change-Id: Ie4d37072ab57d1662d18db4de1c8577247f43337
Diffstat (limited to 'libs/hwui/renderthread/RenderTask.h')
-rw-r--r-- | libs/hwui/renderthread/RenderTask.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/renderthread/RenderTask.h b/libs/hwui/renderthread/RenderTask.h index 89c3a7d08a62..9ea671be5b86 100644 --- a/libs/hwui/renderthread/RenderTask.h +++ b/libs/hwui/renderthread/RenderTask.h @@ -73,7 +73,7 @@ typedef void* (*RunnableMethod)(void* data); class MethodInvokeRenderTask : public RenderTask { public: - MethodInvokeRenderTask(RunnableMethod method) + explicit MethodInvokeRenderTask(RunnableMethod method) : mMethod(method), mReturnPtr(nullptr) {} void* payload() { return mData; } |