diff options
author | 2022-07-01 17:11:16 +0000 | |
---|---|---|
committer | 2022-07-04 13:22:45 +0000 | |
commit | f9826e68d064524bb649d54787eae5a13dc857ab (patch) | |
tree | 00158ec186fbc940a0e7054c9b1849cb8bc9f8f2 /libartbase/base/array_slice.h | |
parent | 9f61e4cfd0a4d931b5629e99fc1f6dd9e7e20e1e (diff) |
Fix performance-noexcept-move-constructor clang-tidy issues
Ignore-AOSP-First: the artd/artd_test.cc file is different from the AOSP
version, and it contains a performance-noexcept-move-constructor
violation that can only be fixed in the internal repo.
Test: m tidy-art
Bug: 213953102
Change-Id: I4f4ff5febffcf045a907593621e68d87dd871680
Diffstat (limited to 'libartbase/base/array_slice.h')
-rw-r--r-- | libartbase/base/array_slice.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libartbase/base/array_slice.h b/libartbase/base/array_slice.h index a58ff4439d..067d9f284f 100644 --- a/libartbase/base/array_slice.h +++ b/libartbase/base/array_slice.h @@ -65,9 +65,9 @@ class ArraySlice { lpa != nullptr ? lpa->size() : 0, element_size) {} ArraySlice(const ArraySlice<T>&) = default; - ArraySlice(ArraySlice<T>&&) = default; + ArraySlice(ArraySlice<T>&&) noexcept = default; ArraySlice<T>& operator=(const ArraySlice<T>&) = default; - ArraySlice<T>& operator=(ArraySlice<T>&&) = default; + ArraySlice<T>& operator=(ArraySlice<T>&&) noexcept = default; // Iterators. iterator begin() { return iterator(&AtUnchecked(0), element_size_); } |