diff options
author | Noel Grandin <noel@peralex.com> | 2015-10-29 13:57:50 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-10-30 08:10:22 +0200 |
commit | addb63fa8ac9fa1a29a00e886e7ae177b604494c (patch) | |
tree | 53b95e2a5ba086b62b511278a3283321962ba6f9 /sw | |
parent | f53343320101bfe650f5fe2cdf95f94995778037 (diff) |
convert Sequence<XInterface> constructions to use initializer lists
Change-Id: I66475190cc0f18465c56b94af7bc0d5a1ca81242
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/access/accpara.cxx | 6 | ||||
-rw-r--r-- | sw/source/core/access/acctextframe.cxx | 3 |
2 files changed, 3 insertions, 6 deletions
diff --git a/sw/source/core/access/accpara.cxx b/sw/source/core/access/accpara.cxx index 1471a303e64e..0a1a5bf08321 100644 --- a/sw/source/core/access/accpara.cxx +++ b/sw/source/core/access/accpara.cxx @@ -974,8 +974,7 @@ uno::Reference<XAccessibleRelationSet> SAL_CALL SwAccessibleParagraph::getAccess const SwContentFrm* pPrevCntFrm( pTextFrm->FindPrevCnt( true ) ); if ( pPrevCntFrm ) { - uno::Sequence< uno::Reference<XInterface> > aSequence(1); - aSequence[0] = GetMap()->GetContext( pPrevCntFrm ); + uno::Sequence< uno::Reference<XInterface> > aSequence { GetMap()->GetContext( pPrevCntFrm ) }; AccessibleRelation aAccRel( AccessibleRelationType::CONTENT_FLOWS_FROM, aSequence ); pHelper->AddRelation( aAccRel ); @@ -984,8 +983,7 @@ uno::Reference<XAccessibleRelationSet> SAL_CALL SwAccessibleParagraph::getAccess const SwContentFrm* pNextCntFrm( pTextFrm->FindNextCnt( true ) ); if ( pNextCntFrm ) { - uno::Sequence< uno::Reference<XInterface> > aSequence(1); - aSequence[0] = GetMap()->GetContext( pNextCntFrm ); + uno::Sequence< uno::Reference<XInterface> > aSequence { GetMap()->GetContext( pNextCntFrm ) }; AccessibleRelation aAccRel( AccessibleRelationType::CONTENT_FLOWS_TO, aSequence ); pHelper->AddRelation( aAccRel ); diff --git a/sw/source/core/access/acctextframe.cxx b/sw/source/core/access/acctextframe.cxx index cc88805cf511..fb3e0391cc85 100644 --- a/sw/source/core/access/acctextframe.cxx +++ b/sw/source/core/access/acctextframe.cxx @@ -321,8 +321,7 @@ SwFlyFrm* SwAccessibleTextFrame::getFlyFrm() const AccessibleRelation SwAccessibleTextFrame::makeRelation( sal_Int16 nType, const SwFlyFrm* pFrm ) { - uno::Sequence<uno::Reference<XInterface> > aSequence(1); - aSequence[0] = GetMap()->GetContext( pFrm ); + uno::Sequence<uno::Reference<XInterface> > aSequence { GetMap()->GetContext( pFrm ) }; return AccessibleRelation( nType, aSequence ); } |