diff --git a/tools/aapt/StringPool.h b/tools/aapt/StringPool.h index 86044ed1ad2b2..ef86528039498 100644 --- a/tools/aapt/StringPool.h +++ b/tools/aapt/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