diff options
author | Chih-Hung Hsieh <chh@google.com> | 2018-10-01 16:13:05 -0700 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2018-10-01 16:13:05 -0700 |
commit | 8cca54bec082df64f53cd80d7b6a12783189e202 (patch) | |
tree | adfeaca7a62c782854cba38d18723b3e241f7bfe | |
parent | 7f9437b020d937c4e09876be7b65e3373f6a3767 (diff) | |
parent | 19a5da4c13362b3303139109afd9e58cf3485440 (diff) | |
download | android_hardware_interfaces-8cca54bec082df64f53cd80d7b6a12783189e202.tar.gz android_hardware_interfaces-8cca54bec082df64f53cd80d7b6a12783189e202.tar.bz2 android_hardware_interfaces-8cca54bec082df64f53cd80d7b6a12783189e202.zip |
Add noexcept to move constructors and assignment operators.
am: 19a5da4c13
Change-Id: Ib5b417deddc9af28a2de012e379f55d869053ec4
-rw-r--r-- | keymaster/4.0/support/include/keymasterV4_0/authorization_set.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/keymaster/4.0/support/include/keymasterV4_0/authorization_set.h b/keymaster/4.0/support/include/keymasterV4_0/authorization_set.h index 18696829d..193e4ea25 100644 --- a/keymaster/4.0/support/include/keymasterV4_0/authorization_set.h +++ b/keymaster/4.0/support/include/keymasterV4_0/authorization_set.h @@ -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; } |