include/com/sun/star/uno/Sequence.h | 2 ++ 1 file changed, 2 insertions(+)
New commits: commit 3e8214734f9695d7f16c4a37f1a497aeb229d677 Author: Mike Kaganski <mike.kagan...@collabora.com> AuthorDate: Fri Nov 12 15:49:57 2021 +0300 Commit: Mike Kaganski <mike.kagan...@collabora.com> CommitDate: Fri Nov 12 16:01:37 2021 +0100 Add a comment clarifying intended replacement for non-const operator[] Change-Id: Ib6cd01e1da3e23521e2ae385b8f50046000da410 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125103 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com> diff --git a/include/com/sun/star/uno/Sequence.h b/include/com/sun/star/uno/Sequence.h index b557ec87b4ca..4f481914c52b 100644 --- a/include/com/sun/star/uno/Sequence.h +++ b/include/com/sun/star/uno/Sequence.h @@ -217,6 +217,8 @@ public: */ inline E const * end() const; +// Non-const operator[] is not available in internal code. Consider explicit use +// of getArray(), out of tight loops if possible to avoid unneeded COW overhead. #if !defined LIBO_INTERNAL_ONLY /** Non-const index operator: Obtains a reference to element indexed at given position.