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

Commit 8d29e6f0 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
parent 78c84d62
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();