summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-07-06 21:28:38 +0100
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-07-07 10:42:04 +0200
commit98ae74f85e08644be95e955449f0021d2f4151c2 (patch)
tree2e94588fa74614228d0b58ad29ef052ebde4d62e
parent5c13cfd43dff1050b046633f6ebe8dce3298680d (diff)
cid#1546189 COPY_INSTEAD_OF_MOVE
Change-Id: Ia286c035d64aa1534606a7561f3b5a89d66315df Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170079 Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com> Tested-by: Jenkins
-rw-r--r--sw/source/core/access/accpara.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/core/access/accpara.cxx b/sw/source/core/access/accpara.cxx
index 4be4a5feb4a2..64a1e622c272 100644
--- a/sw/source/core/access/accpara.cxx
+++ b/sw/source/core/access/accpara.cxx
@@ -1525,8 +1525,7 @@ void SwAccessibleParagraph::_getDefaultAttributesImpl(
{
PropertyValue rPropVal;
rPropVal.Name = UNO_NAME_PARA_STYLE_NAME;
- uno::Any aVal( uno::Any( pTextNode->GetTextColl()->GetName() ) );
- rPropVal.Value = aVal;
+ rPropVal.Value <<= pTextNode->GetTextColl()->GetName();
rPropVal.Handle = -1;
rPropVal.State = beans::PropertyState_DEFAULT_VALUE;