diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2021-06-10 00:02:28 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2021-06-11 14:54:36 +0200 |
commit | 76a69fb0bb1d849a2a7e76e209a30db149d79cdd (patch) | |
tree | a0358b5c8f8ba9865d82cdea3756a3438c7766ba /sw/source/core/unocore/unoframe.cxx | |
parent | b1fe17f280b24e78e7ee55d4762dc64a98d6f302 (diff) |
Simplify Sequences initializations (sw)
Change-Id: I02647bdb720620afe20284a069a71c19dbfcea05
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116944
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'sw/source/core/unocore/unoframe.cxx')
-rw-r--r-- | sw/source/core/unocore/unoframe.cxx | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/sw/source/core/unocore/unoframe.cxx b/sw/source/core/unocore/unoframe.cxx index e5c8fb7e1515..a430d92f5b7f 100644 --- a/sw/source/core/unocore/unoframe.cxx +++ b/sw/source/core/unocore/unoframe.cxx @@ -1988,13 +1988,14 @@ uno::Any SwXFrame::getPropertyValue(const OUString& rPropertyName) if(FN_UNO_ANCHOR_TYPES == pEntry->nWID) { - uno::Sequence<text::TextContentAnchorType> aTypes(5); - text::TextContentAnchorType* pArray = aTypes.getArray(); - pArray[0] = text::TextContentAnchorType_AT_PARAGRAPH; - pArray[1] = text::TextContentAnchorType_AS_CHARACTER; - pArray[2] = text::TextContentAnchorType_AT_PAGE; - pArray[3] = text::TextContentAnchorType_AT_FRAME; - pArray[4] = text::TextContentAnchorType_AT_CHARACTER; + uno::Sequence<text::TextContentAnchorType> aTypes + { + text::TextContentAnchorType_AT_PARAGRAPH, + text::TextContentAnchorType_AS_CHARACTER, + text::TextContentAnchorType_AT_PAGE, + text::TextContentAnchorType_AT_FRAME, + text::TextContentAnchorType_AT_CHARACTER + }; aAny <<= aTypes; } else if(pFormat) |