diff options
author | 2016-08-10 14:08:35 -0700 | |
---|---|---|
committer | 2016-08-10 23:26:59 +0000 | |
commit | f35c939cd70f2815582d08902ade0b9abbee6bec (patch) | |
tree | 91a0082ee6b720d011d18567a72c1c547920b6a8 /libs/hwui/Image.h | |
parent | 5cfe8a83157b933e0bcaa2592f1f09d4555ca212 (diff) |
Fix clang-tidy warnings in libs/hwui.
* Add explicit keyword to conversion constructors.
Bug: 28341362
* Use const reference type for read-only parameters.
Bug: 30407689
Test: build with WITH_TIDY=1
Change-Id: Iab3e6636f60a70cb124f29dc19f20f842fa8dfda
Merged-In: Iab3e6636f60a70cb124f29dc19f20f842fa8dfda
Diffstat (limited to 'libs/hwui/Image.h')
-rw-r--r-- | libs/hwui/Image.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/Image.h b/libs/hwui/Image.h index 25145354a4f0..b8f5a5bec087 100644 --- a/libs/hwui/Image.h +++ b/libs/hwui/Image.h @@ -38,7 +38,7 @@ public: * cannot be created, getTexture() will return 0 and getImage() will * return EGL_NO_IMAGE_KHR. */ - Image(sp<GraphicBuffer> buffer); + explicit Image(sp<GraphicBuffer> buffer); ~Image(); /** |