summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-10-29 13:57:50 +0200
committerNoel Grandin <noel@peralex.com>2015-10-30 08:10:22 +0200
commitaddb63fa8ac9fa1a29a00e886e7ae177b604494c (patch)
tree53b95e2a5ba086b62b511278a3283321962ba6f9 /editeng
parentf53343320101bfe650f5fe2cdf95f94995778037 (diff)
convert Sequence<XInterface> constructions to use initializer lists
Change-Id: I66475190cc0f18465c56b94af7bc0d5a1ca81242
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/accessibility/AccessibleEditableTextPara.cxx10
1 files changed, 4 insertions, 6 deletions
diff --git a/editeng/source/accessibility/AccessibleEditableTextPara.cxx b/editeng/source/accessibility/AccessibleEditableTextPara.cxx
index 6332468ad718..f7a43deb261f 100644
--- a/editeng/source/accessibility/AccessibleEditableTextPara.cxx
+++ b/editeng/source/accessibility/AccessibleEditableTextPara.cxx
@@ -823,9 +823,8 @@ namespace accessibility
if ( nMyParaIndex > 0 &&
mpParaManager->IsReferencable( nMyParaIndex - 1 ) )
{
- uno::Sequence<uno::Reference<XInterface> > aSequence(1);
- aSequence[0] =
- mpParaManager->GetChild( nMyParaIndex - 1 ).first.get().getRef();
+ uno::Sequence<uno::Reference<XInterface> > aSequence
+ { mpParaManager->GetChild( nMyParaIndex - 1 ).first.get().getRef() };
AccessibleRelation aAccRel( AccessibleRelationType::CONTENT_FLOWS_FROM,
aSequence );
pAccRelSetHelper->AddRelation( aAccRel );
@@ -835,9 +834,8 @@ namespace accessibility
if ( (nMyParaIndex + 1) < (sal_Int32)mpParaManager->GetNum() &&
mpParaManager->IsReferencable( nMyParaIndex + 1 ) )
{
- uno::Sequence<uno::Reference<XInterface> > aSequence(1);
- aSequence[0] =
- mpParaManager->GetChild( nMyParaIndex + 1 ).first.get().getRef();
+ uno::Sequence<uno::Reference<XInterface> > aSequence
+ { mpParaManager->GetChild( nMyParaIndex + 1 ).first.get().getRef() };
AccessibleRelation aAccRel( AccessibleRelationType::CONTENT_FLOWS_TO,
aSequence );
pAccRelSetHelper->AddRelation( aAccRel );