Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7cd3a7b5 authored by Michael Butler's avatar Michael Butler
Browse files

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 8d29e6f0)
parent d3fa088f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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();