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

Commit 4532133d authored by Chih-Hung Hsieh's avatar Chih-Hung Hsieh Committed by android-build-merger
Browse files

Add noexcept to move constructors and assignment operators. am: 19a5da4c

am: 8cca54be

Change-Id: I4be898bee75a238be102f8d69f864bd5d6664d58
parents 69e250b4 8cca54be
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -46,7 +46,7 @@ class AuthorizationSet {
    AuthorizationSet(const AuthorizationSet& other) : data_(other.data_) {}

    // Move constructor.
    AuthorizationSet(AuthorizationSet&& other) : data_(std::move(other.data_)) {}
    AuthorizationSet(AuthorizationSet&& other) noexcept : data_(std::move(other.data_)) {}

    // Constructor from hidl_vec<KeyParameter>
    AuthorizationSet(const hidl_vec<KeyParameter>& other) { *this = other; }
@@ -58,7 +58,7 @@ class AuthorizationSet {
    }

    // Move assignment.
    AuthorizationSet& operator=(AuthorizationSet&& other) {
    AuthorizationSet& operator=(AuthorizationSet&& other) noexcept {
        data_ = std::move(other.data_);
        return *this;
    }