From 65e2b85cfea396486f504de62c3479c5192da52a Mon Sep 17 00:00:00 2001 From: Jeff Brown Date: Fri, 16 Mar 2012 15:24:32 -0700 Subject: [PATCH] Make StringPool entry types trivially movable. Change-Id: If93957a840a0f1cae2e6ef291eeeb1b0c7c20958 --- StringPool.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/StringPool.h b/StringPool.h index 86044ed..ef86528 100644 --- a/StringPool.h +++ b/StringPool.h @@ -13,6 +13,7 @@ #include #include #include +#include #include #include @@ -193,5 +194,13 @@ private: Vector mOriginalPosToNewPos; }; +// The entry types are trivially movable because all fields they contain, including +// the vectors and strings, are trivially movable. +namespace android { + ANDROID_TRIVIAL_MOVE_TRAIT(StringPool::entry); + ANDROID_TRIVIAL_MOVE_TRAIT(StringPool::entry_style_span); + ANDROID_TRIVIAL_MOVE_TRAIT(StringPool::entry_style); +}; + #endif -- 2.47.2