Bug 1624426 - Add MOZ_DECLARE_COPY_CONSTRUCTIBLE for nsTString<char>. r=froydnj
authorSimon Giesecke <sgiesecke@mozilla.com>
Wed, 25 Mar 2020 15:32:24 +0000
changeset 520385 005d4653bb33050570bbcef335e345473085a4fe
parent 520384 7b795e883afa01a9d62d465ae383238567e1d851
child 520386 156272adf90c5f0fafb50747e4f07dd6bd80bf26
push id37249
push userdvarga@mozilla.com
push dateWed, 25 Mar 2020 21:39:06 +0000
treeherdermozilla-central@b3c3f7d0f044 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfroydnj
bugs1624426
milestone76.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1624426 - Add MOZ_DECLARE_COPY_CONSTRUCTIBLE for nsTString<char>. r=froydnj This is required for a Android build with --enable-tasktracer Differential Revision: https://phabricator.services.mozilla.com/D68176
xpcom/ds/nsTArray.h
--- a/xpcom/ds/nsTArray.h
+++ b/xpcom/ds/nsTArray.h
@@ -802,16 +802,17 @@ struct MOZ_NEEDS_MEMMOVABLE_TYPE nsTArra
   };
 
 #define MOZ_DECLARE_RELOCATE_USING_MOVE_CONSTRUCTOR_FOR_TEMPLATE(T) \
   template <typename S>                                             \
   struct nsTArray_RelocationStrategy<T<S>> {                        \
     using Type = nsTArray_RelocateUsingMoveConstructor<T<S>>;       \
   };
 
+MOZ_DECLARE_COPY_CONSTRUCTIBLE(nsTString<char>)
 MOZ_DECLARE_COPY_CONSTRUCTIBLE(nsTString<char16_t>)
 
 MOZ_DECLARE_COPY_CONSTRUCTIBLE(mozilla::a11y::BatchData)
 
 // TODO mozilla::ipc::AutoIPCStream is not even movable, so memmovable use with
 // nsTArray (in StructuredCloneData) seems at least quirky
 MOZ_DECLARE_NON_COPY_CONSTRUCTIBLE(mozilla::ipc::AutoIPCStream)
 MOZ_DECLARE_COPY_CONSTRUCTIBLE(mozilla::ipc::ContentSecurityPolicy)