commit | f73b198ebc83c138a6b8748f8e268aa92fda7a47 | [log] [tgz] |
---|---|---|
author | Chih-Hung Hsieh <chh@google.com> | Tue Sep 25 12:03:21 2018 -0700 |
committer | Chih-hung Hsieh <chh@google.com> | Mon Oct 01 20:24:37 2018 +0000 |
tree | db52e7aabd0e91df74db096bb3030ac9cb9d5a48 | |
parent | 8b9a14e7fcc1ff9fbb50599c7479f8b699d23723 [diff] [blame] |
Add noexcept to move constructors and assignment operators. Bug: 116614593 Test: build with WITH_TIDY=1 Change-Id: Ib6ab6a0c3268562376df6125df258dee7a97d5ce
diff --git a/keystore/legacy_keymaster_device_wrapper.cpp b/keystore/legacy_keymaster_device_wrapper.cpp index 187252e..7e5ece6 100644 --- a/keystore/legacy_keymaster_device_wrapper.cpp +++ b/keystore/legacy_keymaster_device_wrapper.cpp
@@ -106,7 +106,8 @@ } } } - KmParamSet(KmParamSet&& other) : keymaster_key_param_set_t{other.params, other.length} { + KmParamSet(KmParamSet&& other) noexcept + : keymaster_key_param_set_t{other.params, other.length} { other.length = 0; other.params = nullptr; }