diff options
| author | Chih-Hung Hsieh <chh@google.com> | 2018-09-25 11:16:22 -0700 |
|---|---|---|
| committer | Chih-hung Hsieh <chh@google.com> | 2018-10-05 16:43:47 +0000 |
| commit | 747eb149d06d9077e7b44aa1edd966e637386f33 (patch) | |
| tree | f64bdec4eba3c79bcb6dd1da72e948da5e3a08f6 /trusty/keymaster | |
| parent | 5f2a21d244be6cbbc64047474b0aca352f93b2d9 (diff) | |
| download | system_core-747eb149d06d9077e7b44aa1edd966e637386f33.tar.gz system_core-747eb149d06d9077e7b44aa1edd966e637386f33.tar.bz2 system_core-747eb149d06d9077e7b44aa1edd966e637386f33.zip | |
Add noexcept to move constructors and assignment operators.
Bug: 116614593
Test: build with WITH_TIDY=1
Change-Id: I5a7461386946ca623ab509609092aa0ac8418b80
Diffstat (limited to 'trusty/keymaster')
| -rw-r--r-- | trusty/keymaster/3.0/TrustyKeymaster3Device.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/trusty/keymaster/3.0/TrustyKeymaster3Device.cpp b/trusty/keymaster/3.0/TrustyKeymaster3Device.cpp index 0849ee959..98cbcc3f8 100644 --- a/trusty/keymaster/3.0/TrustyKeymaster3Device.cpp +++ b/trusty/keymaster/3.0/TrustyKeymaster3Device.cpp @@ -112,7 +112,8 @@ class KmParamSet : public keymaster_key_param_set_t { } } } - 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; } |
