mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
Add noexcept to move constructors and assignment operators.
am: 19a5da4c13
Change-Id: Ib5b417deddc9af28a2de012e379f55d869053ec4
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user