summaryrefslogtreecommitdiff
path: root/libs/hwui/AssetAtlas.cpp
diff options
context:
space:
mode:
author Chih-Hung Hsieh <chh@google.com> 2016-08-10 14:08:35 -0700
committer Chih-hung Hsieh <chh@google.com> 2016-08-10 23:26:59 +0000
commitf35c939cd70f2815582d08902ade0b9abbee6bec (patch)
tree91a0082ee6b720d011d18567a72c1c547920b6a8 /libs/hwui/AssetAtlas.cpp
parent5cfe8a83157b933e0bcaa2592f1f09d4555ca212 (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/AssetAtlas.cpp')
-rw-r--r--libs/hwui/AssetAtlas.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/AssetAtlas.cpp b/libs/hwui/AssetAtlas.cpp
index 2889d2ff0b78..037bb0c9da5e 100644
--- a/libs/hwui/AssetAtlas.cpp
+++ b/libs/hwui/AssetAtlas.cpp
@@ -29,7 +29,7 @@ namespace uirenderer {
// Lifecycle
///////////////////////////////////////////////////////////////////////////////
-void AssetAtlas::init(sp<GraphicBuffer> buffer, int64_t* map, int count) {
+void AssetAtlas::init(const sp<GraphicBuffer>& buffer, int64_t* map, int count) {
if (mImage) {
return;
}