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

Commit fd409e29 authored by Yurii Zubrytskyi's avatar Yurii Zubrytskyi Committed by Luca Stefani
Browse files

[cleanup] Fix a clang-tidy warning

Move constructors should be noexcept where possible

Bug: 153704006
Test: builds & boots
Change-Id: I9de0b09a6b1e29cb9c2e21cdf05b96983fa6091c
parent 0bebd3dd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@ class ParcelFileDescriptor : public android::Parcelable {
public:
    ParcelFileDescriptor();
    explicit ParcelFileDescriptor(android::base::unique_fd fd);
    ParcelFileDescriptor(ParcelFileDescriptor&& other) : mFd(std::move(other.mFd)) { }
    ParcelFileDescriptor(ParcelFileDescriptor&& other) noexcept : mFd(std::move(other.mFd)) { }
    ~ParcelFileDescriptor() override;

    int get() const { return mFd.get(); }