summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--basctl/source/basicide/baside3.cxx4
-rw-r--r--basctl/source/dlged/managelang.cxx4
-rw-r--r--basegfx/source/tools/canvastools.cxx7
-rw-r--r--basic/source/classes/sbunoobj.cxx8
4 files changed, 7 insertions, 16 deletions
diff --git a/basctl/source/basicide/baside3.cxx b/basctl/source/basicide/baside3.cxx
index eab48715882b..4799e8f7a299 100644
--- a/basctl/source/basicide/baside3.cxx
+++ b/basctl/source/basicide/baside3.cxx
@@ -1007,9 +1007,7 @@ bool implImportDialog(weld::Window* pWin, const OUString& rCurPath, const Script
}
}
- Sequence< lang::Locale > aFirstLocaleSeq( 1 );
- aFirstLocaleSeq[0] = aFirstLocale;
- pCurMgr->handleAddLocales( aFirstLocaleSeq );
+ pCurMgr->handleAddLocales( {aFirstLocale} );
if( nOnlyInImportLanguageCount > 1 )
{
diff --git a/basctl/source/dlged/managelang.cxx b/basctl/source/dlged/managelang.cxx
index 01ce70421b24..77a40f031c80 100644
--- a/basctl/source/dlged/managelang.cxx
+++ b/basctl/source/dlged/managelang.cxx
@@ -298,9 +298,7 @@ Sequence< Locale > SetDefaultLanguageDialog::GetLocales() const
if (bNotLocalized)
{
LanguageType eType(m_xLanguageLB->get_selected_id().toUInt32());
- Sequence<Locale> aLocaleSeq(1);
- aLocaleSeq[0] = LanguageTag(eType).getLocale();
- return aLocaleSeq;
+ return {LanguageTag(eType).getLocale()};
}
std::vector<Locale> aLocaleSeq;
const sal_Int32 nCount = m_xCheckLangLB->n_children();
diff --git a/basegfx/source/tools/canvastools.cxx b/basegfx/source/tools/canvastools.cxx
index 67bba41a933f..11ebe70dec28 100644
--- a/basegfx/source/tools/canvastools.cxx
+++ b/basegfx/source/tools/canvastools.cxx
@@ -131,15 +131,14 @@ namespace basegfx::unotools
if( rPoly.areControlPointsUsed() )
{
- uno::Sequence< uno::Sequence< geometry::RealBezierSegment2D > > outputSequence( 1 );
- outputSequence[0] = bezierSequenceFromB2DPolygon( rPoly );
+ uno::Sequence< uno::Sequence< geometry::RealBezierSegment2D > > outputSequence{ bezierSequenceFromB2DPolygon( rPoly )};
xRes = xGraphicDevice->createCompatibleBezierPolyPolygon( outputSequence );
}
else
{
- uno::Sequence< uno::Sequence< geometry::RealPoint2D > > outputSequence( 1 );
- outputSequence[0] = pointSequenceFromB2DPolygon( rPoly );
+ uno::Sequence< uno::Sequence< geometry::RealPoint2D > > outputSequence{
+ pointSequenceFromB2DPolygon( rPoly )};
xRes = xGraphicDevice->createCompatibleLinePolyPolygon( outputSequence );
}
diff --git a/basic/source/classes/sbunoobj.cxx b/basic/source/classes/sbunoobj.cxx
index 15e8f6b91154..dc3e97619c73 100644
--- a/basic/source/classes/sbunoobj.cxx
+++ b/basic/source/classes/sbunoobj.cxx
@@ -3236,9 +3236,7 @@ void VBAConstantHelper::init()
if ( isInited )
return;
- Sequence< TypeClass > types(1);
- types[ 0 ] = TypeClass_CONSTANTS;
- Reference< XTypeDescriptionEnumeration > xEnum = getTypeDescriptorEnumeration( "ooo.vba", types, TypeDescriptionSearchDepth_INFINITE );
+ Reference< XTypeDescriptionEnumeration > xEnum = getTypeDescriptorEnumeration( "ooo.vba", {TypeClass_CONSTANTS}, TypeDescriptionSearchDepth_INFINITE );
if ( !xEnum.is())
{
@@ -3922,9 +3920,7 @@ static Reference< XInterface > createAllListenerAdapter
Reference< XInvocation > xInvocationToAllListenerMapper =
new InvocationToAllListenerMapper(xListenerType, xListener, Helper);
Type aListenerType( xListenerType->getTypeClass(), xListenerType->getName() );
- Sequence<Type> arg2(1);
- arg2[0] = aListenerType;
- xAdapter = xInvocationAdapterFactory->createAdapter( xInvocationToAllListenerMapper, arg2 );
+ xAdapter = xInvocationAdapterFactory->createAdapter( xInvocationToAllListenerMapper, {aListenerType} );
}
return xAdapter;
}