commit | c6baf563ba6aa207a48317c177b29f1d2b70cf3d | [log] [tgz] |
---|---|---|
author | Chih-Hung Hsieh <chh@google.com> | Wed Apr 27 11:29:23 2016 -0700 |
committer | Chih-Hung Hsieh <chh@google.com> | Wed Apr 27 11:38:12 2016 -0700 |
tree | 38cb5ab3e8ce0ebe0bcdace644378ad037adb37f | |
parent | cd4f7e12037acd16f500dc9a4be98e51fe58a11b [diff] [blame] |
Fix google-explicit-constructor warnings. Bug: 28341362 Change-Id: Ibdd6a210bb7ff228e3624cc319169f77aca3b51e
diff --git a/core/jni/android/graphics/Bitmap.cpp b/core/jni/android/graphics/Bitmap.cpp index a805b6d..167294e 100755 --- a/core/jni/android/graphics/Bitmap.cpp +++ b/core/jni/android/graphics/Bitmap.cpp
@@ -380,7 +380,7 @@ // on the caller already having a local JNI ref class LocalScopedBitmap { public: - LocalScopedBitmap(jlong bitmapHandle) + explicit LocalScopedBitmap(jlong bitmapHandle) : mBitmap(reinterpret_cast<Bitmap*>(bitmapHandle)) {} Bitmap* operator->() {