[Libreoffice-commits] core.git: avmedia/source chart2/source comphelper/source connectivity/source cui/source dbaccess/source dtrans/source embedserv/source extensions/source formula/source fpicker/source framework/source linguistic/source package/source reportdesign/source sc/source sd/source sfx2/source shell/source stoc/source svl/source svtools/source svx/source sw/source toolkit/source ucb/source UnoControls/source unotools/source vcl/source vcl/unx xmlhelp/source xmloff/source
Noel Grandin
noelgrandin at gmail.com
Sun Nov 15 04:19:20 PST 2015
UnoControls/source/controls/framecontrol.cxx | 3 -
avmedia/source/framework/soundhandler.cxx | 3 -
chart2/source/model/template/DataInterpreter.cxx | 3 -
chart2/source/view/axes/DateScaling.cxx | 3 -
comphelper/source/misc/documentiologring.cxx | 3 -
comphelper/source/misc/officerestartmanager.cxx | 3 -
comphelper/source/property/genericpropertyset.cxx | 3 -
comphelper/source/streaming/seqinputstreamserv.cxx | 3 -
comphelper/source/streaming/seqoutputstreamserv.cxx | 3 -
connectivity/source/commontools/FDatabaseMetaDataResultSet.cxx | 3 -
connectivity/source/commontools/ParamterSubstitution.cxx | 3 -
connectivity/source/drivers/evoab2/NDriver.cxx | 3 -
connectivity/source/drivers/jdbc/JDriver.cxx | 3 -
connectivity/source/drivers/kab/KDriver.cxx | 3 -
connectivity/source/drivers/macab/MacabDriver.cxx | 3 -
connectivity/source/drivers/mozab/bootstrap/MMozillaBootstrap.cxx | 6 --
connectivity/source/drivers/odbc/ODriver.cxx | 3 -
cui/source/customize/cfg.cxx | 3 -
cui/source/options/webconninfo.cxx | 3 -
dbaccess/source/core/api/RowSet.cxx | 3 -
dbaccess/source/core/api/column.cxx | 6 --
dbaccess/source/core/api/querycomposer.cxx | 3 -
dbaccess/source/core/api/statement.cxx | 3 -
dbaccess/source/core/dataaccess/databasecontext.cxx | 3 -
dbaccess/source/core/misc/DatabaseDataProvider.cxx | 3 -
dbaccess/source/filter/xml/dbloader2.cxx | 6 --
dbaccess/source/sdbtools/connection/connectiontools.cxx | 3 -
dbaccess/source/ui/app/AppController.cxx | 3 -
dbaccess/source/ui/querydesign/querycontroller.cxx | 6 --
dbaccess/source/ui/relationdesign/RelationController.cxx | 3 -
dbaccess/source/ui/tabledesign/TableController.cxx | 3 -
dtrans/source/cnttype/mctfentry.cxx | 3 -
embedserv/source/embed/register.cxx | 3 -
extensions/source/plugin/base/manager.cxx | 3 -
extensions/source/plugin/base/plmodel.cxx | 3 -
extensions/source/propctrlr/buttonnavigationhandler.cxx | 3 -
extensions/source/propctrlr/cellbindinghandler.cxx | 3 -
extensions/source/propctrlr/editpropertyhandler.cxx | 3 -
extensions/source/propctrlr/eformspropertyhandler.cxx | 3 -
extensions/source/propctrlr/eventhandler.cxx | 3 -
extensions/source/propctrlr/formcomponenthandler.cxx | 3 -
extensions/source/propctrlr/formgeometryhandler.cxx | 3 -
extensions/source/propctrlr/genericpropertyhandler.cxx | 3 -
extensions/source/propctrlr/submissionhandler.cxx | 3 -
extensions/source/propctrlr/xsdvalidationpropertyhandler.cxx | 3 -
formula/source/core/api/FormulaOpCodeMapperObj.cxx | 3 -
fpicker/source/aqua/FPentry.mm | 6 --
fpicker/source/office/RemoteFilesDialog.cxx | 6 --
fpicker/source/win32/filepicker/FPentry.cxx | 6 --
framework/source/dispatch/popupmenudispatcher.cxx | 3 -
framework/source/fwe/classes/actiontriggerpropertyset.cxx | 3 -
framework/source/fwe/classes/actiontriggerseparatorpropertyset.cxx | 3 -
framework/source/fwe/classes/addonsoptions.cxx | 3 -
framework/source/services/substitutepathvars.cxx | 6 --
framework/source/uielement/subtoolbarcontroller.cxx | 3 -
framework/source/uielement/thesaurusmenucontroller.cxx | 3 -
linguistic/source/convdiclist.cxx | 3 -
linguistic/source/gciterator.cxx | 3 -
package/source/xstor/xstorage.cxx | 3 -
package/source/zippackage/ZipPackage.cxx | 3 -
package/source/zippackage/ZipPackageStream.cxx | 3 -
reportdesign/source/core/api/Group.cxx | 3 -
reportdesign/source/core/api/Section.cxx | 3 -
reportdesign/source/filter/xml/dbloader2.cxx | 3 -
reportdesign/source/ui/misc/statusbarcontroller.cxx | 3 -
reportdesign/source/ui/misc/toolboxcontroller.cxx | 3 -
reportdesign/source/ui/report/ReportController.cxx | 3 -
sc/source/ui/unoobj/unodoc.cxx | 3 -
sd/source/ui/controller/slidelayoutcontroller.cxx | 6 --
sd/source/ui/unoidl/unomodule.cxx | 3 -
sfx2/source/appl/helpinterceptor.cxx | 3 -
sfx2/source/appl/imagemgr.cxx | 6 --
shell/source/win32/workbench/TestSmplMail.cxx | 6 --
stoc/source/security/access_controller.cxx | 3 -
stoc/source/security/file_policy.cxx | 3 -
svl/source/fsstor/fsstorage.cxx | 6 --
svl/source/passwordcontainer/passwordcontainer.cxx | 3 -
svtools/source/dialogs/ServerDetailsControls.cxx | 6 --
svtools/source/uno/contextmenuhelper.cxx | 3 -
svx/source/form/xfm_addcondition.cxx | 3 -
svx/source/tbxctrls/bulletsnumbering.cxx | 3 -
svx/source/tbxctrls/extrusioncontrols.cxx | 12 +----
svx/source/tbxctrls/fontworkgallery.cxx | 6 --
svx/source/tbxctrls/tbunocontroller.cxx | 3 -
svx/source/tbxctrls/tbunosearchcontrollers.cxx | 21 +++-------
svx/source/unodraw/UnoNamespaceMap.cxx | 3 -
svx/source/unodraw/unobtabl.cxx | 3 -
svx/source/unodraw/unoctabl.cxx | 3 -
svx/source/unodraw/unodtabl.cxx | 3 -
svx/source/unodraw/unogtabl.cxx | 3 -
svx/source/unodraw/unohtabl.cxx | 3 -
svx/source/unodraw/unomtabl.cxx | 3 -
svx/source/unodraw/unopage.cxx | 3 -
svx/source/unodraw/unopool.cxx | 3 -
svx/source/unodraw/unottabl.cxx | 3 -
sw/source/core/layout/dumpfilter.cxx | 3 -
sw/source/core/view/printdata.cxx | 6 --
sw/source/uibase/uno/unomodule.cxx | 3 -
toolkit/source/controls/grid/defaultgriddatamodel.cxx | 3 -
toolkit/source/controls/tree/treedatamodel.cxx | 6 --
toolkit/source/controls/unocontrols.cxx | 6 --
ucb/source/ucp/file/bc.cxx | 3 -
unotools/source/config/cmdoptions.cxx | 3 -
unotools/source/config/eventcfg.cxx | 3 -
unotools/source/config/extendedsecurityoptions.cxx | 3 -
vcl/source/components/dtranscomp.cxx | 6 --
vcl/unx/generic/dtrans/config.cxx | 3 -
xmlhelp/source/treeview/tvfactory.cxx | 3 -
xmloff/source/draw/ximpshap.cxx | 3 -
xmloff/source/forms/elementimport.cxx | 3 -
xmloff/source/text/XMLAutoTextEventExport.cxx | 6 --
xmloff/source/text/XMLAutoTextEventImport.cxx | 3 -
112 files changed, 140 insertions(+), 280 deletions(-)
New commits:
commit 25aec383f95fded43b3fe5fc588b4ebdc6d7d272
Author: Noel Grandin <noelgrandin at gmail.com>
Date: Sun Nov 15 12:22:28 2015 +0200
use initialiser for Sequence<OUString>
replaced using:
git grep -lP 'Sequence.*OUString.*\(\s*1\s*\)'
| xargs perl -0777 -pi -e
"s/Sequence<\s*OUString\s*> (\w+)\(\s*1\s*\);
.*\[0\] = (\S+);/Sequence<OUString> \1 { \2 };/g"
Change-Id: I20ad0489da887a9712982531c3b127339bb8b3b9
Reviewed-on: https://gerrit.libreoffice.org/19969
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin at gmail.com>
diff --git a/UnoControls/source/controls/framecontrol.cxx b/UnoControls/source/controls/framecontrol.cxx
index 6375136..cfbb19f 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 e0e5133..734d8a0 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 3f81a0e..9cc8c8e 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 d1ee1d9..0dd3c69 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 b08beac..fea9257 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 bb58209..fe7b159 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 383c267..42b3a9f 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 306a5e6..f5b5f3b 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 65f2fa7..7340b58 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 59507f5..34ed9b8 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 1ed3792..ebe096f 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 0761e41..d9783da 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 5fed7490..314c2c6 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 bf7531b..0e50f15 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 69881a4..bb32e6b 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 cefe066..25e2cc3 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 94987f8..21c013a 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 f67fabd..71adb03 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 3feee93..2a6b587 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 a5503d4..04a7ada 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 a28361f..1ee7537 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 5a5f34e..6a6a7f8 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 24f5929..44c96f2 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 91aabfd..8ff8df3 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 57eb40a..5a107f0 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 84cd827..ce5b716 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 7dc7873..b2c648f 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 54ccc81..4fca0c8 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 ff47a4c..52c76f1 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 bb8c09f..29a71be 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 b923b2f..26e48f5 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 d869a7e..81d71ac 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 ca09249..cd28a61 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 0fa54e3..21e3542 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 ee52e1c..e3f3aed 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 20f1a6b..c299604 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 19d09d1..1134d12 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 65e9bbf..940abba 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 aa625d7..8d8e514 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 cd501bb5..bfdc3d5 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 db3c3be..c853bcd 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 3370c44..961b6bc 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 857dc03..f76b07c 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 d0f44a9..3c37ad0 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 3f9db2d..f5cb77f 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 eec37df..ceb934c 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 fbb9c0c..ffbf218 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 ba5d5bd..b5de1d9 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 2461d58..2ee969c 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 c53e5ed..3723f32 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 acfe55b..969bab6 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 be02ec2..20cf8aa 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 b64cc89..ee5af2e 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 2046631..7ddb164 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 4588c6a..c548afa 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 b9457d7..8c1111b 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 7c6bd23..305b51c 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 3e5cb55..50d2bf5 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 5a275fc..0ce08df 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 f0b61e6..1fe2cff 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 f99fbda..0b4cf3f 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 bf218ea..fb62e43 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 e5f1534..f203f89 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 b193f60b..27cf78f 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 4bd397e..4d3a5fd 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 d13d195..6589bf2 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 3235aa6..15b6679 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 a5f99b2..641d556 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 afabd0f..da1160d 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 f91854e..c4a0a0e 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 db7d283..cb7c586 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 9d38ad5..b7819f3 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 9067b28..a33e7a8 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 at germany.sun.com") );
xSmplMailMsg->setOriginator( OUString("tino.rachui at germany.sun.com") );
- Sequence< OUString > ccRecips( 1 );
- ccRecips[0] = "tino.rachui at germany.sun.com";
+ Sequence<OUString> ccRecips { "tino.rachui at germany.sun.com" };
xSmplMailMsg->setCcRecipient( ccRecips );
- Sequence< OUString > bccRecips( 1 );
- bccRecips[0] = "tino.rachui at germany.sun.com";
+ Sequence<OUString> bccRecips { "tino.rachui at germany.sun.com" };
xSmplMailMsg->setBccRecipient( bccRecips );
diff --git a/stoc/source/security/access_controller.cxx b/stoc/source/security/access_controller.cxx
index 7ad6b3e..31bac05 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 1da39f4..2e5095a 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 bb70c8c..01cb714 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 2c41772..fde28a2 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 dc84d71..3529de2 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 3ea93db..3ae2b5b 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 b9727fc..d65eff7 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 305f3a3..92896cc 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 0d68e60..80bda78 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 23ebb5a..d92e3e5 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 0aba907..0ccfbd6 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 72a523e..4912f32 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 0db90fa..066c1df 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 7b0c9ba..342b082 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 aca0ca6..bda46f6 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 9523693..cc7ce2f 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 13f11ac..fc1b394 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 e510e18..4d18276 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 0b200a1..23723cb 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 0cee1fe..7376b8e 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 aae498f..3d63ff9 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 e380d51..0986195 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 525117a..9ec20ba 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 9d0ab63..009d8e4 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 c353e25..5cb62a9 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 2249a20..5ab5a7d 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 b0a0c20..49b7578 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 226be95..f97b99a 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 f559624..8b41184 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 d757238..230af07 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 82b1b57..a10c74c 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 73aa9a0..3a4f5cb 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 60c530d..4d5c3d4 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 802659a..10db3f0 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 abb4d9b0..56c7892 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 dee62a3..bad7295 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 f3a40fa..1ecf02e 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 1497327..69c79365 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 340b03a..2f84a86 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;
}
More information about the Libreoffice-commits
mailing list