From 7cd3a7b57dc21ef240bdc98ab0df7e39a89dc83e Mon Sep 17 00:00:00 2001 From: Michael Butler Date: Thu, 5 Jan 2023 10:56:52 -0800 Subject: Remove "explicit" from HardwareBuffer move constructor Clang-tidy gives the following lint message: "Move constructor should not be declared explicit" This CL applies the fix and removes "explicit". Bug: N/A Test: mma Change-Id: I5135aca1a1cf37d92f4561d90d34c00247804d7e Merged-In: I5135aca1a1cf37d92f4561d90d34c00247804d7e (cherry picked from commit 8d29e6f0dc6e447582123f1f148faa064b1cf6b1) --- libs/nativewindow/include/android/hardware_buffer_aidl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/nativewindow/include/android/hardware_buffer_aidl.h b/libs/nativewindow/include/android/hardware_buffer_aidl.h index 906d9c6f6b..9fea21e34e 100644 --- a/libs/nativewindow/include/android/hardware_buffer_aidl.h +++ b/libs/nativewindow/include/android/hardware_buffer_aidl.h @@ -83,7 +83,7 @@ namespace aidl::android::hardware { class HardwareBuffer { public: HardwareBuffer() noexcept {} - explicit HardwareBuffer(HardwareBuffer&& other) noexcept : mBuffer(other.release()) {} + HardwareBuffer(HardwareBuffer&& other) noexcept : mBuffer(other.release()) {} ~HardwareBuffer() { reset(); -- cgit v1.2.3-59-g8ed1b