From 19a5da4c13362b3303139109afd9e58cf3485440 Mon Sep 17 00:00:00 2001 From: Chih-Hung Hsieh Date: Tue, 25 Sep 2018 12:01:51 -0700 Subject: [PATCH] Add noexcept to move constructors and assignment operators. Bug: 116614593 Test: build with WITH_TIDY=1 Change-Id: Ib50ced82d650737cf99a9757133119945a3409f3 --- .../4.0/support/include/keymasterV4_0/authorization_set.h | 4 ++-- 1 file 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 18696829db..193e4ea25e 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 AuthorizationSet(const hidl_vec& 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; }