summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--UnoControls/source/controls/framecontrol.cxx3
-rw-r--r--avmedia/source/framework/soundhandler.cxx3
-rw-r--r--chart2/source/model/template/DataInterpreter.cxx3
-rw-r--r--chart2/source/view/axes/DateScaling.cxx3
-rw-r--r--comphelper/source/misc/documentiologring.cxx3
-rw-r--r--comphelper/source/misc/officerestartmanager.cxx3
-rw-r--r--comphelper/source/property/genericpropertyset.cxx3
-rw-r--r--comphelper/source/streaming/seqinputstreamserv.cxx3
-rw-r--r--comphelper/source/streaming/seqoutputstreamserv.cxx3
-rw-r--r--connectivity/source/commontools/FDatabaseMetaDataResultSet.cxx3
-rw-r--r--connectivity/source/commontools/ParamterSubstitution.cxx3
-rw-r--r--connectivity/source/drivers/evoab2/NDriver.cxx3
-rw-r--r--connectivity/source/drivers/jdbc/JDriver.cxx3
-rw-r--r--connectivity/source/drivers/kab/KDriver.cxx3
-rw-r--r--connectivity/source/drivers/macab/MacabDriver.cxx3
-rw-r--r--connectivity/source/drivers/mozab/bootstrap/MMozillaBootstrap.cxx6
-rw-r--r--connectivity/source/drivers/odbc/ODriver.cxx3
-rw-r--r--cui/source/customize/cfg.cxx3
-rw-r--r--cui/source/options/webconninfo.cxx3
-rw-r--r--dbaccess/source/core/api/RowSet.cxx3
-rw-r--r--dbaccess/source/core/api/column.cxx6
-rw-r--r--dbaccess/source/core/api/querycomposer.cxx3
-rw-r--r--dbaccess/source/core/api/statement.cxx3
-rw-r--r--dbaccess/source/core/dataaccess/databasecontext.cxx3
-rw-r--r--dbaccess/source/core/misc/DatabaseDataProvider.cxx3
-rw-r--r--dbaccess/source/filter/xml/dbloader2.cxx6
-rw-r--r--dbaccess/source/sdbtools/connection/connectiontools.cxx3
-rw-r--r--dbaccess/source/ui/app/AppController.cxx3
-rw-r--r--dbaccess/source/ui/querydesign/querycontroller.cxx6
-rw-r--r--dbaccess/source/ui/relationdesign/RelationController.cxx3
-rw-r--r--dbaccess/source/ui/tabledesign/TableController.cxx3
-rw-r--r--dtrans/source/cnttype/mctfentry.cxx3
-rw-r--r--embedserv/source/embed/register.cxx3
-rw-r--r--extensions/source/plugin/base/manager.cxx3
-rw-r--r--extensions/source/plugin/base/plmodel.cxx3
-rw-r--r--extensions/source/propctrlr/buttonnavigationhandler.cxx3
-rw-r--r--extensions/source/propctrlr/cellbindinghandler.cxx3
-rw-r--r--extensions/source/propctrlr/editpropertyhandler.cxx3
-rw-r--r--extensions/source/propctrlr/eformspropertyhandler.cxx3
-rw-r--r--extensions/source/propctrlr/eventhandler.cxx3
-rw-r--r--extensions/source/propctrlr/formcomponenthandler.cxx3
-rw-r--r--extensions/source/propctrlr/formgeometryhandler.cxx3
-rw-r--r--extensions/source/propctrlr/genericpropertyhandler.cxx3
-rw-r--r--extensions/source/propctrlr/submissionhandler.cxx3
-rw-r--r--extensions/source/propctrlr/xsdvalidationpropertyhandler.cxx3
-rw-r--r--formula/source/core/api/FormulaOpCodeMapperObj.cxx3
-rw-r--r--fpicker/source/aqua/FPentry.mm6
-rw-r--r--fpicker/source/office/RemoteFilesDialog.cxx6
-rw-r--r--fpicker/source/win32/filepicker/FPentry.cxx6
-rw-r--r--framework/source/dispatch/popupmenudispatcher.cxx3
-rw-r--r--framework/source/fwe/classes/actiontriggerpropertyset.cxx3
-rw-r--r--framework/source/fwe/classes/actiontriggerseparatorpropertyset.cxx3
-rw-r--r--framework/source/fwe/classes/addonsoptions.cxx3
-rw-r--r--framework/source/services/substitutepathvars.cxx6
-rw-r--r--framework/source/uielement/subtoolbarcontroller.cxx3
-rw-r--r--framework/source/uielement/thesaurusmenucontroller.cxx3
-rw-r--r--linguistic/source/convdiclist.cxx3
-rw-r--r--linguistic/source/gciterator.cxx3
-rw-r--r--package/source/xstor/xstorage.cxx3
-rw-r--r--package/source/zippackage/ZipPackage.cxx3
-rw-r--r--package/source/zippackage/ZipPackageStream.cxx3
-rw-r--r--reportdesign/source/core/api/Group.cxx3
-rw-r--r--reportdesign/source/core/api/Section.cxx3
-rw-r--r--reportdesign/source/filter/xml/dbloader2.cxx3
-rw-r--r--reportdesign/source/ui/misc/statusbarcontroller.cxx3
-rw-r--r--reportdesign/source/ui/misc/toolboxcontroller.cxx3
-rw-r--r--reportdesign/source/ui/report/ReportController.cxx3
-rw-r--r--sc/source/ui/unoobj/unodoc.cxx3
-rw-r--r--sd/source/ui/controller/slidelayoutcontroller.cxx6
-rw-r--r--sd/source/ui/unoidl/unomodule.cxx3
-rw-r--r--sfx2/source/appl/helpinterceptor.cxx3
-rw-r--r--sfx2/source/appl/imagemgr.cxx6
-rw-r--r--shell/source/win32/workbench/TestSmplMail.cxx6
-rw-r--r--stoc/source/security/access_controller.cxx3
-rw-r--r--stoc/source/security/file_policy.cxx3
-rw-r--r--svl/source/fsstor/fsstorage.cxx6
-rw-r--r--svl/source/passwordcontainer/passwordcontainer.cxx3
-rw-r--r--svtools/source/dialogs/ServerDetailsControls.cxx6
-rw-r--r--svtools/source/uno/contextmenuhelper.cxx3
-rw-r--r--svx/source/form/xfm_addcondition.cxx3
-rw-r--r--svx/source/tbxctrls/bulletsnumbering.cxx3
-rw-r--r--svx/source/tbxctrls/extrusioncontrols.cxx12
-rw-r--r--svx/source/tbxctrls/fontworkgallery.cxx6
-rw-r--r--svx/source/tbxctrls/tbunocontroller.cxx3
-rw-r--r--svx/source/tbxctrls/tbunosearchcontrollers.cxx21
-rw-r--r--svx/source/unodraw/UnoNamespaceMap.cxx3
-rw-r--r--svx/source/unodraw/unobtabl.cxx3
-rw-r--r--svx/source/unodraw/unoctabl.cxx3
-rw-r--r--svx/source/unodraw/unodtabl.cxx3
-rw-r--r--svx/source/unodraw/unogtabl.cxx3
-rw-r--r--svx/source/unodraw/unohtabl.cxx3
-rw-r--r--svx/source/unodraw/unomtabl.cxx3
-rw-r--r--svx/source/unodraw/unopage.cxx3
-rw-r--r--svx/source/unodraw/unopool.cxx3
-rw-r--r--svx/source/unodraw/unottabl.cxx3
-rw-r--r--sw/source/core/layout/dumpfilter.cxx3
-rw-r--r--sw/source/core/view/printdata.cxx6
-rw-r--r--sw/source/uibase/uno/unomodule.cxx3
-rw-r--r--toolkit/source/controls/grid/defaultgriddatamodel.cxx3
-rw-r--r--toolkit/source/controls/tree/treedatamodel.cxx6
-rw-r--r--toolkit/source/controls/unocontrols.cxx6
-rw-r--r--ucb/source/ucp/file/bc.cxx3
-rw-r--r--unotools/source/config/cmdoptions.cxx3
-rw-r--r--unotools/source/config/eventcfg.cxx3
-rw-r--r--unotools/source/config/extendedsecurityoptions.cxx3
-rw-r--r--vcl/source/components/dtranscomp.cxx6
-rw-r--r--vcl/unx/generic/dtrans/config.cxx3
-rw-r--r--xmlhelp/source/treeview/tvfactory.cxx3
-rw-r--r--xmloff/source/draw/ximpshap.cxx3
-rw-r--r--xmloff/source/forms/elementimport.cxx3
-rw-r--r--xmloff/source/text/XMLAutoTextEventExport.cxx6
-rw-r--r--xmloff/source/text/XMLAutoTextEventImport.cxx3
112 files changed, 140 insertions, 280 deletions
diff --git a/UnoControls/source/controls/framecontrol.cxx b/UnoControls/source/controls/framecontrol.cxx
index 63751364e5ff..cfbb19fc89e6 100644
--- a/UnoControls/source/controls/framecontrol.cxx
+++ b/UnoControls/source/controls/framecontrol.cxx
@@ -267,8 +267,7 @@ void SAL_CALL FrameControl::unadvise( const Type& aTyp
const Sequence< OUString > FrameControl::impl_getStaticSupportedServiceNames()
{
MutexGuard aGuard( Mutex::getGlobalMutex() );
- Sequence< OUString > seqServiceNames( 1 );
- seqServiceNames.getArray() [0] = SERVICENAME_FRAMECONTROL;
+ Sequence<OUString> seqServiceNames { SERVICENAME_FRAMECONTROL };
return seqServiceNames;
}
diff --git a/avmedia/source/framework/soundhandler.cxx b/avmedia/source/framework/soundhandler.cxx
index e0e5133f7232..734d8a04b112 100644
--- a/avmedia/source/framework/soundhandler.cxx
+++ b/avmedia/source/framework/soundhandler.cxx
@@ -125,8 +125,7 @@ sal_Bool SAL_CALL SoundHandler::supportsService( const OUString& sServiceName )
// XServiceInfo
css::uno::Sequence< OUString > SAL_CALL SoundHandler::getSupportedServiceNames() throw( css::uno::RuntimeException, std::exception )
{
- css::uno::Sequence< OUString > seqServiceNames( 1 );
- seqServiceNames.getArray() [0] = "com.sun.star.frame.ContentHandler";
+ css::uno::Sequence<OUString> seqServiceNames { "com.sun.star.frame.ContentHandler" };
return seqServiceNames;
}
diff --git a/chart2/source/model/template/DataInterpreter.cxx b/chart2/source/model/template/DataInterpreter.cxx
index 3f81a0eee22a..9cc8c8e66a4f 100644
--- a/chart2/source/model/template/DataInterpreter.cxx
+++ b/chart2/source/model/template/DataInterpreter.cxx
@@ -383,8 +383,7 @@ bool DataInterpreter::UseCategoriesAsX( const Sequence< beans::PropertyValue > &
Sequence< OUString > DataInterpreter::getSupportedServiceNames_Static()
{
- Sequence< OUString > aServices( 1 );
- aServices[0] = "com.sun.star.chart2.DataInterpreter";
+ Sequence<OUString> aServices { "com.sun.star.chart2.DataInterpreter" };
return aServices;
}
diff --git a/chart2/source/view/axes/DateScaling.cxx b/chart2/source/view/axes/DateScaling.cxx
index d1ee1d9c6e53..0dd3c697a70c 100644
--- a/chart2/source/view/axes/DateScaling.cxx
+++ b/chart2/source/view/axes/DateScaling.cxx
@@ -207,8 +207,7 @@ OUString SAL_CALL InverseDateScaling::getServiceName()
uno::Sequence< OUString > InverseDateScaling::getSupportedServiceNames_Static()
{
- uno::Sequence< OUString > aSeq( 1 );
- aSeq.getArray()[0] = lcl_aServiceName_InverseDateScaling;
+ uno::Sequence<OUString> aSeq { lcl_aServiceName_InverseDateScaling };
return aSeq;
}
diff --git a/comphelper/source/misc/documentiologring.cxx b/comphelper/source/misc/documentiologring.cxx
index b08beac8ceef..fea9257d17eb 100644
--- a/comphelper/source/misc/documentiologring.cxx
+++ b/comphelper/source/misc/documentiologring.cxx
@@ -49,8 +49,7 @@ OSimpleLogRing::~OSimpleLogRing()
uno::Sequence< OUString > SAL_CALL OSimpleLogRing::getSupportedServiceNames_static()
{
- uno::Sequence< OUString > aResult( 1 );
- aResult[0] = getServiceName_static();
+ uno::Sequence<OUString> aResult { getServiceName_static() };
return aResult;
}
diff --git a/comphelper/source/misc/officerestartmanager.cxx b/comphelper/source/misc/officerestartmanager.cxx
index bb58209209da..fe7b1590bf65 100644
--- a/comphelper/source/misc/officerestartmanager.cxx
+++ b/comphelper/source/misc/officerestartmanager.cxx
@@ -36,8 +36,7 @@ namespace comphelper
uno::Sequence< OUString > SAL_CALL OOfficeRestartManager::getSupportedServiceNames_static()
{
- uno::Sequence< OUString > aResult( 1 );
- aResult[0] = getServiceName_static();
+ uno::Sequence<OUString> aResult { getServiceName_static() };
return aResult;
}
diff --git a/comphelper/source/property/genericpropertyset.cxx b/comphelper/source/property/genericpropertyset.cxx
index 383c26762c94..42b3a9f71b97 100644
--- a/comphelper/source/property/genericpropertyset.cxx
+++ b/comphelper/source/property/genericpropertyset.cxx
@@ -256,8 +256,7 @@ OUString SAL_CALL GenericPropertySet::getImplementationName() throw( RuntimeExce
Sequence< OUString > SAL_CALL GenericPropertySet::getSupportedServiceNames( )
throw( RuntimeException, std::exception )
{
- Sequence< OUString > aSNS( 1 );
- aSNS.getArray()[0] = "com.sun.star.beans.XPropertySet";
+ Sequence<OUString> aSNS { "com.sun.star.beans.XPropertySet" };
return aSNS;
}
diff --git a/comphelper/source/streaming/seqinputstreamserv.cxx b/comphelper/source/streaming/seqinputstreamserv.cxx
index 306a5e68d283..f5b5f3bcb0d5 100644
--- a/comphelper/source/streaming/seqinputstreamserv.cxx
+++ b/comphelper/source/streaming/seqinputstreamserv.cxx
@@ -112,8 +112,7 @@ uno::Sequence< OUString > SAL_CALL SequenceInputStreamService::getSupportedServi
uno::Sequence< OUString > SAL_CALL SequenceInputStreamService::getSupportedServiceNames_static()
{
- uno::Sequence< OUString > s( 1 );
- s[0] = "com.sun.star.io.SequenceInputStream";
+ uno::Sequence<OUString> s { "com.sun.star.io.SequenceInputStream" };
return s;
}
diff --git a/comphelper/source/streaming/seqoutputstreamserv.cxx b/comphelper/source/streaming/seqoutputstreamserv.cxx
index 65f2fa75b891..7340b5808f32 100644
--- a/comphelper/source/streaming/seqoutputstreamserv.cxx
+++ b/comphelper/source/streaming/seqoutputstreamserv.cxx
@@ -99,8 +99,7 @@ uno::Sequence< OUString > SAL_CALL SequenceOutputStreamService::getSupportedServ
uno::Sequence< OUString > SAL_CALL SequenceOutputStreamService::getSupportedServiceNames_static()
{
- uno::Sequence< OUString > s( 1 );
- s[0] = "com.sun.star.io.SequenceOutputStream";
+ uno::Sequence<OUString> s { "com.sun.star.io.SequenceOutputStream" };
return s;
}
diff --git a/connectivity/source/commontools/FDatabaseMetaDataResultSet.cxx b/connectivity/source/commontools/FDatabaseMetaDataResultSet.cxx
index 59507f5d4b35..34ed9b8f0152 100644
--- a/connectivity/source/commontools/FDatabaseMetaDataResultSet.cxx
+++ b/connectivity/source/commontools/FDatabaseMetaDataResultSet.cxx
@@ -856,8 +856,7 @@ void SAL_CALL ODatabaseMetaDataResultSet::initialize( const Sequence< Any >& _aA
Sequence< OUString > ODatabaseMetaDataResultSet::getSupportedServiceNames_Static( ) throw (RuntimeException)
{
- Sequence< OUString > aSNS( 1 );
- aSNS[0] = "com.sun.star.sdbc.ResultSet";
+ Sequence<OUString> aSNS { "com.sun.star.sdbc.ResultSet" };
return aSNS;
}
diff --git a/connectivity/source/commontools/ParamterSubstitution.cxx b/connectivity/source/commontools/ParamterSubstitution.cxx
index 1ed3792b5688..ebe096f0f232 100644
--- a/connectivity/source/commontools/ParamterSubstitution.cxx
+++ b/connectivity/source/commontools/ParamterSubstitution.cxx
@@ -62,8 +62,7 @@ namespace connectivity
Sequence< OUString > ParameterSubstitution::getSupportedServiceNames_Static( ) throw (RuntimeException)
{
- Sequence< OUString > aSNS( 1 );
- aSNS[0] = "com.sun.star.sdb.ParameterSubstitution";
+ Sequence<OUString> aSNS { "com.sun.star.sdb.ParameterSubstitution" };
return aSNS;
}
diff --git a/connectivity/source/drivers/evoab2/NDriver.cxx b/connectivity/source/drivers/evoab2/NDriver.cxx
index 0761e41c1686..d9783dabc84a 100644
--- a/connectivity/source/drivers/evoab2/NDriver.cxx
+++ b/connectivity/source/drivers/evoab2/NDriver.cxx
@@ -91,8 +91,7 @@ Sequence< OUString > OEvoabDriver::getSupportedServiceNames_Static( ) throw (Ru
{
// which service is supported
// for more information @see com.sun.star.sdbc.Driver
- Sequence< OUString > aSNS( 1 );
- aSNS[0] = "com.sun.star.sdbc.Driver";
+ Sequence<OUString> aSNS { "com.sun.star.sdbc.Driver" };
return aSNS;
}
diff --git a/connectivity/source/drivers/jdbc/JDriver.cxx b/connectivity/source/drivers/jdbc/JDriver.cxx
index 5fed74908789..314c2c60c584 100644
--- a/connectivity/source/drivers/jdbc/JDriver.cxx
+++ b/connectivity/source/drivers/jdbc/JDriver.cxx
@@ -61,8 +61,7 @@ OUString java_sql_Driver::getImplementationName_Static( ) throw(RuntimeExceptio
Sequence< OUString > java_sql_Driver::getSupportedServiceNames_Static( ) throw (RuntimeException)
{
- Sequence< OUString > aSNS( 1 );
- aSNS[0] = "com.sun.star.sdbc.Driver";
+ Sequence<OUString> aSNS { "com.sun.star.sdbc.Driver" };
return aSNS;
}
diff --git a/connectivity/source/drivers/kab/KDriver.cxx b/connectivity/source/drivers/kab/KDriver.cxx
index bf7531b9c520..0e50f150d6db 100644
--- a/connectivity/source/drivers/kab/KDriver.cxx
+++ b/connectivity/source/drivers/kab/KDriver.cxx
@@ -369,8 +369,7 @@ Sequence< OUString > KabDriver::getSupportedServiceNames_Static( ) throw (Runti
{
// which service is supported
// for more information @see com.sun.star.sdbc.Driver
- Sequence< OUString > aSNS( 1 );
- aSNS[0] = "com.sun.star.sdbc.Driver";
+ Sequence<OUString> aSNS { "com.sun.star.sdbc.Driver" };
return aSNS;
}
diff --git a/connectivity/source/drivers/macab/MacabDriver.cxx b/connectivity/source/drivers/macab/MacabDriver.cxx
index 69881a4ac1a4..bb32e6be9cf0 100644
--- a/connectivity/source/drivers/macab/MacabDriver.cxx
+++ b/connectivity/source/drivers/macab/MacabDriver.cxx
@@ -224,8 +224,7 @@ Sequence< OUString > MacabDriver::getSupportedServiceNames_Static( ) throw (Run
{
// which service is supported
// for more information @see com.sun.star.sdbc.Driver
- Sequence< OUString > aSNS( 1 );
- aSNS[0] = "com.sun.star.sdbc.Driver";
+ Sequence<OUString> aSNS { "com.sun.star.sdbc.Driver" };
return aSNS;
}
diff --git a/connectivity/source/drivers/mozab/bootstrap/MMozillaBootstrap.cxx b/connectivity/source/drivers/mozab/bootstrap/MMozillaBootstrap.cxx
index cefe066ffde6..25e2cc310699 100644
--- a/connectivity/source/drivers/mozab/bootstrap/MMozillaBootstrap.cxx
+++ b/connectivity/source/drivers/mozab/bootstrap/MMozillaBootstrap.cxx
@@ -82,8 +82,7 @@ Sequence< OUString > MozillaBootstrap::getSupportedServiceNames_Static( ) throw
{
// which service is supported
// for more information @see com.sun.star.mozilla.MozillaBootstrap
- Sequence< OUString > aSNS( 1 );
- aSNS[0] = "com.sun.star.mozilla.MozillaBootstrap";
+ Sequence<OUString> aSNS { "com.sun.star.mozilla.MozillaBootstrap" };
return aSNS;
}
@@ -187,8 +186,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL mozbootstrap_component_getFactory
Reference< XSingleServiceFactory > xFactory;
if ( aImplName == "com.sun.star.comp.mozilla.MozillaBootstrap" )
{
- Sequence< OUString > aSNS( 1 );
- aSNS[0] = "com.sun.star.mozilla.MozillaBootstrap";
+ Sequence<OUString> aSNS { "com.sun.star.mozilla.MozillaBootstrap" };
xFactory = ::cppu::createSingleFactory(
static_cast< XMultiServiceFactory* > ( pServiceManager),
diff --git a/connectivity/source/drivers/odbc/ODriver.cxx b/connectivity/source/drivers/odbc/ODriver.cxx
index 94987f8785fc..21c013a2845c 100644
--- a/connectivity/source/drivers/odbc/ODriver.cxx
+++ b/connectivity/source/drivers/odbc/ODriver.cxx
@@ -67,8 +67,7 @@ OUString ODBCDriver::getImplementationName_Static( ) throw(RuntimeException)
Sequence< OUString > ODBCDriver::getSupportedServiceNames_Static( ) throw (RuntimeException)
{
- Sequence< OUString > aSNS( 1 );
- aSNS[0] = "com.sun.star.sdbc.Driver";
+ Sequence<OUString> aSNS { "com.sun.star.sdbc.Driver" };
return aSNS;
}
diff --git a/cui/source/customize/cfg.cxx b/cui/source/customize/cfg.cxx
index f67fabdb5d9b..71adb03bf59b 100644
--- a/cui/source/customize/cfg.cxx
+++ b/cui/source/customize/cfg.cxx
@@ -934,8 +934,7 @@ uno::Reference< graphic::XGraphic > GetGraphic(
// TODO handle large graphics
uno::Sequence< uno::Reference< graphic::XGraphic > > aGraphicSeq;
- uno::Sequence< OUString > aImageCmdSeq( 1 );
- aImageCmdSeq[0] = rCommandURL;
+ uno::Sequence<OUString> aImageCmdSeq { rCommandURL };
try
{
diff --git a/cui/source/options/webconninfo.cxx b/cui/source/options/webconninfo.cxx
index 3feee93698e2..2a6b5870ec31 100644
--- a/cui/source/options/webconninfo.cxx
+++ b/cui/source/options/webconninfo.cxx
@@ -279,8 +279,7 @@ IMPL_LINK_NOARG_TYPED(WebConnectionInfoDialog, ChangePasswordHdl, Button*, void)
if ( pPasswordRequest->isPassword() )
{
OUString aNewPass = pPasswordRequest->getPassword();
- uno::Sequence< OUString > aPasswd( 1 );
- aPasswd[0] = aNewPass;
+ uno::Sequence<OUString> aPasswd { aNewPass };
uno::Reference< task::XPasswordContainer2 > xPasswdContainer(
task::PasswordContainer::create(comphelper::getProcessComponentContext()));
diff --git a/dbaccess/source/core/api/RowSet.cxx b/dbaccess/source/core/api/RowSet.cxx
index a5503d4342ca..04a7ada7574c 100644
--- a/dbaccess/source/core/api/RowSet.cxx
+++ b/dbaccess/source/core/api/RowSet.cxx
@@ -2256,8 +2256,7 @@ Reference< XNameAccess > ORowSet::impl_getTables_throw()
m_pTables = new OTableContainer(*this,m_aMutex,m_xActiveConnection,bCase,nullptr,nullptr,nullptr,m_nInAppend);
xTables = m_pTables;
- Sequence< OUString> aTableFilter(1);
- aTableFilter[0] = "%";
+ Sequence<OUString> aTableFilter { "%" };
m_pTables->construct(aTableFilter,Sequence< OUString>());
}
diff --git a/dbaccess/source/core/api/column.cxx b/dbaccess/source/core/api/column.cxx
index a28361ffe34e..1ee753743485 100644
--- a/dbaccess/source/core/api/column.cxx
+++ b/dbaccess/source/core/api/column.cxx
@@ -100,8 +100,7 @@ sal_Bool OColumn::supportsService( const OUString& _rServiceName ) throw (Runtim
Sequence< OUString > OColumn::getSupportedServiceNames( ) throw (RuntimeException, std::exception)
{
- Sequence< OUString > aSNS( 1 );
- aSNS[0] = SERVICE_SDBCX_COLUMN;
+ Sequence<OUString> aSNS { SERVICE_SDBCX_COLUMN };
return aSNS;
}
@@ -199,8 +198,7 @@ sal_Bool OColumns::supportsService( const OUString& _rServiceName ) throw (Runti
Sequence< OUString > OColumns::getSupportedServiceNames( ) throw (RuntimeException, std::exception)
{
- Sequence< OUString > aSNS( 1 );
- aSNS[0] = SERVICE_SDBCX_CONTAINER;
+ Sequence<OUString> aSNS { SERVICE_SDBCX_CONTAINER };
return aSNS;
}
diff --git a/dbaccess/source/core/api/querycomposer.cxx b/dbaccess/source/core/api/querycomposer.cxx
index 5a5f34ef5acb..6a6a7f8ab605 100644
--- a/dbaccess/source/core/api/querycomposer.cxx
+++ b/dbaccess/source/core/api/querycomposer.cxx
@@ -115,8 +115,7 @@ sal_Bool OQueryComposer::supportsService( const OUString& _rServiceName ) throw
Sequence< OUString > OQueryComposer::getSupportedServiceNames( ) throw (RuntimeException, std::exception)
{
- Sequence< OUString > aSNS( 1 );
- aSNS[0] = SERVICE_SDB_SQLQUERYCOMPOSER;
+ Sequence<OUString> aSNS { SERVICE_SDB_SQLQUERYCOMPOSER };
return aSNS;
}
diff --git a/dbaccess/source/core/api/statement.cxx b/dbaccess/source/core/api/statement.cxx
index 24f5929d68da..44c96f289a4d 100644
--- a/dbaccess/source/core/api/statement.cxx
+++ b/dbaccess/source/core/api/statement.cxx
@@ -436,8 +436,7 @@ sal_Bool OStatement::supportsService( const OUString& _rServiceName ) throw (Run
Sequence< OUString > OStatement::getSupportedServiceNames( ) throw (RuntimeException, std::exception)
{
- Sequence< OUString > aSNS( 1 );
- aSNS.getArray()[0] = SERVICE_SDBC_STATEMENT;
+ Sequence<OUString> aSNS { SERVICE_SDBC_STATEMENT };
return aSNS;
}
diff --git a/dbaccess/source/core/dataaccess/databasecontext.cxx b/dbaccess/source/core/dataaccess/databasecontext.cxx
index 91aabfd8d611..8ff8df3a447d 100644
--- a/dbaccess/source/core/dataaccess/databasecontext.cxx
+++ b/dbaccess/source/core/dataaccess/databasecontext.cxx
@@ -212,8 +212,7 @@ Reference< XInterface > ODatabaseContext::Create(const Reference< XComponentCont
Sequence< OUString > ODatabaseContext::getSupportedServiceNames_static() throw( RuntimeException )
{
- Sequence< OUString > aSNS( 1 );
- aSNS[0] = "com.sun.star.sdb.DatabaseContext";
+ Sequence<OUString> aSNS { "com.sun.star.sdb.DatabaseContext" };
return aSNS;
}
diff --git a/dbaccess/source/core/misc/DatabaseDataProvider.cxx b/dbaccess/source/core/misc/DatabaseDataProvider.cxx
index 57eb40a2fada..5a107f04ba41 100644
--- a/dbaccess/source/core/misc/DatabaseDataProvider.cxx
+++ b/dbaccess/source/core/misc/DatabaseDataProvider.cxx
@@ -124,8 +124,7 @@ sal_Bool SAL_CALL DatabaseDataProvider::supportsService( const OUString& _rServi
uno::Sequence< OUString > DatabaseDataProvider::getSupportedServiceNames_Static( ) throw (uno::RuntimeException)
{
- uno::Sequence< OUString > aSNS( 1 );
- aSNS[0] = "com.sun.star.chart2.data.DatabaseDataProvider";
+ uno::Sequence<OUString> aSNS { "com.sun.star.chart2.data.DatabaseDataProvider" };
return aSNS;
}
diff --git a/dbaccess/source/filter/xml/dbloader2.cxx b/dbaccess/source/filter/xml/dbloader2.cxx
index 84cd8273e85e..ce5b7167d478 100644
--- a/dbaccess/source/filter/xml/dbloader2.cxx
+++ b/dbaccess/source/filter/xml/dbloader2.cxx
@@ -208,8 +208,7 @@ Sequence< OUString > SAL_CALL DBTypeDetection::getSupportedServiceNames() throw(
// ORegistryServiceManager_Static
Sequence< OUString > DBTypeDetection::getSupportedServiceNames_Static() throw( )
{
- Sequence< OUString > aSNS( 1 );
- aSNS[0] = "com.sun.star.document.ExtendedTypeDetection";
+ Sequence<OUString> aSNS { "com.sun.star.document.ExtendedTypeDetection" };
return aSNS;
}
@@ -299,8 +298,7 @@ Sequence< OUString > SAL_CALL DBContentLoader::getSupportedServiceNames() throw(
// ORegistryServiceManager_Static
Sequence< OUString > DBContentLoader::getSupportedServiceNames_Static() throw( )
{
- Sequence< OUString > aSNS( 1 );
- aSNS[0] = "com.sun.star.frame.FrameLoader";
+ Sequence<OUString> aSNS { "com.sun.star.frame.FrameLoader" };
return aSNS;
}
diff --git a/dbaccess/source/sdbtools/connection/connectiontools.cxx b/dbaccess/source/sdbtools/connection/connectiontools.cxx
index 7dc78738bc48..b2c648f41922 100644
--- a/dbaccess/source/sdbtools/connection/connectiontools.cxx
+++ b/dbaccess/source/sdbtools/connection/connectiontools.cxx
@@ -119,8 +119,7 @@ namespace sdbtools
Sequence< OUString > SAL_CALL ConnectionTools::getSupportedServiceNames_static()
{
- Sequence< OUString > aSupported( 1 );
- aSupported[0] = "com.sun.star.sdb.tools.ConnectionTools";
+ Sequence<OUString> aSupported { "com.sun.star.sdb.tools.ConnectionTools" };
return aSupported;
}
diff --git a/dbaccess/source/ui/app/AppController.cxx b/dbaccess/source/ui/app/AppController.cxx
index 54ccc81c44c8..4fca0c824b0a 100644
--- a/dbaccess/source/ui/app/AppController.cxx
+++ b/dbaccess/source/ui/app/AppController.cxx
@@ -169,8 +169,7 @@ OUString OApplicationController::getImplementationName_Static() throw( RuntimeEx
Sequence< OUString> OApplicationController::getSupportedServiceNames_Static() throw( RuntimeException )
{
- Sequence< OUString> aSupported(1);
- aSupported[0] = "com.sun.star.sdb.application.DefaultViewController";
+ Sequence<OUString> aSupported { "com.sun.star.sdb.application.DefaultViewController" };
return aSupported;
}
diff --git a/dbaccess/source/ui/querydesign/querycontroller.cxx b/dbaccess/source/ui/querydesign/querycontroller.cxx
index ff47a4c63196..52c76f11ab38 100644
--- a/dbaccess/source/ui/querydesign/querycontroller.cxx
+++ b/dbaccess/source/ui/querydesign/querycontroller.cxx
@@ -120,8 +120,7 @@ namespace dbaui
}
static Sequence< OUString > getSupportedServiceNames_Static() throw( RuntimeException )
{
- Sequence< OUString> aSupported(1);
- aSupported.getArray()[0] = "com.sun.star.sdb.ViewDesign";
+ Sequence<OUString> aSupported { "com.sun.star.sdb.ViewDesign" };
return aSupported;
}
static Reference< XInterface > SAL_CALL Create(const Reference< XMultiServiceFactory >& _rM)
@@ -311,8 +310,7 @@ OUString OQueryController::getImplementationName_Static() throw( RuntimeExceptio
Sequence< OUString> OQueryController::getSupportedServiceNames_Static() throw( RuntimeException )
{
- Sequence< OUString> aSupported(1);
- aSupported.getArray()[0] = "com.sun.star.sdb.QueryDesign";
+ Sequence<OUString> aSupported { "com.sun.star.sdb.QueryDesign" };
return aSupported;
}
diff --git a/dbaccess/source/ui/relationdesign/RelationController.cxx b/dbaccess/source/ui/relationdesign/RelationController.cxx
index bb8c09feee30..29a71be5b36b 100644
--- a/dbaccess/source/ui/relationdesign/RelationController.cxx
+++ b/dbaccess/source/ui/relationdesign/RelationController.cxx
@@ -103,8 +103,7 @@ OUString ORelationController::getImplementationName_Static() throw( RuntimeExcep
Sequence< OUString> ORelationController::getSupportedServiceNames_Static() throw( RuntimeException )
{
- Sequence< OUString> aSupported(1);
- aSupported[0] = "com.sun.star.sdb.RelationDesign";
+ Sequence<OUString> aSupported { "com.sun.star.sdb.RelationDesign" };
return aSupported;
}
diff --git a/dbaccess/source/ui/tabledesign/TableController.cxx b/dbaccess/source/ui/tabledesign/TableController.cxx
index b923b2fef0a4..26e48f5e5b0f 100644
--- a/dbaccess/source/ui/tabledesign/TableController.cxx
+++ b/dbaccess/source/ui/tabledesign/TableController.cxx
@@ -123,8 +123,7 @@ OUString OTableController::getImplementationName_Static() throw( RuntimeExceptio
Sequence< OUString> OTableController::getSupportedServiceNames_Static() throw( RuntimeException )
{
- Sequence< OUString> aSupported(1);
- aSupported[0] = "com.sun.star.sdb.TableDesign";
+ Sequence<OUString> aSupported { "com.sun.star.sdb.TableDesign" };
return aSupported;
}
diff --git a/dtrans/source/cnttype/mctfentry.cxx b/dtrans/source/cnttype/mctfentry.cxx
index d869a7ec6e0b..81d71acdabe0 100644
--- a/dtrans/source/cnttype/mctfentry.cxx
+++ b/dtrans/source/cnttype/mctfentry.cxx
@@ -63,8 +63,7 @@ SAL_DLLPUBLIC_EXPORT void* SAL_CALL mcnttype_component_getFactory( const sal_Cha
if ( pSrvManager && ( 0 == rtl_str_compare( pImplName, MIMECONTENTTYPEFACTORY_IMPL_NAME ) ) )
{
- Sequence< OUString > aSNS( 1 );
- aSNS.getArray( )[0] = "com.sun.star.datatransfer.MimeContentTypeFactory";
+ Sequence<OUString> aSNS { "com.sun.star.datatransfer.MimeContentTypeFactory" };
Reference< XSingleServiceFactory > xFactory ( createSingleFactory(
static_cast< XMultiServiceFactory* > ( pSrvManager ),
diff --git a/embedserv/source/embed/register.cxx b/embedserv/source/embed/register.cxx
index ca092492e681..cd28a61d5470 100644
--- a/embedserv/source/embed/register.cxx
+++ b/embedserv/source/embed/register.cxx
@@ -51,8 +51,7 @@ OUString SAL_CALL EmbedServer_getImplementationName() throw()
uno::Sequence< OUString > SAL_CALL EmbedServer_getSupportedServiceNames() throw()
{
- uno::Sequence< OUString > aServiceNames( 1 );
- aServiceNames[0] = "com.sun.star.document.OleEmbeddedServerRegistration";
+ uno::Sequence<OUString> aServiceNames { "com.sun.star.document.OleEmbeddedServerRegistration" };
return aServiceNames;
}
diff --git a/extensions/source/plugin/base/manager.cxx b/extensions/source/plugin/base/manager.cxx
index 0fa54e367c12..21e354242acb 100644
--- a/extensions/source/plugin/base/manager.cxx
+++ b/extensions/source/plugin/base/manager.cxx
@@ -129,8 +129,7 @@ Sequence< OUString > XPluginManager_Impl::getSupportedServiceNames() throw( )
// XPluginManager_Impl
Sequence< OUString > XPluginManager_Impl::getSupportedServiceNames_Static() throw( )
{
- Sequence< OUString > aSNS( 1 );
- aSNS[0] = "com.sun.star.plugin.PluginManager";
+ Sequence<OUString> aSNS { "com.sun.star.plugin.PluginManager" };
return aSNS;
}
diff --git a/extensions/source/plugin/base/plmodel.cxx b/extensions/source/plugin/base/plmodel.cxx
index ee52e1c8c9a5..e3f3aed6e49c 100644
--- a/extensions/source/plugin/base/plmodel.cxx
+++ b/extensions/source/plugin/base/plmodel.cxx
@@ -56,8 +56,7 @@ Any PluginModel::queryAggregation( const Type& type ) throw( RuntimeException, s
// XPluginManager_Impl
Sequence< OUString > PluginModel::getSupportedServiceNames_Static() throw()
{
- Sequence< OUString > aSNS( 1 );
- aSNS[0] = "com.sun.star.plugin.PluginModel";
+ Sequence<OUString> aSNS { "com.sun.star.plugin.PluginModel" };
return aSNS;
}
diff --git a/extensions/source/propctrlr/buttonnavigationhandler.cxx b/extensions/source/propctrlr/buttonnavigationhandler.cxx
index 20f1a6b0e5af..c299604a98f3 100644
--- a/extensions/source/propctrlr/buttonnavigationhandler.cxx
+++ b/extensions/source/propctrlr/buttonnavigationhandler.cxx
@@ -63,8 +63,7 @@ namespace pcr
Sequence< OUString > SAL_CALL ButtonNavigationHandler::getSupportedServiceNames_static( ) throw (RuntimeException)
{
- Sequence< OUString > aSupported( 1 );
- aSupported[0] = "com.sun.star.form.inspection.ButtonNavigationHandler";
+ Sequence<OUString> aSupported { "com.sun.star.form.inspection.ButtonNavigationHandler" };
return aSupported;
}
diff --git a/extensions/source/propctrlr/cellbindinghandler.cxx b/extensions/source/propctrlr/cellbindinghandler.cxx
index 19d09d179d2c..1134d12401cb 100644
--- a/extensions/source/propctrlr/cellbindinghandler.cxx
+++ b/extensions/source/propctrlr/cellbindinghandler.cxx
@@ -64,8 +64,7 @@ namespace pcr
Sequence< OUString > SAL_CALL CellBindingPropertyHandler::getSupportedServiceNames_static( ) throw (RuntimeException)
{
- Sequence< OUString > aSupported( 1 );
- aSupported[0] = "com.sun.star.form.inspection.CellBindingPropertyHandler";
+ Sequence<OUString> aSupported { "com.sun.star.form.inspection.CellBindingPropertyHandler" };
return aSupported;
}
diff --git a/extensions/source/propctrlr/editpropertyhandler.cxx b/extensions/source/propctrlr/editpropertyhandler.cxx
index 65e9bbf0dbe1..940abbaf9a59 100644
--- a/extensions/source/propctrlr/editpropertyhandler.cxx
+++ b/extensions/source/propctrlr/editpropertyhandler.cxx
@@ -69,8 +69,7 @@ namespace pcr
Sequence< OUString > SAL_CALL EditPropertyHandler::getSupportedServiceNames_static( ) throw (RuntimeException)
{
- Sequence< OUString > aSupported( 1 );
- aSupported[0] = "com.sun.star.form.inspection.EditPropertyHandler";
+ Sequence<OUString> aSupported { "com.sun.star.form.inspection.EditPropertyHandler" };
return aSupported;
}
diff --git a/extensions/source/propctrlr/eformspropertyhandler.cxx b/extensions/source/propctrlr/eformspropertyhandler.cxx
index aa625d7b82ec..8d8e5143889b 100644
--- a/extensions/source/propctrlr/eformspropertyhandler.cxx
+++ b/extensions/source/propctrlr/eformspropertyhandler.cxx
@@ -78,8 +78,7 @@ namespace pcr
Sequence< OUString > SAL_CALL EFormsPropertyHandler::getSupportedServiceNames_static( ) throw (RuntimeException)
{
- Sequence< OUString > aSupported( 1 );
- aSupported[0] = "com.sun.star.form.inspection.XMLFormsPropertyHandler";
+ Sequence<OUString> aSupported { "com.sun.star.form.inspection.XMLFormsPropertyHandler" };
return aSupported;
}
diff --git a/extensions/source/propctrlr/eventhandler.cxx b/extensions/source/propctrlr/eventhandler.cxx
index cd501bb5638e..bfdc3d5cf286 100644
--- a/extensions/source/propctrlr/eventhandler.cxx
+++ b/extensions/source/propctrlr/eventhandler.cxx
@@ -491,8 +491,7 @@ namespace pcr
Sequence< OUString > SAL_CALL EventHandler::getSupportedServiceNames_static( ) throw (RuntimeException)
{
- Sequence< OUString > aSupported( 1 );
- aSupported[0] = "com.sun.star.form.inspection.EventHandler";
+ Sequence<OUString> aSupported { "com.sun.star.form.inspection.EventHandler" };
return aSupported;
}
diff --git a/extensions/source/propctrlr/formcomponenthandler.cxx b/extensions/source/propctrlr/formcomponenthandler.cxx
index db3c3bebf1d9..c853bcdfeba0 100644
--- a/extensions/source/propctrlr/formcomponenthandler.cxx
+++ b/extensions/source/propctrlr/formcomponenthandler.cxx
@@ -169,8 +169,7 @@ namespace pcr
Sequence< OUString > SAL_CALL FormComponentPropertyHandler::getSupportedServiceNames_static( ) throw (RuntimeException)
{
- Sequence< OUString > aSupported( 1 );
- aSupported[0] = "com.sun.star.form.inspection.FormComponentPropertyHandler";
+ Sequence<OUString> aSupported { "com.sun.star.form.inspection.FormComponentPropertyHandler" };
return aSupported;
}
diff --git a/extensions/source/propctrlr/formgeometryhandler.cxx b/extensions/source/propctrlr/formgeometryhandler.cxx
index 3370c443ee54..961b6bc18763 100644
--- a/extensions/source/propctrlr/formgeometryhandler.cxx
+++ b/extensions/source/propctrlr/formgeometryhandler.cxx
@@ -317,8 +317,7 @@ namespace pcr
Sequence< OUString > SAL_CALL FormGeometryHandler::getSupportedServiceNames_static( ) throw (RuntimeException)
{
- Sequence< OUString > aSupported( 1 );
- aSupported[0] = "com.sun.star.form.inspection.FormGeometryHandler";
+ Sequence<OUString> aSupported { "com.sun.star.form.inspection.FormGeometryHandler" };
return aSupported;
}
diff --git a/extensions/source/propctrlr/genericpropertyhandler.cxx b/extensions/source/propctrlr/genericpropertyhandler.cxx
index 857dc031bd3a..f76b07c3bf92 100644
--- a/extensions/source/propctrlr/genericpropertyhandler.cxx
+++ b/extensions/source/propctrlr/genericpropertyhandler.cxx
@@ -288,8 +288,7 @@ namespace pcr
Sequence< OUString > SAL_CALL GenericPropertyHandler::getSupportedServiceNames_static( ) throw (RuntimeException)
{
- Sequence< OUString > aSupported( 1 );
- aSupported[0] = "com.sun.star.inspection.GenericPropertyHandler";
+ Sequence<OUString> aSupported { "com.sun.star.inspection.GenericPropertyHandler" };
return aSupported;
}
diff --git a/extensions/source/propctrlr/submissionhandler.cxx b/extensions/source/propctrlr/submissionhandler.cxx
index d0f44a9ceed2..3c37ad044a03 100644
--- a/extensions/source/propctrlr/submissionhandler.cxx
+++ b/extensions/source/propctrlr/submissionhandler.cxx
@@ -112,8 +112,7 @@ namespace pcr
Sequence< OUString > SAL_CALL SubmissionPropertyHandler::getSupportedServiceNames_static( ) throw (RuntimeException)
{
- Sequence< OUString > aSupported( 1 );
- aSupported[0] = "com.sun.star.form.inspection.SubmissionPropertyHandler";
+ Sequence<OUString> aSupported { "com.sun.star.form.inspection.SubmissionPropertyHandler" };
return aSupported;
}
diff --git a/extensions/source/propctrlr/xsdvalidationpropertyhandler.cxx b/extensions/source/propctrlr/xsdvalidationpropertyhandler.cxx
index 3f9db2d982f4..f5cb77f6839d 100644
--- a/extensions/source/propctrlr/xsdvalidationpropertyhandler.cxx
+++ b/extensions/source/propctrlr/xsdvalidationpropertyhandler.cxx
@@ -93,8 +93,7 @@ namespace pcr
Sequence< OUString > SAL_CALL XSDValidationPropertyHandler::getSupportedServiceNames_static( ) throw (RuntimeException)
{
- Sequence< OUString > aSupported( 1 );
- aSupported[0] = "com.sun.star.form.inspection.XSDValidationPropertyHandler";
+ Sequence<OUString> aSupported { "com.sun.star.form.inspection.XSDValidationPropertyHandler" };
return aSupported;
}
diff --git a/formula/source/core/api/FormulaOpCodeMapperObj.cxx b/formula/source/core/api/FormulaOpCodeMapperObj.cxx
index eec37dfd23f7..ceb934c0aa19 100644
--- a/formula/source/core/api/FormulaOpCodeMapperObj.cxx
+++ b/formula/source/core/api/FormulaOpCodeMapperObj.cxx
@@ -100,8 +100,7 @@ uno::Sequence< OUString > SAL_CALL FormulaOpCodeMapperObj::getSupportedServiceNa
}
uno::Sequence< OUString > SAL_CALL FormulaOpCodeMapperObj::getSupportedServiceNames_Static()
{
- uno::Sequence< OUString > aSeq( 1 );
- aSeq[0] = "com.sun.star.sheet.FormulaOpCodeMapper";
+ uno::Sequence<OUString> aSeq { "com.sun.star.sheet.FormulaOpCodeMapper" };
return aSeq;
}
diff --git a/fpicker/source/aqua/FPentry.mm b/fpicker/source/aqua/FPentry.mm
index fbb9c0ca2507..ffbf21884f66 100644
--- a/fpicker/source/aqua/FPentry.mm
+++ b/fpicker/source/aqua/FPentry.mm
@@ -60,8 +60,7 @@ SAL_DLLPUBLIC_EXPORT void* SAL_CALL fps_aqua_component_getFactory(
if (0 == rtl_str_compare(pImplName, FILE_PICKER_IMPL_NAME))
{
- Sequence< OUString > aSNS( 1 );
- aSNS.getArray( )[0] = FILE_PICKER_SERVICE_NAME;
+ Sequence<OUString> aSNS { FILE_PICKER_SERVICE_NAME };
xFactory = createSingleFactory(
static_cast< XMultiServiceFactory* > ( pSrvManager ),
@@ -71,8 +70,7 @@ SAL_DLLPUBLIC_EXPORT void* SAL_CALL fps_aqua_component_getFactory(
}
else if (0 == rtl_str_compare(pImplName, FOLDER_PICKER_IMPL_NAME))
{
- Sequence< OUString > aSNS( 1 );
- aSNS.getArray( )[0] = FOLDER_PICKER_SERVICE_NAME;
+ Sequence<OUString> aSNS { FOLDER_PICKER_SERVICE_NAME };
xFactory = createSingleFactory(
static_cast< XMultiServiceFactory* > ( pSrvManager ),
diff --git a/fpicker/source/office/RemoteFilesDialog.cxx b/fpicker/source/office/RemoteFilesDialog.cxx
index ba5d5bdf6b0b..b5de1d9cde94 100644
--- a/fpicker/source/office/RemoteFilesDialog.cxx
+++ b/fpicker/source/office/RemoteFilesDialog.cxx
@@ -706,8 +706,7 @@ void RemoteFilesDialog::SavePassword( const OUString& rURL, const OUString& rUse
InteractionHandler::createWithParent( m_xContext, nullptr ),
UNO_QUERY );
- Sequence< OUString > aPasswd( 1 );
- aPasswd[0] = rPassword;
+ Sequence<OUString> aPasswd { rPassword };
if( bPersistent )
m_xMasterPasswd->addPersistent(
@@ -901,8 +900,7 @@ IMPL_LINK_TYPED ( RemoteFilesDialog, EditServiceMenuHdl, MenuButton *, pButton,
if ( pPasswordRequest->isPassword() )
{
OUString aNewPass = pPasswordRequest->getPassword();
- Sequence< OUString > aPasswd( 1 );
- aPasswd[0] = aNewPass;
+ Sequence<OUString> aPasswd { aNewPass };
m_xMasterPasswd->addPersistent(
sUrl, sUserName, aPasswd, xInteractionHandler );
diff --git a/fpicker/source/win32/filepicker/FPentry.cxx b/fpicker/source/win32/filepicker/FPentry.cxx
index 2461d58b2be2..2ee969cb63da 100644
--- a/fpicker/source/win32/filepicker/FPentry.cxx
+++ b/fpicker/source/win32/filepicker/FPentry.cxx
@@ -94,8 +94,7 @@ SAL_DLLPUBLIC_EXPORT void* SAL_CALL fps_win32_component_getFactory(
if ( pSrvManager && ( 0 == rtl_str_compare( pImplName, FILE_PICKER_IMPL_NAME ) ) )
{
- Sequence< OUString > aSNS( 1 );
- aSNS.getArray( )[0] = FILE_PICKER_SERVICE_NAME;
+ Sequence<OUString> aSNS { FILE_PICKER_SERVICE_NAME };
Reference< XSingleServiceFactory > xFactory ( createSingleFactory(
reinterpret_cast< XMultiServiceFactory* > ( pSrvManager ),
@@ -111,8 +110,7 @@ SAL_DLLPUBLIC_EXPORT void* SAL_CALL fps_win32_component_getFactory(
if ( pSrvManager && ( 0 == rtl_str_compare( pImplName, FOLDER_PICKER_IMPL_NAME ) ) )
{
- Sequence< OUString > aSNS( 1 );
- aSNS.getArray( )[0] = FOLDER_PICKER_SERVICE_NAME;
+ Sequence<OUString> aSNS { FOLDER_PICKER_SERVICE_NAME };
Reference< XSingleServiceFactory > xFactory ( createSingleFactory(
reinterpret_cast< XMultiServiceFactory* > ( pSrvManager ),
diff --git a/framework/source/dispatch/popupmenudispatcher.cxx b/framework/source/dispatch/popupmenudispatcher.cxx
index c53e5ed54d35..3723f324f77f 100644
--- a/framework/source/dispatch/popupmenudispatcher.cxx
+++ b/framework/source/dispatch/popupmenudispatcher.cxx
@@ -91,8 +91,7 @@ css::uno::Sequence< OUString > SAL_CALL PopupMenuDispatcher::getSupportedService
css::uno::Sequence< OUString > PopupMenuDispatcher::impl_getStaticSupportedServiceNames()
{
- css::uno::Sequence< OUString > seqServiceNames( 1 );
- seqServiceNames.getArray() [0] = SERVICENAME_PROTOCOLHANDLER;
+ css::uno::Sequence<OUString> seqServiceNames { SERVICENAME_PROTOCOLHANDLER };
return seqServiceNames;
}
diff --git a/framework/source/fwe/classes/actiontriggerpropertyset.cxx b/framework/source/fwe/classes/actiontriggerpropertyset.cxx
index acfe55be90e2..969bab6e73ff 100644
--- a/framework/source/fwe/classes/actiontriggerpropertyset.cxx
+++ b/framework/source/fwe/classes/actiontriggerpropertyset.cxx
@@ -112,8 +112,7 @@ throw ( RuntimeException, std::exception )
Sequence< OUString > SAL_CALL ActionTriggerPropertySet::getSupportedServiceNames()
throw ( RuntimeException, std::exception )
{
- Sequence< OUString > seqServiceNames( 1 );
- seqServiceNames[0] = SERVICENAME_ACTIONTRIGGER;
+ Sequence<OUString> seqServiceNames { SERVICENAME_ACTIONTRIGGER };
return seqServiceNames;
}
diff --git a/framework/source/fwe/classes/actiontriggerseparatorpropertyset.cxx b/framework/source/fwe/classes/actiontriggerseparatorpropertyset.cxx
index be02ec2b1bc7..20cf8aabdf7f 100644
--- a/framework/source/fwe/classes/actiontriggerseparatorpropertyset.cxx
+++ b/framework/source/fwe/classes/actiontriggerseparatorpropertyset.cxx
@@ -105,8 +105,7 @@ throw ( RuntimeException, std::exception )
Sequence< OUString > SAL_CALL ActionTriggerSeparatorPropertySet::getSupportedServiceNames()
throw ( RuntimeException, std::exception )
{
- Sequence< OUString > seqServiceNames( 1 );
- seqServiceNames[0] = SERVICENAME_ACTIONTRIGGERSEPARATOR;
+ Sequence<OUString> seqServiceNames { SERVICENAME_ACTIONTRIGGERSEPARATOR };
return seqServiceNames;
}
diff --git a/framework/source/fwe/classes/addonsoptions.cxx b/framework/source/fwe/classes/addonsoptions.cxx
index b64cc898f984..ee5af2e0d8cb 100644
--- a/framework/source/fwe/classes/addonsoptions.cxx
+++ b/framework/source/fwe/classes/addonsoptions.cxx
@@ -369,8 +369,7 @@ AddonsOptions_Impl::AddonsOptions_Impl()
// Enable notification mechanism of our baseclass.
// We need it to get information about changes outside these class on our used configuration keys!
- Sequence< OUString > aNotifySeq( 1 );
- aNotifySeq[0] = "AddonUI";
+ Sequence<OUString> aNotifySeq { "AddonUI" };
EnableNotification( aNotifySeq );
}
diff --git a/framework/source/services/substitutepathvars.cxx b/framework/source/services/substitutepathvars.cxx
index 2046631b0e0b..7ddb1648817a 100644
--- a/framework/source/services/substitutepathvars.cxx
+++ b/framework/source/services/substitutepathvars.cxx
@@ -402,8 +402,7 @@ SubstitutePathVariables_Impl::SubstitutePathVariables_Impl() :
{
// Enable notification mechanism
// We need it to get information about changes outside these class on our configuration branch
- Sequence< OUString > aNotifySeq( 1 );
- aNotifySeq[0] = "SharePoints";
+ Sequence<OUString> aNotifySeq { "SharePoints" };
EnableNotification( aNotifySeq, true );
}
@@ -656,8 +655,7 @@ void SubstitutePathVariables_Impl::ReadSharePointRuleSetFromConfiguration(
aDirProperty += m_aDirPropertyName;
// Read only the directory property
- Sequence< OUString > aDirPropertySeq( 1 );
- aDirPropertySeq[0] = aDirProperty;
+ Sequence<OUString> aDirPropertySeq { aDirProperty };
Sequence< Any > aValueSeq = GetProperties( aDirPropertySeq );
if ( aValueSeq.getLength() == 1 )
diff --git a/framework/source/uielement/subtoolbarcontroller.cxx b/framework/source/uielement/subtoolbarcontroller.cxx
index 4588c6a311da..c548afa0ab68 100644
--- a/framework/source/uielement/subtoolbarcontroller.cxx
+++ b/framework/source/uielement/subtoolbarcontroller.cxx
@@ -450,8 +450,7 @@ sal_Bool SubToolBarController::supportsService( const OUString& rServiceName )
css::uno::Sequence< OUString > SubToolBarController::getSupportedServiceNames()
throw ( css::uno::RuntimeException )
{
- css::uno::Sequence< OUString > aRet( 1 );
- aRet[0] = "com.sun.star.frame.ToolbarController";
+ css::uno::Sequence<OUString> aRet { "com.sun.star.frame.ToolbarController" };
return aRet;
}
diff --git a/framework/source/uielement/thesaurusmenucontroller.cxx b/framework/source/uielement/thesaurusmenucontroller.cxx
index b9457d72e1c9..8c1111b94869 100644
--- a/framework/source/uielement/thesaurusmenucontroller.cxx
+++ b/framework/source/uielement/thesaurusmenucontroller.cxx
@@ -202,8 +202,7 @@ OUString ThesaurusMenuController::getImplementationName()
css::uno::Sequence< OUString > ThesaurusMenuController::getSupportedServiceNames()
throw ( css::uno::RuntimeException, std::exception )
{
- css::uno::Sequence< OUString > aRet( 1 );
- aRet[0] = "com.sun.star.frame.PopupMenuController";
+ css::uno::Sequence<OUString> aRet { "com.sun.star.frame.PopupMenuController" };
return aRet;
}
diff --git a/linguistic/source/convdiclist.cxx b/linguistic/source/convdiclist.cxx
index 7c6bd23dbbe8..305b51c7ffc5 100644
--- a/linguistic/source/convdiclist.cxx
+++ b/linguistic/source/convdiclist.cxx
@@ -610,8 +610,7 @@ uno::Sequence< OUString > SAL_CALL ConvDicList::getSupportedServiceNames()
uno::Sequence< OUString > ConvDicList::getSupportedServiceNames_Static()
throw()
{
- uno::Sequence< OUString > aSNS( 1 );
- aSNS.getArray()[0] = SN_CONV_DICTIONARY_LIST;
+ uno::Sequence<OUString> aSNS { SN_CONV_DICTIONARY_LIST };
return aSNS;
}
diff --git a/linguistic/source/gciterator.cxx b/linguistic/source/gciterator.cxx
index 3e5cb556d66a..50d2bf50ac5c 100644
--- a/linguistic/source/gciterator.cxx
+++ b/linguistic/source/gciterator.cxx
@@ -1139,8 +1139,7 @@ static OUString GrammarCheckingIterator_getImplementationName() throw()
static uno::Sequence< OUString > GrammarCheckingIterator_getSupportedServiceNames() throw()
{
- uno::Sequence< OUString > aSNS( 1 );
- aSNS[0] = "com.sun.star.linguistic2.ProofreadingIterator";
+ uno::Sequence<OUString> aSNS { "com.sun.star.linguistic2.ProofreadingIterator" };
return aSNS;
}
diff --git a/package/source/xstor/xstorage.cxx b/package/source/xstor/xstorage.cxx
index 5a275fc177c5..0ce08dffbd84 100644
--- a/package/source/xstor/xstorage.cxx
+++ b/package/source/xstor/xstorage.cxx
@@ -118,8 +118,7 @@ void OStorage_Impl::completeStorageStreamCopy_Impl(
// TODO: headers of encripted streams should be copied also
::comphelper::OStorageHelper::CopyInputToOutput( xSourceInStream, xDestOutStream );
- uno::Sequence< OUString > aPropNames( 1 );
- aPropNames[0] = "Compressed";
+ uno::Sequence<OUString> aPropNames { "Compressed" };
if ( nStorageType == embed::StorageFormats::PACKAGE )
{
diff --git a/package/source/zippackage/ZipPackage.cxx b/package/source/zippackage/ZipPackage.cxx
index f0b61e64cdec..1fe2cffbae9e 100644
--- a/package/source/zippackage/ZipPackage.cxx
+++ b/package/source/zippackage/ZipPackage.cxx
@@ -1634,8 +1634,7 @@ OUString ZipPackage::static_getImplementationName()
Sequence< OUString > ZipPackage::static_getSupportedServiceNames()
{
- uno::Sequence< OUString > aNames( 1 );
- aNames[0] = "com.sun.star.packages.Package";
+ uno::Sequence<OUString> aNames { "com.sun.star.packages.Package" };
return aNames;
}
diff --git a/package/source/zippackage/ZipPackageStream.cxx b/package/source/zippackage/ZipPackageStream.cxx
index f99fbda5bbc3..0b4cf3f5990f 100644
--- a/package/source/zippackage/ZipPackageStream.cxx
+++ b/package/source/zippackage/ZipPackageStream.cxx
@@ -1382,8 +1382,7 @@ OUString ZipPackageStream::getImplementationName()
Sequence< OUString > ZipPackageStream::getSupportedServiceNames()
throw ( RuntimeException, std::exception )
{
- Sequence< OUString > aNames( 1 );
- aNames[0] = "com.sun.star.packages.PackageStream";
+ Sequence<OUString> aNames { "com.sun.star.packages.PackageStream" };
return aNames;
}
diff --git a/reportdesign/source/core/api/Group.cxx b/reportdesign/source/core/api/Group.cxx
index bf218eade1cf..fb62e431630d 100644
--- a/reportdesign/source/core/api/Group.cxx
+++ b/reportdesign/source/core/api/Group.cxx
@@ -66,8 +66,7 @@ OUString SAL_CALL OGroup::getImplementationName( ) throw(uno::RuntimeException,
uno::Sequence< OUString> OGroup::getSupportedServiceNames_Static() throw( uno::RuntimeException )
{
- uno::Sequence< OUString> aSupported(1);
- aSupported.getArray()[0] = SERVICE_GROUP;
+ uno::Sequence<OUString> aSupported { SERVICE_GROUP };
return aSupported;
}
diff --git a/reportdesign/source/core/api/Section.cxx b/reportdesign/source/core/api/Section.cxx
index e5f1534f4799..f203f890fe4b 100644
--- a/reportdesign/source/core/api/Section.cxx
+++ b/reportdesign/source/core/api/Section.cxx
@@ -179,8 +179,7 @@ OUString SAL_CALL OSection::getImplementationName( ) throw(uno::RuntimeExceptio
uno::Sequence< OUString> OSection::getSupportedServiceNames_Static() throw( uno::RuntimeException )
{
- uno::Sequence< OUString> aSupported(1);
- aSupported.getArray()[0] = SERVICE_SECTION;
+ uno::Sequence<OUString> aSupported { SERVICE_SECTION };
return aSupported;
}
diff --git a/reportdesign/source/filter/xml/dbloader2.cxx b/reportdesign/source/filter/xml/dbloader2.cxx
index b193f60b2b97..27cf78f34dd1 100644
--- a/reportdesign/source/filter/xml/dbloader2.cxx
+++ b/reportdesign/source/filter/xml/dbloader2.cxx
@@ -106,8 +106,7 @@ Sequence< OUString > SAL_CALL ORptTypeDetection::getSupportedServiceNames() thro
// ORegistryServiceManager_Static
Sequence< OUString > ORptTypeDetection::getSupportedServiceNames_Static() throw( RuntimeException )
{
- Sequence< OUString > aSNS( 1 );
- aSNS[0] = "com.sun.star.document.ExtendedTypeDetection";
+ Sequence<OUString> aSNS { "com.sun.star.document.ExtendedTypeDetection" };
return aSNS;
}
diff --git a/reportdesign/source/ui/misc/statusbarcontroller.cxx b/reportdesign/source/ui/misc/statusbarcontroller.cxx
index 4bd397eba5b7..4d3a5fd67de7 100644
--- a/reportdesign/source/ui/misc/statusbarcontroller.cxx
+++ b/reportdesign/source/ui/misc/statusbarcontroller.cxx
@@ -52,8 +52,7 @@ OUString OStatusbarController::getImplementationName_Static() throw( RuntimeExce
Sequence< OUString> OStatusbarController::getSupportedServiceNames_Static() throw( RuntimeException )
{
- Sequence< OUString> aSupported(1);
- aSupported[0] = "com.sun.star.frame.StatusbarController";
+ Sequence<OUString> aSupported { "com.sun.star.frame.StatusbarController" };
return aSupported;
}
diff --git a/reportdesign/source/ui/misc/toolboxcontroller.cxx b/reportdesign/source/ui/misc/toolboxcontroller.cxx
index d13d1956e848..6589bf28e5ec 100644
--- a/reportdesign/source/ui/misc/toolboxcontroller.cxx
+++ b/reportdesign/source/ui/misc/toolboxcontroller.cxx
@@ -66,8 +66,7 @@ OUString OToolboxController::getImplementationName_Static() throw( RuntimeExcept
Sequence< OUString> OToolboxController::getSupportedServiceNames_Static() throw( RuntimeException )
{
- Sequence< OUString> aSupported(1);
- aSupported[0] = "com.sun.star.report.ReportToolboxController";
+ Sequence<OUString> aSupported { "com.sun.star.report.ReportToolboxController" };
return aSupported;
}
diff --git a/reportdesign/source/ui/report/ReportController.cxx b/reportdesign/source/ui/report/ReportController.cxx
index 3235aa69fafb..15b667931407 100644
--- a/reportdesign/source/ui/report/ReportController.cxx
+++ b/reportdesign/source/ui/report/ReportController.cxx
@@ -267,8 +267,7 @@ OUString OReportController::getImplementationName_Static() throw( RuntimeExcepti
Sequence< OUString> OReportController::getSupportedServiceNames_Static() throw( RuntimeException )
{
- Sequence< OUString> aSupported(1);
- aSupported[0] = "com.sun.star.sdb.ReportDesign";
+ Sequence<OUString> aSupported { "com.sun.star.sdb.ReportDesign" };
return aSupported;
}
diff --git a/sc/source/ui/unoobj/unodoc.cxx b/sc/source/ui/unoobj/unodoc.cxx
index a5f99b2af757..641d556feb79 100644
--- a/sc/source/ui/unoobj/unodoc.cxx
+++ b/sc/source/ui/unoobj/unodoc.cxx
@@ -38,8 +38,7 @@ OUString SAL_CALL ScDocument_getImplementationName() throw()
uno::Sequence< OUString > SAL_CALL ScDocument_getSupportedServiceNames() throw()
{
- uno::Sequence< OUString > aSeq( 1 );
- aSeq[0] = "com.sun.star.sheet.SpreadsheetDocument";
+ uno::Sequence<OUString> aSeq { "com.sun.star.sheet.SpreadsheetDocument" };
return aSeq;
}
diff --git a/sd/source/ui/controller/slidelayoutcontroller.cxx b/sd/source/ui/controller/slidelayoutcontroller.cxx
index afabd0f17808..da1160d01acf 100644
--- a/sd/source/ui/controller/slidelayoutcontroller.cxx
+++ b/sd/source/ui/controller/slidelayoutcontroller.cxx
@@ -318,8 +318,7 @@ OUString SlideLayoutController_getImplementationName() throw (css::uno::RuntimeE
Sequence< OUString > SlideLayoutController_getSupportedServiceNames() throw( RuntimeException )
{
- Sequence< OUString > aSNS( 1 );
- aSNS.getArray()[0] = "com.sun.star.frame.ToolbarController";
+ Sequence<OUString> aSNS { "com.sun.star.frame.ToolbarController" };
return aSNS;
}
@@ -330,8 +329,7 @@ OUString InsertSlideController_getImplementationName() throw (css::uno::RuntimeE
Sequence< OUString > InsertSlideController_getSupportedServiceNames() throw( RuntimeException )
{
- Sequence< OUString > aSNS( 1 );
- aSNS.getArray()[0] = "com.sun.star.frame.ToolbarController";
+ Sequence<OUString> aSNS { "com.sun.star.frame.ToolbarController" };
return aSNS;
}
diff --git a/sd/source/ui/unoidl/unomodule.cxx b/sd/source/ui/unoidl/unomodule.cxx
index f91854e1989c..c4a0a0eb7c0b 100644
--- a/sd/source/ui/unoidl/unomodule.cxx
+++ b/sd/source/ui/unoidl/unomodule.cxx
@@ -123,8 +123,7 @@ sal_Bool SAL_CALL SdUnoModule::supportsService( const OUString& sServiceName ) t
uno::Sequence< OUString > SAL_CALL SdUnoModule::getSupportedServiceNames( ) throw(uno::RuntimeException, std::exception)
{
- uno::Sequence< OUString > aSeq( 1 );
- aSeq[0] = "com.sun.star.drawing.ModuleDispatcher";
+ uno::Sequence<OUString> aSeq { "com.sun.star.drawing.ModuleDispatcher" };
return aSeq;
}
diff --git a/sfx2/source/appl/helpinterceptor.cxx b/sfx2/source/appl/helpinterceptor.cxx
index db7d2831b90a..cb7c58680a44 100644
--- a/sfx2/source/appl/helpinterceptor.cxx
+++ b/sfx2/source/appl/helpinterceptor.cxx
@@ -219,8 +219,7 @@ Sequence< OUString > SAL_CALL HelpInterceptor_Impl::getInterceptedURLs()
throw( RuntimeException, std::exception )
{
- Sequence< OUString > aURLList( 1 );
- aURLList[0] = "vnd.sun.star.help://*";
+ Sequence<OUString> aURLList { "vnd.sun.star.help://*" };
return aURLList;
}
diff --git a/sfx2/source/appl/imagemgr.cxx b/sfx2/source/appl/imagemgr.cxx
index 9d38ad5930e2..b7819f3efc4a 100644
--- a/sfx2/source/appl/imagemgr.cxx
+++ b/sfx2/source/appl/imagemgr.cxx
@@ -122,8 +122,7 @@ Image SAL_CALL GetImage(
if ( xDocImgMgr.is() )
{
Sequence< Reference< css::graphic::XGraphic > > aGraphicSeq;
- Sequence< OUString > aImageCmdSeq( 1 );
- aImageCmdSeq[0] = aCommandURL;
+ Sequence<OUString> aImageCmdSeq { aCommandURL };
try
{
@@ -181,8 +180,7 @@ Image SAL_CALL GetImage(
}
Sequence< Reference< css::graphic::XGraphic > > aGraphicSeq;
- Sequence< OUString > aImageCmdSeq( 1 );
- aImageCmdSeq[0] = aCommandURL;
+ Sequence<OUString> aImageCmdSeq { aCommandURL };
aGraphicSeq = xModuleImageManager->getImages( nImageType, aImageCmdSeq );
diff --git a/shell/source/win32/workbench/TestSmplMail.cxx b/shell/source/win32/workbench/TestSmplMail.cxx
index 9067b2866f9b..a33e7a81d4f2 100644
--- a/shell/source/win32/workbench/TestSmplMail.cxx
+++ b/shell/source/win32/workbench/TestSmplMail.cxx
@@ -108,13 +108,11 @@ int SAL_CALL main(int , char*, char* )
xSmplMailMsg->setRecipient( OUString("tino.rachui@germany.sun.com") );
xSmplMailMsg->setOriginator( OUString("tino.rachui@germany.sun.com") );
- Sequence< OUString > ccRecips( 1 );
- ccRecips[0] = "tino.rachui@germany.sun.com";
+ Sequence<OUString> ccRecips { "tino.rachui@germany.sun.com" };
xSmplMailMsg->setCcRecipient( ccRecips );
- Sequence< OUString > bccRecips( 1 );
- bccRecips[0] = "tino.rachui@germany.sun.com";
+ Sequence<OUString> bccRecips { "tino.rachui@germany.sun.com" };
xSmplMailMsg->setBccRecipient( bccRecips );
diff --git a/stoc/source/security/access_controller.cxx b/stoc/source/security/access_controller.cxx
index 7ad6b3ec74a4..31bac05019a9 100644
--- a/stoc/source/security/access_controller.cxx
+++ b/stoc/source/security/access_controller.cxx
@@ -911,8 +911,7 @@ sal_Bool AccessController::supportsService( OUString const & serviceName )
Sequence< OUString > AccessController::getSupportedServiceNames()
throw (RuntimeException, std::exception)
{
- Sequence< OUString > aSNS( 1 );
- aSNS[0] = SERVICE_NAME;
+ Sequence<OUString> aSNS { SERVICE_NAME };
return aSNS;
}
diff --git a/stoc/source/security/file_policy.cxx b/stoc/source/security/file_policy.cxx
index 1da39f41e972..2e5095a934e9 100644
--- a/stoc/source/security/file_policy.cxx
+++ b/stoc/source/security/file_policy.cxx
@@ -509,8 +509,7 @@ sal_Bool FilePolicy::supportsService( OUString const & serviceName )
Sequence< OUString > FilePolicy::getSupportedServiceNames()
throw (RuntimeException, std::exception)
{
- Sequence< OUString > aSNS( 1 );
- aSNS[0] = "com.sun.star.security.Policy";
+ Sequence<OUString> aSNS { "com.sun.star.security.Policy" };
return aSNS;
}
diff --git a/svl/source/fsstor/fsstorage.cxx b/svl/source/fsstor/fsstorage.cxx
index bb70c8c7a1a8..01cb71453c5c 100644
--- a/svl/source/fsstor/fsstorage.cxx
+++ b/svl/source/fsstor/fsstorage.cxx
@@ -1016,8 +1016,7 @@ uno::Sequence< OUString > SAL_CALL FSStorage::getElementNames()
if ( !GetContent() )
throw io::IOException(); // TODO: error handling
- uno::Sequence< OUString > aProps( 1 );
- aProps[0] = "Title";
+ uno::Sequence<OUString> aProps { "Title" };
::ucbhelper::ResultSetInclude eInclude = ::ucbhelper::INCLUDE_FOLDERS_AND_DOCUMENTS;
sal_Int32 nSize = 0;
@@ -1122,8 +1121,7 @@ sal_Bool SAL_CALL FSStorage::hasElements()
if ( !GetContent() )
throw io::IOException(); // TODO: error handling
- uno::Sequence< OUString > aProps( 1 );
- aProps[0] = "TargetURL";
+ uno::Sequence<OUString> aProps { "TargetURL" };
::ucbhelper::ResultSetInclude eInclude = ::ucbhelper::INCLUDE_FOLDERS_AND_DOCUMENTS;
uno::Reference< sdbc::XResultSet > xResultSet = GetContent()->createCursor( aProps, eInclude );
diff --git a/svl/source/passwordcontainer/passwordcontainer.cxx b/svl/source/passwordcontainer/passwordcontainer.cxx
index 2c41772352c8..fde28a2195c7 100644
--- a/svl/source/passwordcontainer/passwordcontainer.cxx
+++ b/svl/source/passwordcontainer/passwordcontainer.cxx
@@ -265,8 +265,7 @@ void StorageItem::setUseStorage( bool bUse )
bool StorageItem::useStorage()
{
- Sequence< OUString > aNodeNames( 1 );
- aNodeNames[0] = "UseStorage";
+ Sequence<OUString> aNodeNames { "UseStorage" };
Sequence< Any > aPropertyValues = ConfigItem::GetProperties( aNodeNames );
diff --git a/svtools/source/dialogs/ServerDetailsControls.cxx b/svtools/source/dialogs/ServerDetailsControls.cxx
index dc84d71146f0..3529de24fbd7 100644
--- a/svtools/source/dialogs/ServerDetailsControls.cxx
+++ b/svtools/source/dialogs/ServerDetailsControls.cxx
@@ -440,8 +440,7 @@ IMPL_LINK_NOARG_TYPED( CmisDetailsContainer, RefreshReposHdl, Button*, void )
InteractionHandler::createWithParent( xContext, nullptr ),
UNO_QUERY );
- Sequence< OUString > aPasswd( 1 );
- aPasswd[0] = m_sPassword;
+ Sequence<OUString> aPasswd { m_sPassword };
xMasterPasswd->add(
sUrl, m_sUsername, aPasswd, xInteractionHandler );
@@ -452,8 +451,7 @@ IMPL_LINK_NOARG_TYPED( CmisDetailsContainer, RefreshReposHdl, Button*, void )
// Get the Content
::ucbhelper::Content aCnt( sUrl, m_xCmdEnv, comphelper::getProcessComponentContext() );
- Sequence< OUString > aProps( 1 );
- aProps[0] = "Title";
+ Sequence<OUString> aProps { "Title" };
try
{
diff --git a/svtools/source/uno/contextmenuhelper.cxx b/svtools/source/uno/contextmenuhelper.cxx
index 3ea93dbd90e7..3ae2b5b10129 100644
--- a/svtools/source/uno/contextmenuhelper.cxx
+++ b/svtools/source/uno/contextmenuhelper.cxx
@@ -462,8 +462,7 @@ ContextMenuHelper::getImageFromCommandURL( const OUString& aCmdURL ) const
ui::ImageType::SIZE_DEFAULT );
uno::Sequence< uno::Reference< graphic::XGraphic > > aGraphicSeq;
- uno::Sequence< OUString > aImageCmdSeq( 1 );
- aImageCmdSeq[0] = aCmdURL;
+ uno::Sequence<OUString> aImageCmdSeq { aCmdURL };
if ( m_xDocImageMgr.is() )
{
diff --git a/svx/source/form/xfm_addcondition.cxx b/svx/source/form/xfm_addcondition.cxx
index b9727fc950c1..d65eff71b535 100644
--- a/svx/source/form/xfm_addcondition.cxx
+++ b/svx/source/form/xfm_addcondition.cxx
@@ -53,8 +53,7 @@ namespace svxform
Sequence< OUString > SAL_CALL OAddConditionDialog_GetSupportedServiceNames()
{
- css::uno::Sequence<OUString> aSupported( 1 );
- aSupported.getArray()[0] = "com.sun.star.xforms.ui.dialogs.AddCondition";
+ css::uno::Sequence<OUString> aSupported { "com.sun.star.xforms.ui.dialogs.AddCondition" };
return aSupported;
}
diff --git a/svx/source/tbxctrls/bulletsnumbering.cxx b/svx/source/tbxctrls/bulletsnumbering.cxx
index 305f3a3af5ed..92896cc74081 100644
--- a/svx/source/tbxctrls/bulletsnumbering.cxx
+++ b/svx/source/tbxctrls/bulletsnumbering.cxx
@@ -262,8 +262,7 @@ OUString SAL_CALL NumberingToolBoxControl::getImplementationName()
css::uno::Sequence< OUString > SAL_CALL NumberingToolBoxControl::getSupportedServiceNames()
throw ( css::uno::RuntimeException, std::exception )
{
- css::uno::Sequence< OUString > aRet( 1 );
- aRet[0] = "com.sun.star.frame.ToolbarController";
+ css::uno::Sequence<OUString> aRet { "com.sun.star.frame.ToolbarController" };
return aRet;
}
diff --git a/svx/source/tbxctrls/extrusioncontrols.cxx b/svx/source/tbxctrls/extrusioncontrols.cxx
index 0d68e606dba5..80bda78901aa 100644
--- a/svx/source/tbxctrls/extrusioncontrols.cxx
+++ b/svx/source/tbxctrls/extrusioncontrols.cxx
@@ -274,8 +274,7 @@ OUString SAL_CALL ExtrusionDirectionControl_getImplementationName()
Sequence< OUString > SAL_CALL ExtrusionDirectionControl_getSupportedServiceNames() throw( RuntimeException )
{
- Sequence< OUString > aSNS( 1 );
- aSNS.getArray()[0] = "com.sun.star.frame.ToolbarController";
+ Sequence<OUString> aSNS { "com.sun.star.frame.ToolbarController" };
return aSNS;
}
@@ -518,8 +517,7 @@ OUString SAL_CALL ExtrusionDepthController_getImplementationName()
Sequence< OUString > SAL_CALL ExtrusionDepthController_getSupportedServiceNames() throw( RuntimeException )
{
- Sequence< OUString > aSNS( 1 );
- aSNS.getArray()[0] = "com.sun.star.frame.ToolbarController";
+ Sequence<OUString> aSNS { "com.sun.star.frame.ToolbarController" };
return aSNS;
}
@@ -791,8 +789,7 @@ OUString SAL_CALL ExtrusionLightingControl_getImplementationName()
Sequence< OUString > SAL_CALL ExtrusionLightingControl_getSupportedServiceNames() throw( RuntimeException )
{
- Sequence< OUString > aSNS( 1 );
- aSNS.getArray()[0] = "com.sun.star.frame.ToolbarController";
+ Sequence<OUString> aSNS { "com.sun.star.frame.ToolbarController" };
return aSNS;
}
@@ -935,8 +932,7 @@ OUString SAL_CALL ExtrusionSurfaceControl_getImplementationName()
Sequence< OUString > SAL_CALL ExtrusionSurfaceControl_getSupportedServiceNames() throw( RuntimeException )
{
- Sequence< OUString > aSNS( 1 );
- aSNS.getArray()[0] = "com.sun.star.frame.ToolbarController";
+ Sequence<OUString> aSNS { "com.sun.star.frame.ToolbarController" };
return aSNS;
}
diff --git a/svx/source/tbxctrls/fontworkgallery.cxx b/svx/source/tbxctrls/fontworkgallery.cxx
index 23ebb5aee81f..d92e3e57f65d 100644
--- a/svx/source/tbxctrls/fontworkgallery.cxx
+++ b/svx/source/tbxctrls/fontworkgallery.cxx
@@ -395,8 +395,7 @@ OUString SAL_CALL FontworkAlignmentControl_getImplementationName()
Sequence< OUString > SAL_CALL FontworkAlignmentControl_getSupportedServiceNames() throw( RuntimeException )
{
- Sequence< OUString > aSNS( 1 );
- aSNS.getArray()[0] = "com.sun.star.frame.ToolbarController";
+ Sequence<OUString> aSNS { "com.sun.star.frame.ToolbarController" };
return aSNS;
}
@@ -631,8 +630,7 @@ OUString SAL_CALL FontworkCharacterSpacingControl_getImplementationName()
Sequence< OUString > SAL_CALL FontworkCharacterSpacingControl_getSupportedServiceNames() throw( RuntimeException )
{
- Sequence< OUString > aSNS( 1 );
- aSNS.getArray()[0] = "com.sun.star.frame.ToolbarController";
+ Sequence<OUString> aSNS { "com.sun.star.frame.ToolbarController" };
return aSNS;
}
diff --git a/svx/source/tbxctrls/tbunocontroller.cxx b/svx/source/tbxctrls/tbunocontroller.cxx
index 0aba9071d61c..0ccfbd692ebf 100644
--- a/svx/source/tbxctrls/tbunocontroller.cxx
+++ b/svx/source/tbxctrls/tbunocontroller.cxx
@@ -322,8 +322,7 @@ throw( uno::RuntimeException, std::exception )
uno::Sequence< OUString > SAL_CALL FontHeightToolBoxControl::getSupportedServiceNames( )
throw( uno::RuntimeException, std::exception )
{
- uno::Sequence< OUString > aSNS( 1 );
- aSNS.getArray()[0] = "com.sun.star.frame.ToolbarController";
+ uno::Sequence<OUString> aSNS { "com.sun.star.frame.ToolbarController" };
return aSNS;
}
diff --git a/svx/source/tbxctrls/tbunosearchcontrollers.cxx b/svx/source/tbxctrls/tbunosearchcontrollers.cxx
index 72a523e222cf..4912f328b433 100644
--- a/svx/source/tbxctrls/tbunosearchcontrollers.cxx
+++ b/svx/source/tbxctrls/tbunosearchcontrollers.cxx
@@ -415,8 +415,7 @@ sal_Bool SAL_CALL FindTextToolbarController::supportsService( const OUString& Se
css::uno::Sequence< OUString > SAL_CALL FindTextToolbarController::getSupportedServiceNames() throw( css::uno::RuntimeException, std::exception )
{
- css::uno::Sequence< OUString > aSNS( 1 );
- aSNS[0] = "com.sun.star.frame.ToolbarController";
+ css::uno::Sequence<OUString> aSNS { "com.sun.star.frame.ToolbarController" };
return aSNS;
}
@@ -570,8 +569,7 @@ sal_Bool SAL_CALL UpDownSearchToolboxController::supportsService( const OUString
css::uno::Sequence< OUString > SAL_CALL UpDownSearchToolboxController::getSupportedServiceNames() throw( css::uno::RuntimeException, std::exception )
{
- css::uno::Sequence< OUString > aSNS( 1 );
- aSNS[0] = "com.sun.star.frame.ToolbarController";
+ css::uno::Sequence<OUString> aSNS { "com.sun.star.frame.ToolbarController" };
return aSNS;
}
@@ -660,8 +658,7 @@ sal_Bool SAL_CALL MatchCaseToolboxController::supportsService( const OUString& S
css::uno::Sequence< OUString > SAL_CALL MatchCaseToolboxController::getSupportedServiceNames() throw( css::uno::RuntimeException, std::exception )
{
- css::uno::Sequence< OUString > aSNS( 1 );
- aSNS[0] = "com.sun.star.frame.ToolbarController";
+ css::uno::Sequence<OUString> aSNS { "com.sun.star.frame.ToolbarController" };
return aSNS;
}
@@ -754,8 +751,7 @@ sal_Bool SAL_CALL SearchFormattedToolboxController::supportsService( const OUStr
css::uno::Sequence< OUString > SAL_CALL SearchFormattedToolboxController::getSupportedServiceNames() throw( css::uno::RuntimeException, std::exception )
{
- css::uno::Sequence< OUString > aSNS( 1 );
- aSNS[0] = "com.sun.star.frame.ToolbarController";
+ css::uno::Sequence<OUString> aSNS { "com.sun.star.frame.ToolbarController" };
return aSNS;
}
@@ -848,8 +844,7 @@ sal_Bool SAL_CALL FindAllToolboxController::supportsService( const OUString& Ser
css::uno::Sequence< OUString > SAL_CALL FindAllToolboxController::getSupportedServiceNames() throw( css::uno::RuntimeException, std::exception )
{
- css::uno::Sequence< OUString > aSNS( 1 );
- aSNS[0] = "com.sun.star.frame.ToolbarController";
+ css::uno::Sequence<OUString> aSNS { "com.sun.star.frame.ToolbarController" };
return aSNS;
}
@@ -932,8 +927,7 @@ sal_Bool SAL_CALL ExitSearchToolboxController::supportsService( const OUString&
css::uno::Sequence< OUString > SAL_CALL ExitSearchToolboxController::getSupportedServiceNames() throw( css::uno::RuntimeException, std::exception )
{
- css::uno::Sequence< OUString > aSNS( 1 );
- aSNS[0] = "com.sun.star.frame.ToolbarController";
+ css::uno::Sequence<OUString> aSNS { "com.sun.star.frame.ToolbarController" };
return aSNS;
}
@@ -1027,8 +1021,7 @@ sal_Bool SAL_CALL SearchLabelToolboxController::supportsService( const OUString&
css::uno::Sequence< OUString > SAL_CALL SearchLabelToolboxController::getSupportedServiceNames() throw( css::uno::RuntimeException, std::exception )
{
- css::uno::Sequence< OUString > aSNS( 1 );
- aSNS[0] = "com.sun.star.frame.ToolbarController";
+ css::uno::Sequence<OUString> aSNS { "com.sun.star.frame.ToolbarController" };
return aSNS;
}
diff --git a/svx/source/unodraw/UnoNamespaceMap.cxx b/svx/source/unodraw/UnoNamespaceMap.cxx
index 0db90fa6ad40..066c1df4e02c 100644
--- a/svx/source/unodraw/UnoNamespaceMap.cxx
+++ b/svx/source/unodraw/UnoNamespaceMap.cxx
@@ -79,8 +79,7 @@ namespace svx
Sequence< OUString > SAL_CALL NamespaceMap_getSupportedServiceNames()
throw()
{
- Sequence< OUString > aSupportedServiceNames( 1 );
- aSupportedServiceNames[0] = "com.sun.star.xml.NamespaceMap";
+ Sequence<OUString> aSupportedServiceNames { "com.sun.star.xml.NamespaceMap" };
return aSupportedServiceNames;
}
diff --git a/svx/source/unodraw/unobtabl.cxx b/svx/source/unodraw/unobtabl.cxx
index 7b0c9ba1d6ac..342b08282ea7 100644
--- a/svx/source/unodraw/unobtabl.cxx
+++ b/svx/source/unodraw/unobtabl.cxx
@@ -85,8 +85,7 @@ OUString SAL_CALL SvxUnoBitmapTable::getImplementationName() throw( uno::Runtime
uno::Sequence< OUString > SAL_CALL SvxUnoBitmapTable::getSupportedServiceNames( )
throw( uno::RuntimeException, std::exception )
{
- uno::Sequence< OUString > aSNS( 1 );
- aSNS[0] = "com.sun.star.drawing.BitmapTable";
+ uno::Sequence<OUString> aSNS { "com.sun.star.drawing.BitmapTable" };
return aSNS;
}
diff --git a/svx/source/unodraw/unoctabl.cxx b/svx/source/unodraw/unoctabl.cxx
index aca0ca617884..bda46f67def5 100644
--- a/svx/source/unodraw/unoctabl.cxx
+++ b/svx/source/unodraw/unoctabl.cxx
@@ -82,8 +82,7 @@ OUString SAL_CALL SvxUnoColorTable::getImplementationName() throw( uno::RuntimeE
uno::Sequence< OUString > SAL_CALL SvxUnoColorTable::getSupportedServiceNames()
throw( uno::RuntimeException, std::exception )
{
- uno::Sequence< OUString > aSNS( 1 );
- aSNS.getArray()[0] = "com.sun.star.drawing.ColorTable";
+ uno::Sequence<OUString> aSNS { "com.sun.star.drawing.ColorTable" };
return aSNS;
}
diff --git a/svx/source/unodraw/unodtabl.cxx b/svx/source/unodraw/unodtabl.cxx
index 952369390aaf..cc7ce2f0e6fc 100644
--- a/svx/source/unodraw/unodtabl.cxx
+++ b/svx/source/unodraw/unodtabl.cxx
@@ -66,8 +66,7 @@ OUString SAL_CALL SvxUnoDashTable::getImplementationName() throw( uno::RuntimeEx
uno::Sequence< OUString > SAL_CALL SvxUnoDashTable::getSupportedServiceNames( )
throw( uno::RuntimeException, std::exception )
{
- uno::Sequence< OUString > aSNS( 1 );
- aSNS.getArray()[0] = "com.sun.star.drawing.DashTable";
+ uno::Sequence<OUString> aSNS { "com.sun.star.drawing.DashTable" };
return aSNS;
}
diff --git a/svx/source/unodraw/unogtabl.cxx b/svx/source/unodraw/unogtabl.cxx
index 13f11ac93dbf..fc1b394851c8 100644
--- a/svx/source/unodraw/unogtabl.cxx
+++ b/svx/source/unodraw/unogtabl.cxx
@@ -65,8 +65,7 @@ OUString SAL_CALL SvxUnoGradientTable::getImplementationName() throw( uno::Runti
uno::Sequence< OUString > SAL_CALL SvxUnoGradientTable::getSupportedServiceNames( )
throw( uno::RuntimeException, std::exception )
{
- uno::Sequence< OUString > aSNS( 1 );
- aSNS.getArray()[0] = "com.sun.star.drawing.GradientTable";
+ uno::Sequence<OUString> aSNS { "com.sun.star.drawing.GradientTable" };
return aSNS;
}
diff --git a/svx/source/unodraw/unohtabl.cxx b/svx/source/unodraw/unohtabl.cxx
index e510e186d39f..4d182766ea31 100644
--- a/svx/source/unodraw/unohtabl.cxx
+++ b/svx/source/unodraw/unohtabl.cxx
@@ -65,8 +65,7 @@ OUString SAL_CALL SvxUnoHatchTable::getImplementationName() throw( uno::RuntimeE
uno::Sequence< OUString > SAL_CALL SvxUnoHatchTable::getSupportedServiceNames( )
throw( uno::RuntimeException, std::exception )
{
- uno::Sequence< OUString > aSNS( 1 );
- aSNS.getArray()[0] = "com.sun.star.drawing.HatchTable";
+ uno::Sequence<OUString> aSNS { "com.sun.star.drawing.HatchTable" };
return aSNS;
}
diff --git a/svx/source/unodraw/unomtabl.cxx b/svx/source/unodraw/unomtabl.cxx
index 0b200a17a80f..23723cb68247 100644
--- a/svx/source/unodraw/unomtabl.cxx
+++ b/svx/source/unodraw/unomtabl.cxx
@@ -141,8 +141,7 @@ OUString SAL_CALL SvxUnoMarkerTable::getImplementationName() throw( uno::Runtime
uno::Sequence< OUString > SAL_CALL SvxUnoMarkerTable::getSupportedServiceNames( )
throw( uno::RuntimeException, std::exception )
{
- uno::Sequence< OUString > aSNS( 1 );
- aSNS.getArray()[0] = "com.sun.star.drawing.MarkerTable";
+ uno::Sequence<OUString> aSNS { "com.sun.star.drawing.MarkerTable" };
return aSNS;
}
diff --git a/svx/source/unodraw/unopage.cxx b/svx/source/unodraw/unopage.cxx
index 0cee1fef5c2a..7376b8e8172e 100644
--- a/svx/source/unodraw/unopage.cxx
+++ b/svx/source/unodraw/unopage.cxx
@@ -865,8 +865,7 @@ sal_Bool SAL_CALL SvxDrawPage::supportsService( const OUString& ServiceName )
uno::Sequence< OUString > SAL_CALL SvxDrawPage::getSupportedServiceNames() throw( uno::RuntimeException, std::exception )
{
- uno::Sequence< OUString > aSeq( 1 );
- aSeq.getArray()[0] = "com.sun.star.drawing.ShapeCollection";
+ uno::Sequence<OUString> aSeq { "com.sun.star.drawing.ShapeCollection" };
return aSeq;
}
diff --git a/svx/source/unodraw/unopool.cxx b/svx/source/unodraw/unopool.cxx
index aae498f1cd9d..3d63ff953bc1 100644
--- a/svx/source/unodraw/unopool.cxx
+++ b/svx/source/unodraw/unopool.cxx
@@ -404,8 +404,7 @@ OUString SAL_CALL SvxUnoDrawPool::getImplementationName() throw( uno::RuntimeExc
uno::Sequence< OUString > SAL_CALL SvxUnoDrawPool::getSupportedServiceNames( )
throw( uno::RuntimeException, std::exception )
{
- uno::Sequence< OUString > aSNS( 1 );
- aSNS.getArray()[0] = "com.sun.star.drawing.Defaults";
+ uno::Sequence<OUString> aSNS { "com.sun.star.drawing.Defaults" };
return aSNS;
}
diff --git a/svx/source/unodraw/unottabl.cxx b/svx/source/unodraw/unottabl.cxx
index e380d51f63b8..0986195da6ad 100644
--- a/svx/source/unodraw/unottabl.cxx
+++ b/svx/source/unodraw/unottabl.cxx
@@ -65,8 +65,7 @@ OUString SAL_CALL SvxUnoTransGradientTable::getImplementationName() throw( uno::
uno::Sequence< OUString > SAL_CALL SvxUnoTransGradientTable::getSupportedServiceNames( )
throw( uno::RuntimeException, std::exception )
{
- uno::Sequence< OUString > aSNS( 1 );
- aSNS.getArray()[0] = "com.sun.star.drawing.TransparencyGradientTable";
+ uno::Sequence<OUString> aSNS { "com.sun.star.drawing.TransparencyGradientTable" };
return aSNS;
}
diff --git a/sw/source/core/layout/dumpfilter.cxx b/sw/source/core/layout/dumpfilter.cxx
index 525117a6f6c9..9ec20ba597b1 100644
--- a/sw/source/core/layout/dumpfilter.cxx
+++ b/sw/source/core/layout/dumpfilter.cxx
@@ -155,8 +155,7 @@ namespace sw
uno::Sequence< OUString > LayoutDumpFilter::getSupportedServiceNames()
throw (uno::RuntimeException, std::exception)
{
- uno::Sequence< OUString > aSeq( 1 );
- aSeq[0] = "com.sun.star.document.ExportFilter";
+ uno::Sequence<OUString> aSeq { "com.sun.star.document.ExportFilter" };
return aSeq;
}
diff --git a/sw/source/core/view/printdata.cxx b/sw/source/core/view/printdata.cxx
index 9d0ab63a1deb..009d8e40016b 100644
--- a/sw/source/core/view/printdata.cxx
+++ b/sw/source/core/view/printdata.cxx
@@ -345,8 +345,7 @@ SwPrintUIOptions::SwPrintUIOptions(
aRLChoices[0] = aLocalizedStrings.GetString( 19 );
aRLChoices[1] = aLocalizedStrings.GetString( 20 );
aRLChoices[2] = aLocalizedStrings.GetString( 21 );
- uno::Sequence< OUString > aRLHelp( 1 );
- aRLHelp[0] = ".HelpID:vcl:PrintDialog:PrintLeftRightPages:ListBox";
+ uno::Sequence<OUString> aRLHelp { ".HelpID:vcl:PrintDialog:PrintLeftRightPages:ListBox" };
// create a choice option for all/left/right pages
// 0 : all pages (left & right)
// 1 : left pages
@@ -382,8 +381,7 @@ SwPrintUIOptions::SwPrintUIOptions(
aBRTLChoices[0] = aLocalizedStrings.GetString( 24 );
aBRTLChoices[1] = aLocalizedStrings.GetString( 25 );
vcl::PrinterOptionsHelper::UIControlOptions aBrochureRTLOpt( aBrochurePropertyName, -1, true );
- uno::Sequence< OUString > aBRTLHelpIds( 1 );
- aBRTLHelpIds[0] = ".HelpID:vcl:PrintDialog:PrintProspectRTL:ListBox";
+ uno::Sequence<OUString> aBRTLHelpIds { ".HelpID:vcl:PrintDialog:PrintProspectRTL:ListBox" };
aBrochureRTLOpt.maGroupHint = "LayoutPage";
// RTL brochure choices
// 0 : left-to-right
diff --git a/sw/source/uibase/uno/unomodule.cxx b/sw/source/uibase/uno/unomodule.cxx
index c353e25817f8..5cb62a9db2aa 100644
--- a/sw/source/uibase/uno/unomodule.cxx
+++ b/sw/source/uibase/uno/unomodule.cxx
@@ -40,8 +40,7 @@ OUString SAL_CALL SwUnoModule_getImplementationName() throw()
uno::Sequence< OUString > SAL_CALL SwUnoModule_getSupportedServiceNames() throw()
{
- uno::Sequence< OUString > aSeq( 1 );
- aSeq[0] = "com.sun.star.text.ModuleDispatcher";
+ uno::Sequence<OUString> aSeq { "com.sun.star.text.ModuleDispatcher" };
return aSeq;
}
diff --git a/toolkit/source/controls/grid/defaultgriddatamodel.cxx b/toolkit/source/controls/grid/defaultgriddatamodel.cxx
index 2249a20dd4b5..5ab5a7dd6d79 100644
--- a/toolkit/source/controls/grid/defaultgriddatamodel.cxx
+++ b/toolkit/source/controls/grid/defaultgriddatamodel.cxx
@@ -495,8 +495,7 @@ private:
Sequence< OUString > SAL_CALL DefaultGridDataModel::getSupportedServiceNames( ) throw (RuntimeException, std::exception)
{
- Sequence< OUString > aSeq( 1 );
- aSeq[0] = "com.sun.star.awt.grid.DefaultGridDataModel";
+ Sequence<OUString> aSeq { "com.sun.star.awt.grid.DefaultGridDataModel" };
return aSeq;
}
diff --git a/toolkit/source/controls/tree/treedatamodel.cxx b/toolkit/source/controls/tree/treedatamodel.cxx
index b0a0c20630cf..49b757866f2a 100644
--- a/toolkit/source/controls/tree/treedatamodel.cxx
+++ b/toolkit/source/controls/tree/treedatamodel.cxx
@@ -258,8 +258,7 @@ sal_Bool SAL_CALL MutableTreeDataModel::supportsService( const OUString& Service
Sequence< OUString > SAL_CALL MutableTreeDataModel::getSupportedServiceNames( ) throw (RuntimeException, std::exception)
{
- Sequence< OUString > aSeq( 1 );
- aSeq[0] = "com.sun.star.awt.tree.MutableTreeDataModel";
+ Sequence<OUString> aSeq { "com.sun.star.awt.tree.MutableTreeDataModel" };
return aSeq;
}
@@ -535,8 +534,7 @@ sal_Bool SAL_CALL MutableTreeNode::supportsService( const OUString& ServiceName
Sequence< OUString > SAL_CALL MutableTreeNode::getSupportedServiceNames( ) throw (RuntimeException, std::exception)
{
- Sequence< OUString > aSeq( 1 );
- aSeq[0] = "com.sun.star.awt.tree.MutableTreeNode";
+ Sequence<OUString> aSeq { "com.sun.star.awt.tree.MutableTreeNode" };
return aSeq;
}
diff --git a/toolkit/source/controls/unocontrols.cxx b/toolkit/source/controls/unocontrols.cxx
index 226be956dd14..f97b99a86356 100644
--- a/toolkit/source/controls/unocontrols.cxx
+++ b/toolkit/source/controls/unocontrols.cxx
@@ -2816,8 +2816,7 @@ void UnoListBoxControl::removeItemListener(const uno::Reference < awt::XItemList
void UnoListBoxControl::addItem( const OUString& aItem, sal_Int16 nPos ) throw(uno::RuntimeException, std::exception)
{
- uno::Sequence< OUString> aSeq( 1 );
- aSeq.getArray()[0] = aItem;
+ uno::Sequence<OUString> aSeq { aItem };
addItems( aSeq, nPos );
}
@@ -3452,8 +3451,7 @@ void SAL_CALL UnoComboBoxControl::itemListChanged( const lang::EventObject& i_rE
void UnoComboBoxControl::addItem( const OUString& aItem, sal_Int16 nPos ) throw(uno::RuntimeException, std::exception)
{
- uno::Sequence< OUString> aSeq( 1 );
- aSeq.getArray()[0] = aItem;
+ uno::Sequence<OUString> aSeq { aItem };
addItems( aSeq, nPos );
}
diff --git a/ucb/source/ucp/file/bc.cxx b/ucb/source/ucp/file/bc.cxx
index f55962484a21..8b411846d1a1 100644
--- a/ucb/source/ucp/file/bc.cxx
+++ b/ucb/source/ucp/file/bc.cxx
@@ -269,8 +269,7 @@ Sequence< OUString > SAL_CALL
BaseContent::getSupportedServiceNames()
throw( RuntimeException, std::exception )
{
- Sequence< OUString > ret( 1 );
- ret[0] = "com.sun.star.ucb.FileContent";
+ Sequence<OUString> ret { "com.sun.star.ucb.FileContent" };
return ret;
}
diff --git a/unotools/source/config/cmdoptions.cxx b/unotools/source/config/cmdoptions.cxx
index d7572381e103..230af07eadcd 100644
--- a/unotools/source/config/cmdoptions.cxx
+++ b/unotools/source/config/cmdoptions.cxx
@@ -169,8 +169,7 @@ SvtCommandOptions_Impl::SvtCommandOptions_Impl()
/*TODO: Not used in the moment! see Notify() ...
// Enable notification mechanism of our baseclass.
// We need it to get information about changes outside these class on our used configuration keys! */
- Sequence< OUString > aNotifySeq( 1 );
- aNotifySeq[0] = "Disabled";
+ Sequence<OUString> aNotifySeq { "Disabled" };
EnableNotification( aNotifySeq, true );
}
diff --git a/unotools/source/config/eventcfg.cxx b/unotools/source/config/eventcfg.cxx
index 82b1b578bbff..a10c74c33b9d 100644
--- a/unotools/source/config/eventcfg.cxx
+++ b/unotools/source/config/eventcfg.cxx
@@ -120,8 +120,7 @@ GlobalEventConfig_Impl::GlobalEventConfig_Impl()
/*TODO: Not used in the moment! see Notify() ...
// Enable notification mechanism of our baseclass.
// We need it to get information about changes outside these class on our used configuration keys! */
- Sequence< OUString > aNotifySeq( 1 );
- aNotifySeq[0] = "Events";
+ Sequence<OUString> aNotifySeq { "Events" };
EnableNotification( aNotifySeq, true );
}
diff --git a/unotools/source/config/extendedsecurityoptions.cxx b/unotools/source/config/extendedsecurityoptions.cxx
index 73aa9a05a3bd..3a4f5cbb4d5e 100644
--- a/unotools/source/config/extendedsecurityoptions.cxx
+++ b/unotools/source/config/extendedsecurityoptions.cxx
@@ -146,8 +146,7 @@ SvtExtendedSecurityOptions_Impl::SvtExtendedSecurityOptions_Impl()
// Enable notification mechanism of our baseclass.
// We need it to get information about changes outside these class on our used configuration keys!
- Sequence< OUString > seqNotifyNames( 1 );
- seqNotifyNames[0] = m_aSecureExtensionsSetName;
+ Sequence<OUString> seqNotifyNames { m_aSecureExtensionsSetName };
EnableNotification( seqNotifyNames );
}
diff --git a/vcl/source/components/dtranscomp.cxx b/vcl/source/components/dtranscomp.cxx
index 60c530de6493..4d5c3d4a7a7c 100644
--- a/vcl/source/components/dtranscomp.cxx
+++ b/vcl/source/components/dtranscomp.cxx
@@ -302,8 +302,7 @@ public:
static Sequence< OUString > getSupportedServiceNames_static()
{
- Sequence< OUString > aRet( 1 );
- aRet[0] = "com.sun.star.datatransfer.dnd.GenericDragSource";
+ Sequence<OUString> aRet { "com.sun.star.datatransfer.dnd.GenericDragSource" };
return aRet;
}
@@ -417,8 +416,7 @@ public:
static Sequence< OUString > getSupportedServiceNames_static()
{
- Sequence< OUString > aRet( 1 );
- aRet[0] = "com.sun.star.datatransfer.dnd.GenericDropTarget";
+ Sequence<OUString> aRet { "com.sun.star.datatransfer.dnd.GenericDropTarget" };
return aRet;
}
diff --git a/vcl/unx/generic/dtrans/config.cxx b/vcl/unx/generic/dtrans/config.cxx
index 802659af4b40..10db3f0dc24d 100644
--- a/vcl/unx/generic/dtrans/config.cxx
+++ b/vcl/unx/generic/dtrans/config.cxx
@@ -70,8 +70,7 @@ DtransX11ConfigItem::DtransX11ConfigItem() :
ConfigItemMode::DelayedUpdate ),
m_nSelectionTimeout( 3 )
{
- Sequence< OUString > aKeys( 1 );
- aKeys.getArray()[0] = SELECTION_PROPERTY;
+ Sequence<OUString> aKeys { SELECTION_PROPERTY };
Sequence< Any > aValues = GetProperties( aKeys );
#if OSL_DEBUG_LEVEL > 1
fprintf( stderr, "found %" SAL_PRIdINT32 " properties for %s\n", aValues.getLength(), SELECTION_PROPERTY );
diff --git a/xmlhelp/source/treeview/tvfactory.cxx b/xmlhelp/source/treeview/tvfactory.cxx
index abb4d9b0397c..56c789284172 100644
--- a/xmlhelp/source/treeview/tvfactory.cxx
+++ b/xmlhelp/source/treeview/tvfactory.cxx
@@ -131,8 +131,7 @@ Sequence< OUString > SAL_CALL
TVFactory::getAvailableServiceNames( )
throw( RuntimeException, std::exception )
{
- Sequence< OUString > seq( 1 );
- seq[0] = "com.sun.star.ucb.HierarchyDataReadAccess";
+ Sequence<OUString> seq { "com.sun.star.ucb.HierarchyDataReadAccess" };
return seq;
}
diff --git a/xmloff/source/draw/ximpshap.cxx b/xmloff/source/draw/ximpshap.cxx
index dee62a3312e0..bad7295224b5 100644
--- a/xmloff/source/draw/ximpshap.cxx
+++ b/xmloff/source/draw/ximpshap.cxx
@@ -521,8 +521,7 @@ void SdXMLShapeContext::AddShape(OUString const & serviceName)
}
catch(const uno::Exception& e)
{
- uno::Sequence<OUString> aSeq( 1 );
- aSeq[0] = serviceName;
+ uno::Sequence<OUString> aSeq { serviceName };
GetImport().SetError( XMLERROR_FLAG_ERROR | XMLERROR_API,
aSeq, e.Message, nullptr );
}
diff --git a/xmloff/source/forms/elementimport.cxx b/xmloff/source/forms/elementimport.cxx
index f3a40fa7dad8..1ecf02e38706 100644
--- a/xmloff/source/forms/elementimport.cxx
+++ b/xmloff/source/forms/elementimport.cxx
@@ -1661,8 +1661,7 @@ namespace xmloff
// a listbox which has a list-source attribute must have a list-source-type of something
// not equal to ValueList.
// In this case, the list-source value is simply the one and only element of the ListSource property.
- Sequence< OUString > aListSourcePropValue( 1 );
- aListSourcePropValue[0] = _rValue;
+ Sequence<OUString> aListSourcePropValue { _rValue };
aListSource.Value <<= aListSourcePropValue;
}
diff --git a/xmloff/source/text/XMLAutoTextEventExport.cxx b/xmloff/source/text/XMLAutoTextEventExport.cxx
index 1497327d0d80..69c793650e56 100644
--- a/xmloff/source/text/XMLAutoTextEventExport.cxx
+++ b/xmloff/source/text/XMLAutoTextEventExport.cxx
@@ -212,8 +212,7 @@ void XMLAutoTextEventExport::_ExportContent() {}
Sequence< OUString > SAL_CALL XMLAutoTextEventExport_getSupportedServiceNames()
throw()
{
- Sequence< OUString > aSeq( 1 );
- aSeq[0] = XMLAutoTextEventExport_getImplementationName();
+ Sequence<OUString> aSeq { XMLAutoTextEventExport_getImplementationName() };
return aSeq;
}
@@ -234,8 +233,7 @@ Reference< XInterface > SAL_CALL XMLAutoTextEventExport_createInstance(
Sequence< OUString > SAL_CALL XMLAutoTextEventExportOOO_getSupportedServiceNames()
throw()
{
- Sequence< OUString > aSeq( 1 );
- aSeq[0] = XMLAutoTextEventExportOOO_getImplementationName();
+ Sequence<OUString> aSeq { XMLAutoTextEventExportOOO_getImplementationName() };
return aSeq;
}
diff --git a/xmloff/source/text/XMLAutoTextEventImport.cxx b/xmloff/source/text/XMLAutoTextEventImport.cxx
index 340b03ae5ef7..2f84a86708d4 100644
--- a/xmloff/source/text/XMLAutoTextEventImport.cxx
+++ b/xmloff/source/text/XMLAutoTextEventImport.cxx
@@ -108,8 +108,7 @@ Sequence< OUString > SAL_CALL
XMLAutoTextEventImport_getSupportedServiceNames()
throw()
{
- Sequence< OUString > aSeq( 1 );
- aSeq[0] = XMLAutoTextEventImport_getImplementationName();
+ Sequence<OUString> aSeq { XMLAutoTextEventImport_getImplementationName() };
return aSeq;
}