We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents dea50f0 + 8a9cfcc commit 4eb7fbbCopy full SHA for 4eb7fbb
tools/aapt/StringPool.h
@@ -13,6 +13,7 @@
13
#include <androidfw/ResourceTypes.h>
14
#include <utils/String16.h>
15
#include <utils/TextOutput.h>
16
+#include <utils/TypeHelpers.h>
17
18
#include <sys/types.h>
19
#include <sys/stat.h>
@@ -193,5 +194,13 @@ class StringPool
193
194
Vector<size_t> mOriginalPosToNewPos;
195
};
196
197
+// The entry types are trivially movable because all fields they contain, including
198
+// the vectors and strings, are trivially movable.
199
+namespace android {
200
+ ANDROID_TRIVIAL_MOVE_TRAIT(StringPool::entry);
201
+ ANDROID_TRIVIAL_MOVE_TRAIT(StringPool::entry_style_span);
202
+ ANDROID_TRIVIAL_MOVE_TRAIT(StringPool::entry_style);
203
+};
204
+
205
#endif
206
0 commit comments