From 51e9504df098e26d027f4af0266b6ad417a03c82 Mon Sep 17 00:00:00 2001 From: Hugo van der Merwe <17109322+hugovdm@users.noreply.github.com> Date: Fri, 19 Jun 2020 14:44:56 +0200 Subject: [PATCH] Tweak the edit in the MemoryPool docstring. --- icu4c/source/common/cmemory.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/icu4c/source/common/cmemory.h b/icu4c/source/common/cmemory.h index b65239d3aba..dccbcee9c0e 100644 --- a/icu4c/source/common/cmemory.h +++ b/icu4c/source/common/cmemory.h @@ -687,9 +687,9 @@ inline H *MaybeStackHeaderAndArray::orphanOrClone(int32_t l * * // MemoryPool will take care of deleting the MyType objects. * - * It is also able to also adopt pointers to heap allocated objects. This is not - * the typical use-case, as it is more error prone. This class is kept - * minimalist as far as possible. + * It is also able to adopt pointers to heap allocated objects. This is not the + * typical use-case, as it is more error prone: this class is kept minimalist as + * far as possible. */ template class MemoryPool : public UMemory { @@ -857,7 +857,8 @@ public: } /** - * Append all the items from another MaybeStackVector to this one. + * Append all the items from another MaybeStackVector to this one via + * copy-construction. */ void appendAll(const MaybeStackVector& other, UErrorCode& status) { for (int32_t i = 0; i < other.fCount; i++) { -- 2.40.0