[Libreoffice-commits] core.git: accessibility/source avmedia/source bridges/test canvas/source chart2/source comphelper/source connectivity/source cui/source dbaccess/source desktop/source dtrans/source embeddedobj/test extensions/source filter/source forms/source fpicker/source framework/inc framework/source hwpfilter/source i18npool/source io/source odk/examples oox/source package/source remotebridges/source reportdesign/source scripting/source sd/source sfx2/source shell/source sot/source stoc/source svl/source svtools/source svx/source sw/qa sw/source testtools/source toolkit/source ucb/source unotools/source unoxml/source uui/source vbahelper/source vcl/source vcl/unx winaccessibility/source xmlscript/source xmlsecurity/source

Noel Grandin noelgrandin at gmail.com
Sun Nov 15 02:13:34 PST 2015


 accessibility/source/extended/accessibletabbar.cxx                      |    3 -
 accessibility/source/extended/accessibletabbarpage.cxx                  |    3 -
 accessibility/source/extended/accessibletabbarpagelist.cxx              |    3 -
 accessibility/source/standard/vclxaccessiblebutton.cxx                  |    3 -
 accessibility/source/standard/vclxaccessiblecheckbox.cxx                |    3 -
 accessibility/source/standard/vclxaccessibleedit.cxx                    |    3 -
 accessibility/source/standard/vclxaccessiblefixedhyperlink.cxx          |    3 -
 accessibility/source/standard/vclxaccessiblefixedtext.cxx               |    3 -
 accessibility/source/standard/vclxaccessiblemenu.cxx                    |    3 -
 accessibility/source/standard/vclxaccessiblemenubar.cxx                 |    3 -
 accessibility/source/standard/vclxaccessiblemenuitem.cxx                |    3 -
 accessibility/source/standard/vclxaccessiblemenuseparator.cxx           |    3 -
 accessibility/source/standard/vclxaccessiblepopupmenu.cxx               |    3 -
 accessibility/source/standard/vclxaccessibleradiobutton.cxx             |    3 -
 accessibility/source/standard/vclxaccessiblescrollbar.cxx               |    3 -
 accessibility/source/standard/vclxaccessiblestatusbar.cxx               |    3 -
 accessibility/source/standard/vclxaccessiblestatusbaritem.cxx           |    3 -
 accessibility/source/standard/vclxaccessibletabcontrol.cxx              |    3 -
 accessibility/source/standard/vclxaccessibletabpage.cxx                 |    3 -
 avmedia/source/gstreamer/gstframegrabber.cxx                            |    3 -
 avmedia/source/opengl/oglframegrabber.cxx                               |    3 -
 avmedia/source/opengl/oglmanager.cxx                                    |    3 -
 avmedia/source/opengl/oglplayer.cxx                                     |    3 -
 avmedia/source/opengl/oglwindow.cxx                                     |    3 -
 avmedia/source/vlc/vlcframegrabber.cxx                                  |    3 -
 avmedia/source/vlc/vlcmanager.cxx                                       |    3 -
 avmedia/source/vlc/vlcplayer.cxx                                        |    3 -
 avmedia/source/vlc/vlcwindow.cxx                                        |    3 -
 bridges/test/java_uno/acquire/testacquire.cxx                           |    3 -
 bridges/test/java_uno/equals/testequals.cxx                             |    3 -
 canvas/source/cairo/cairo_canvasbitmap.cxx                              |    3 -
 canvas/source/cairo/cairo_canvascustomsprite.cxx                        |    3 -
 canvas/source/cairo/cairo_canvasfont.cxx                                |    3 -
 canvas/source/cairo/cairo_textlayout.cxx                                |    3 -
 canvas/source/directx/dx_canvasbitmap.cxx                               |    3 -
 canvas/source/directx/dx_canvascustomsprite.cxx                         |    3 -
 canvas/source/directx/dx_canvasfont.cxx                                 |    3 -
 canvas/source/directx/dx_config.cxx                                     |    6 +--
 canvas/source/directx/dx_textlayout.cxx                                 |    3 -
 canvas/source/tools/cachedprimitivebase.cxx                             |    3 -
 canvas/source/tools/parametricpolypolygon.cxx                           |    3 -
 canvas/source/vcl/canvasbitmap.cxx                                      |    3 -
 canvas/source/vcl/canvascustomsprite.cxx                                |    3 -
 canvas/source/vcl/canvasfont.cxx                                        |    3 -
 canvas/source/vcl/textlayout.cxx                                        |    3 -
 chart2/source/controller/main/ChartController.cxx                       |    3 -
 chart2/source/model/template/GL3DBarChartType.cxx                       |    3 -
 chart2/source/tools/Scaling.cxx                                         |   12 ++----
 chart2/source/view/axes/DateScaling.cxx                                 |    3 -
 comphelper/source/container/enumerablemap.cxx                           |    3 -
 comphelper/source/property/opropertybag.cxx                             |    3 -
 comphelper/source/streaming/memorystream.cxx                            |    3 -
 connectivity/source/cpool/ZPoolCollection.cxx                           |    3 -
 connectivity/source/drivers/evoab2/NCatalog.cxx                         |    3 -
 connectivity/source/drivers/evoab2/NResultSet.cxx                       |    3 -
 connectivity/source/drivers/evoab2/NTables.cxx                          |    3 -
 connectivity/source/drivers/hsqldb/HCatalog.cxx                         |    3 -
 connectivity/source/drivers/hsqldb/HColumns.cxx                         |    3 -
 connectivity/source/drivers/kab/KCatalog.cxx                            |    3 -
 connectivity/source/drivers/kab/KTables.cxx                             |    3 -
 connectivity/source/drivers/macab/MacabCatalog.cxx                      |    3 -
 connectivity/source/drivers/macab/MacabTables.cxx                       |    3 -
 connectivity/source/drivers/mork/MCatalog.cxx                           |    3 -
 connectivity/source/drivers/mork/MDriver.cxx                            |    3 -
 connectivity/source/drivers/mork/MTables.cxx                            |    3 -
 connectivity/source/drivers/mysql/YCatalog.cxx                          |    3 -
 connectivity/source/drivers/mysql/YColumns.cxx                          |    3 -
 connectivity/source/manager/mdrivermanager.cxx                          |    3 -
 connectivity/source/parse/PColumn.cxx                                   |    3 -
 cui/source/customize/cfg.cxx                                            |    3 -
 cui/source/dialogs/colorpicker.cxx                                      |    3 -
 dbaccess/source/core/dataaccess/bookmarkcontainer.cxx                   |    3 -
 dbaccess/source/core/dataaccess/connection.cxx                          |    3 -
 dbaccess/source/core/dataaccess/dataaccessdescriptor.cxx                |    6 +--
 dbaccess/source/core/dataaccess/databasedocument.cxx                    |    3 -
 dbaccess/source/ext/macromigration/macromigrationwizard.cxx             |    3 -
 dbaccess/source/filter/xml/xmlExport.cxx                                |    6 +--
 dbaccess/source/ui/dlg/ConnectionHelper.cxx                             |    3 -
 dbaccess/source/ui/dlg/tablespage.cxx                                   |    3 -
 desktop/source/migration/services/basicmigration.cxx                    |    3 -
 desktop/source/migration/services/oo3extensionmigration.cxx             |    3 -
 desktop/source/migration/services/wordbookmigration.cxx                 |    3 -
 dtrans/source/cnttype/mcnttfactory.cxx                                  |    3 -
 dtrans/source/generic/generic_clipboard.cxx                             |    3 -
 dtrans/source/win32/clipb/WinClipboard.cxx                              |    3 -
 dtrans/source/win32/ftransl/ftransl.cxx                                 |    3 -
 embeddedobj/test/MainThreadExecutor/xexecutor.cxx                       |    3 -
 extensions/source/bibliography/framectr.cxx                             |    3 -
 extensions/source/dbpilots/listcombowizard.cxx                          |    3 -
 extensions/source/dbpilots/wizardservices.cxx                           |    9 +----
 extensions/source/logging/consolehandler.cxx                            |    3 -
 extensions/source/logging/csvformatter.cxx                              |    3 -
 extensions/source/logging/filehandler.cxx                               |    3 -
 extensions/source/logging/logger.cxx                                    |    6 +--
 extensions/source/logging/plaintextformatter.cxx                        |    3 -
 extensions/source/propctrlr/defaultforminspection.cxx                   |    3 -
 extensions/source/propctrlr/defaulthelpprovider.cxx                     |    3 -
 extensions/source/propctrlr/formcontroller.cxx                          |    6 +--
 extensions/source/propctrlr/formgeometryhandler.cxx                     |    3 -
 extensions/source/propctrlr/propcontroller.cxx                          |    3 -
 extensions/source/propctrlr/stringrepresentation.cxx                    |    3 -
 extensions/source/update/check/updatecheckconfig.cxx                    |    3 -
 extensions/source/update/check/updatecheckjob.cxx                       |    3 -
 extensions/source/update/feed/updatefeed.cxx                            |    3 -
 extensions/source/update/ui/updatecheckui.cxx                           |    3 -
 filter/source/config/cache/configflush.cxx                              |    3 -
 filter/source/config/cache/contenthandlerfactory.cxx                    |    6 +--
 filter/source/config/cache/filterfactory.cxx                            |    3 -
 filter/source/config/cache/frameloaderfactory.cxx                       |    6 +--
 filter/source/config/cache/typedetection.cxx                            |    3 -
 filter/source/xsltdialog/xmlfilterdialogcomponent.cxx                   |    3 -
 forms/source/runtime/formoperations.cxx                                 |    3 -
 fpicker/source/office/OfficeFolderPicker.cxx                            |    3 -
 fpicker/source/win32/folderpicker/FolderPicker.cxx                      |    3 -
 framework/inc/helper/statusindicatorfactory.hxx                         |    3 -
 framework/inc/services/layoutmanager.hxx                                |    3 -
 framework/inc/uiconfiguration/imagemanager.hxx                          |    3 -
 framework/inc/uielement/uicommanddescription.hxx                        |    3 -
 framework/inc/uifactory/menubarfactory.hxx                              |    3 -
 framework/source/accelerators/documentacceleratorconfiguration.cxx      |    3 -
 framework/source/accelerators/globalacceleratorconfiguration.cxx        |    3 -
 framework/source/accelerators/moduleacceleratorconfiguration.cxx        |    3 -
 framework/source/fwi/classes/protocolhandlercache.cxx                   |    3 -
 framework/source/jobs/jobdispatch.cxx                                   |    3 -
 framework/source/jobs/jobexecutor.cxx                                   |    3 -
 framework/source/loadenv/loadenv.cxx                                    |    6 +--
 framework/source/services/autorecovery.cxx                              |    3 -
 framework/source/services/desktop.cxx                                   |    3 -
 framework/source/services/frame.cxx                                     |    3 -
 framework/source/services/modulemanager.cxx                             |    3 -
 framework/source/services/pathsettings.cxx                              |    3 -
 framework/source/services/sessionlistener.cxx                           |    3 -
 framework/source/services/substitutepathvars.cxx                        |    3 -
 framework/source/services/tabwindowservice.cxx                          |    3 -
 framework/source/services/taskcreatorsrv.cxx                            |    3 -
 framework/source/services/urltransformer.cxx                            |    3 -
 framework/source/uiconfiguration/moduleuicfgsupplier.cxx                |    3 -
 framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx       |    3 -
 framework/source/uiconfiguration/uicategorydescription.cxx              |    3 -
 framework/source/uiconfiguration/uiconfigurationmanager.cxx             |    3 -
 framework/source/uiconfiguration/windowstateconfiguration.cxx           |    3 -
 framework/source/uielement/controlmenucontroller.cxx                    |    3 -
 framework/source/uielement/objectmenucontroller.cxx                     |    3 -
 framework/source/uielement/recentfilesmenucontroller.cxx                |    3 -
 framework/source/uielement/saveasmenucontroller.cxx                     |    3 -
 framework/source/uielement/toolbarmanager.cxx                           |    3 -
 framework/source/uifactory/addonstoolbarfactory.cxx                     |    3 -
 framework/source/uifactory/statusbarfactory.cxx                         |    3 -
 framework/source/uifactory/toolbarfactory.cxx                           |    3 -
 framework/source/uifactory/uicontrollerfactory.cxx                      |    9 +----
 framework/source/uifactory/uielementfactorymanager.cxx                  |    3 -
 framework/source/uifactory/windowcontentfactorymanager.cxx              |    3 -
 hwpfilter/source/hwpreader.hxx                                          |    3 -
 i18npool/source/breakiterator/breakiteratorImpl.cxx                     |    3 -
 i18npool/source/breakiterator/breakiterator_unicode.cxx                 |    3 -
 i18npool/source/calendar/calendar_gregorian.cxx                         |    3 -
 i18npool/source/characterclassification/cclass_unicode.cxx              |    3 -
 i18npool/source/characterclassification/characterclassificationImpl.cxx |    3 -
 i18npool/source/characterclassification/unoscripttypedetector.cxx       |    3 -
 i18npool/source/collator/chaptercollator.cxx                            |    3 -
 i18npool/source/collator/collatorImpl.cxx                               |    3 -
 i18npool/source/collator/collator_unicode.cxx                           |    3 -
 i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx   |    3 -
 i18npool/source/indexentry/indexentrysupplier.cxx                       |    3 -
 i18npool/source/inputchecker/inputsequencechecker.cxx                   |    3 -
 i18npool/source/localedata/localedata.cxx                               |    3 -
 i18npool/source/numberformatcode/numberformatcode.cxx                   |    3 -
 i18npool/source/ordinalsuffix/ordinalsuffix.cxx                         |    3 -
 i18npool/source/search/textsearch.cxx                                   |    6 +--
 i18npool/source/textconversion/textconversion.cxx                       |    3 -
 i18npool/source/textconversion/textconversionImpl.cxx                   |    3 -
 i18npool/source/transliteration/transliterationImpl.cxx                 |    3 -
 i18npool/source/transliteration/transliteration_commonclass.cxx         |    3 -
 io/source/TextInputStream/TextInputStream.cxx                           |    3 -
 io/source/acceptor/acceptor.cxx                                         |    3 -
 io/source/connector/connector.cxx                                       |    3 -
 odk/examples/DevelopersGuide/Components/CppComponent/service1_impl.cxx  |    3 -
 odk/examples/cpp/custompanel/ctp_factory.cxx                            |    3 -
 odk/examples/cpp/remoteclient/remoteclient.cxx                          |    3 -
 oox/source/shape/ShapeContextHandler.cxx                                |    3 -
 package/source/zippackage/ZipPackageFolder.cxx                          |    3 -
 package/source/zippackage/ZipPackageFolderEnumeration.cxx               |    3 -
 remotebridges/source/unourl_resolver/unourl_resolver.cxx                |    3 -
 reportdesign/source/core/api/FixedLine.cxx                              |    3 -
 reportdesign/source/core/api/FixedText.cxx                              |    3 -
 reportdesign/source/core/api/FormatCondition.cxx                        |    3 -
 reportdesign/source/core/api/Function.cxx                               |    3 -
 reportdesign/source/core/api/ImageControl.cxx                           |    3 -
 reportdesign/source/core/api/ReportDefinition.cxx                       |    3 -
 reportdesign/source/core/api/ReportEngineJFree.cxx                      |    3 -
 reportdesign/source/core/api/Shape.cxx                                  |    3 -
 reportdesign/source/filter/xml/xmlExport.cxx                            |   18 +++-------
 reportdesign/source/filter/xml/xmlExportDocumentHandler.cxx             |    3 -
 reportdesign/source/filter/xml/xmlImportDocumentHandler.cxx             |    3 -
 reportdesign/source/filter/xml/xmlfilter.cxx                            |   15 ++------
 reportdesign/source/ui/inspection/DataProviderHandler.cxx               |    9 +----
 reportdesign/source/ui/inspection/DefaultInspection.cxx                 |    3 -
 reportdesign/source/ui/inspection/GeometryHandler.cxx                   |    3 -
 reportdesign/source/ui/inspection/ReportComponentHandler.cxx            |    3 -
 scripting/source/dlgprov/dlgprov.cxx                                    |    3 -
 scripting/source/stringresource/stringresource.cxx                      |    9 +----
 sd/source/filter/html/HtmlOptionsDialog.cxx                             |    3 -
 sfx2/source/appl/appinit.cxx                                            |    3 -
 sfx2/source/appl/appserv.cxx                                            |    3 -
 sfx2/source/appl/macroloader.cxx                                        |    3 -
 sfx2/source/appl/shutdownicon.cxx                                       |    3 -
 sfx2/source/doc/SfxDocumentMetaData.cxx                                 |    3 -
 sfx2/source/doc/doctempl.cxx                                            |    3 -
 sfx2/source/doc/doctemplates.cxx                                        |    6 +--
 sfx2/source/doc/iframe.cxx                                              |    3 -
 sfx2/source/doc/plugin.cxx                                              |    3 -
 sfx2/source/notify/globalevents.cxx                                     |    3 -
 shell/source/cmdmail/cmdmailsuppl.cxx                                   |    3 -
 shell/source/unix/exec/shellexec.cxx                                    |    3 -
 shell/source/win32/SysShExec.cxx                                        |    3 -
 shell/source/win32/simplemail/smplmailsuppl.cxx                         |    3 -
 sot/source/unoolestorage/xolesimplestorage.cxx                          |    3 -
 stoc/source/corereflection/crefl.cxx                                    |    3 -
 stoc/source/defaultregistry/defaultregistry.cxx                         |    3 -
 stoc/source/implementationregistration/implreg.cxx                      |    3 -
 stoc/source/invocation/invocation.cxx                                   |    3 -
 stoc/source/invocation_adapterfactory/iafactory.cxx                     |    3 -
 stoc/source/loader/dllcomponentloader.cxx                               |    3 -
 stoc/source/namingservice/namingservice.cxx                             |    3 -
 stoc/source/simpleregistry/simpleregistry.cxx                           |    3 -
 stoc/source/typeconv/convert.cxx                                        |    3 -
 stoc/source/uriproc/ExternalUriReferenceTranslator.cxx                  |    3 -
 stoc/source/uriproc/UriReferenceFactory.cxx                             |    3 -
 stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTexpand.cxx       |    3 -
 stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTscript.cxx       |    3 -
 stoc/source/uriproc/VndSunStarPkgUrlReferenceFactory.cxx                |    3 -
 svl/source/numbers/supservs.cxx                                         |    3 -
 svl/source/passwordcontainer/passwordcontainer.cxx                      |    3 -
 svl/source/uno/pathservice.cxx                                          |    3 -
 svtools/source/config/colorcfg.cxx                                      |    3 -
 svtools/source/config/extcolorcfg.cxx                                   |    3 -
 svtools/source/control/vclxaccessibleheaderbaritem.cxx                  |    3 -
 svtools/source/uno/fpicker.cxx                                          |    6 +--
 svtools/source/uno/wizard/unowizard.cxx                                 |    3 -
 svx/source/accessibility/AccessibleSvxFindReplaceDialog.cxx             |    3 -
 svx/source/form/fmshimp.cxx                                             |    9 +----
 svx/source/unodraw/UnoGraphicExporter.cxx                               |    3 -
 svx/source/unodraw/recoveryui.cxx                                       |    3 -
 sw/qa/core/uwriter.cxx                                                  |    3 -
 sw/source/core/docnode/finalthreadmanager.cxx                           |    3 -
 sw/source/core/unocore/unocoll.cxx                                      |    3 -
 sw/source/core/unocore/unoport.cxx                                      |    3 -
 sw/source/core/unocore/unosect.cxx                                      |    9 +----
 testtools/source/bridgetest/constructors.cxx                            |    6 +--
 testtools/source/bridgetest/cppobj.cxx                                  |    3 -
 toolkit/source/awt/asynccallback.cxx                                    |    3 -
 toolkit/source/awt/vclxaccessiblecomponent.cxx                          |    3 -
 toolkit/source/controls/controlmodelcontainerbase.cxx                   |    3 -
 toolkit/source/controls/grid/sortablegriddatamodel.cxx                  |    3 -
 toolkit/source/controls/tabpagemodel.cxx                                |    3 -
 ucb/source/core/FileAccess.cxx                                          |    3 -
 ucb/source/ucp/ext/ucpext_datasupplier.cxx                              |    3 -
 unotools/source/config/saveopt.cxx                                      |    6 +--
 unoxml/source/rdf/CBlankNode.cxx                                        |    3 -
 unoxml/source/rdf/CLiteral.cxx                                          |    3 -
 unoxml/source/rdf/CURI.cxx                                              |    3 -
 unoxml/source/rdf/librdf_repository.cxx                                 |    3 -
 uui/source/requeststringresolver.cxx                                    |    3 -
 vbahelper/source/vbahelper/vbaglobalbase.cxx                            |    3 -
 vcl/source/app/session.cxx                                              |    3 -
 vcl/source/components/dtranscomp.cxx                                    |    3 -
 vcl/source/gdi/print3.cxx                                               |   18 +++-------
 vcl/unx/generic/dtrans/X11_service.cxx                                  |    9 +----
 vcl/unx/gtk3/app/gtk3gtkinst.cxx                                        |    3 -
 winaccessibility/source/service/msaaservice_impl.cxx                    |    3 -
 xmlscript/source/xmlflat_imexp/xmlbas_export.cxx                        |    6 +--
 xmlscript/source/xmlflat_imexp/xmlbas_import.cxx                        |    6 +--
 xmlsecurity/source/component/certificatecontainer.cxx                   |    3 -
 xmlsecurity/source/xmlsec/serialnumberadapter.cxx                       |    3 -
 274 files changed, 320 insertions(+), 640 deletions(-)

New commits:
commit 8e234c5b7d5bae66c544e581bee5770f3f83dd81
Author: Noel Grandin <noelgrandin at gmail.com>
Date:   Sun Nov 15 08:43:35 2015 +0200

    use initialiser syntax for Sequence<OUString>
    
    replaced using the script:
    
    git grep -lP 'Sequence.*OUString.*\(1\)'
      | xargs perl -0777 -pi
        -e "s/Sequence< OUString > (\w+)\(1\);
    .*\[0\] = (\S+);/Sequence< OUString > \1 { \2 };/g"
    
    Change-Id: I23688a91562051a8eed11fc2a85599545c285c34
    Reviewed-on: https://gerrit.libreoffice.org/19967
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Noel Grandin <noelgrandin at gmail.com>

diff --git a/accessibility/source/extended/accessibletabbar.cxx b/accessibility/source/extended/accessibletabbar.cxx
index 74fe200..b020513 100644
--- a/accessibility/source/extended/accessibletabbar.cxx
+++ b/accessibility/source/extended/accessibletabbar.cxx
@@ -208,8 +208,7 @@ namespace accessibility
 
     Sequence< OUString > AccessibleTabBar::getSupportedServiceNames() throw (RuntimeException, std::exception)
     {
-        Sequence< OUString > aNames(1);
-        aNames[0] = "com.sun.star.awt.AccessibleTabBar";
+        Sequence< OUString > aNames { "com.sun.star.awt.AccessibleTabBar" };
         return aNames;
     }
 
diff --git a/accessibility/source/extended/accessibletabbarpage.cxx b/accessibility/source/extended/accessibletabbarpage.cxx
index 0c1479f..8ce47ce 100644
--- a/accessibility/source/extended/accessibletabbarpage.cxx
+++ b/accessibility/source/extended/accessibletabbarpage.cxx
@@ -240,8 +240,7 @@ namespace accessibility
 
     Sequence< OUString > AccessibleTabBarPage::getSupportedServiceNames() throw (RuntimeException, std::exception)
     {
-        Sequence< OUString > aNames(1);
-        aNames[0] = "com.sun.star.awt.AccessibleTabBarPage";
+        Sequence< OUString > aNames { "com.sun.star.awt.AccessibleTabBarPage" };
         return aNames;
     }
 
diff --git a/accessibility/source/extended/accessibletabbarpagelist.cxx b/accessibility/source/extended/accessibletabbarpagelist.cxx
index 95aaa42..cc0fd41 100644
--- a/accessibility/source/extended/accessibletabbarpagelist.cxx
+++ b/accessibility/source/extended/accessibletabbarpagelist.cxx
@@ -390,8 +390,7 @@ namespace accessibility
 
     Sequence< OUString > AccessibleTabBarPageList::getSupportedServiceNames() throw (RuntimeException, std::exception)
     {
-        Sequence< OUString > aNames(1);
-        aNames[0] = "com.sun.star.awt.AccessibleTabBarPageList";
+        Sequence< OUString > aNames { "com.sun.star.awt.AccessibleTabBarPageList" };
         return aNames;
     }
 
diff --git a/accessibility/source/standard/vclxaccessiblebutton.cxx b/accessibility/source/standard/vclxaccessiblebutton.cxx
index 8f68773..62c8a18 100644
--- a/accessibility/source/standard/vclxaccessiblebutton.cxx
+++ b/accessibility/source/standard/vclxaccessiblebutton.cxx
@@ -133,8 +133,7 @@ OUString VCLXAccessibleButton::getImplementationName() throw (RuntimeException,
 
 Sequence< OUString > VCLXAccessibleButton::getSupportedServiceNames() throw (RuntimeException, std::exception)
 {
-    Sequence< OUString > aNames(1);
-    aNames[0] = "com.sun.star.awt.AccessibleButton";
+    Sequence< OUString > aNames { "com.sun.star.awt.AccessibleButton" };
     return aNames;
 }
 
diff --git a/accessibility/source/standard/vclxaccessiblecheckbox.cxx b/accessibility/source/standard/vclxaccessiblecheckbox.cxx
index 377fe9a..bc77d1c 100644
--- a/accessibility/source/standard/vclxaccessiblecheckbox.cxx
+++ b/accessibility/source/standard/vclxaccessiblecheckbox.cxx
@@ -173,8 +173,7 @@ OUString VCLXAccessibleCheckBox::getImplementationName() throw (RuntimeException
 
 Sequence< OUString > VCLXAccessibleCheckBox::getSupportedServiceNames() throw (RuntimeException, std::exception)
 {
-    Sequence< OUString > aNames(1);
-    aNames[0] = "com.sun.star.awt.AccessibleCheckBox";
+    Sequence< OUString > aNames { "com.sun.star.awt.AccessibleCheckBox" };
     return aNames;
 }
 
diff --git a/accessibility/source/standard/vclxaccessibleedit.cxx b/accessibility/source/standard/vclxaccessibleedit.cxx
index 0f02b3a..26d1381 100644
--- a/accessibility/source/standard/vclxaccessibleedit.cxx
+++ b/accessibility/source/standard/vclxaccessibleedit.cxx
@@ -190,8 +190,7 @@ OUString VCLXAccessibleEdit::getImplementationName() throw (RuntimeException, st
 
 Sequence< OUString > VCLXAccessibleEdit::getSupportedServiceNames() throw (RuntimeException, std::exception)
 {
-    Sequence< OUString > aNames(1);
-    aNames[0] = "com.sun.star.awt.AccessibleEdit";
+    Sequence< OUString > aNames { "com.sun.star.awt.AccessibleEdit" };
     return aNames;
 }
 
diff --git a/accessibility/source/standard/vclxaccessiblefixedhyperlink.cxx b/accessibility/source/standard/vclxaccessiblefixedhyperlink.cxx
index 39e9791..8b7c42e 100644
--- a/accessibility/source/standard/vclxaccessiblefixedhyperlink.cxx
+++ b/accessibility/source/standard/vclxaccessiblefixedhyperlink.cxx
@@ -64,8 +64,7 @@ OUString VCLXAccessibleFixedHyperlink::getImplementationName() throw (uno::Runti
 
 uno::Sequence< OUString > VCLXAccessibleFixedHyperlink::getSupportedServiceNames() throw (uno::RuntimeException, std::exception)
 {
-    uno::Sequence< OUString > aNames(1);
-    aNames[0] = "com.sun.star.awt.AccessibleFixedHyperlink";
+    uno::Sequence< OUString > aNames { "com.sun.star.awt.AccessibleFixedHyperlink" };
     return aNames;
 }
 
diff --git a/accessibility/source/standard/vclxaccessiblefixedtext.cxx b/accessibility/source/standard/vclxaccessiblefixedtext.cxx
index e797185..74d3db4 100644
--- a/accessibility/source/standard/vclxaccessiblefixedtext.cxx
+++ b/accessibility/source/standard/vclxaccessiblefixedtext.cxx
@@ -76,8 +76,7 @@ OUString VCLXAccessibleFixedText::getImplementationName() throw (RuntimeExceptio
 
 Sequence< OUString > VCLXAccessibleFixedText::getSupportedServiceNames() throw (RuntimeException, std::exception)
 {
-    Sequence< OUString > aNames(1);
-    aNames[0] = "com.sun.star.awt.AccessibleFixedText";
+    Sequence< OUString > aNames { "com.sun.star.awt.AccessibleFixedText" };
     return aNames;
 }
 
diff --git a/accessibility/source/standard/vclxaccessiblemenu.cxx b/accessibility/source/standard/vclxaccessiblemenu.cxx
index 80758f8..bd51d09 100644
--- a/accessibility/source/standard/vclxaccessiblemenu.cxx
+++ b/accessibility/source/standard/vclxaccessiblemenu.cxx
@@ -98,8 +98,7 @@ OUString VCLXAccessibleMenu::getImplementationName() throw (RuntimeException, st
 
 Sequence< OUString > VCLXAccessibleMenu::getSupportedServiceNames() throw (RuntimeException, std::exception)
 {
-    Sequence< OUString > aNames(1);
-    aNames[0] = "com.sun.star.awt.AccessibleMenu";
+    Sequence< OUString > aNames { "com.sun.star.awt.AccessibleMenu" };
     return aNames;
 }
 
diff --git a/accessibility/source/standard/vclxaccessiblemenubar.cxx b/accessibility/source/standard/vclxaccessiblemenubar.cxx
index 5f64d99..10340f7 100644
--- a/accessibility/source/standard/vclxaccessiblemenubar.cxx
+++ b/accessibility/source/standard/vclxaccessiblemenubar.cxx
@@ -138,8 +138,7 @@ OUString VCLXAccessibleMenuBar::getImplementationName() throw (RuntimeException,
 
 Sequence< OUString > VCLXAccessibleMenuBar::getSupportedServiceNames() throw (RuntimeException, std::exception)
 {
-    Sequence< OUString > aNames(1);
-    aNames[0] = "com.sun.star.awt.AccessibleMenuBar";
+    Sequence< OUString > aNames { "com.sun.star.awt.AccessibleMenuBar" };
     return aNames;
 }
 
diff --git a/accessibility/source/standard/vclxaccessiblemenuitem.cxx b/accessibility/source/standard/vclxaccessiblemenuitem.cxx
index 6a257fa..a13a9f2 100644
--- a/accessibility/source/standard/vclxaccessiblemenuitem.cxx
+++ b/accessibility/source/standard/vclxaccessiblemenuitem.cxx
@@ -171,8 +171,7 @@ OUString VCLXAccessibleMenuItem::getImplementationName() throw (RuntimeException
 
 Sequence< OUString > VCLXAccessibleMenuItem::getSupportedServiceNames() throw (RuntimeException, std::exception)
 {
-    Sequence< OUString > aNames(1);
-    aNames[0] = "com.sun.star.awt.AccessibleMenuItem";
+    Sequence< OUString > aNames { "com.sun.star.awt.AccessibleMenuItem" };
     return aNames;
 }
 
diff --git a/accessibility/source/standard/vclxaccessiblemenuseparator.cxx b/accessibility/source/standard/vclxaccessiblemenuseparator.cxx
index c0ba530..0ceda9f 100644
--- a/accessibility/source/standard/vclxaccessiblemenuseparator.cxx
+++ b/accessibility/source/standard/vclxaccessiblemenuseparator.cxx
@@ -56,8 +56,7 @@ OUString VCLXAccessibleMenuSeparator::getImplementationName() throw (RuntimeExce
 
 Sequence< OUString > VCLXAccessibleMenuSeparator::getSupportedServiceNames() throw (RuntimeException, std::exception)
 {
-    Sequence< OUString > aNames(1);
-    aNames[0] = "com.sun.star.awt.AccessibleMenuSeparator";
+    Sequence< OUString > aNames { "com.sun.star.awt.AccessibleMenuSeparator" };
     return aNames;
 }
 
diff --git a/accessibility/source/standard/vclxaccessiblepopupmenu.cxx b/accessibility/source/standard/vclxaccessiblepopupmenu.cxx
index b0b3941..ee97f1b 100644
--- a/accessibility/source/standard/vclxaccessiblepopupmenu.cxx
+++ b/accessibility/source/standard/vclxaccessiblepopupmenu.cxx
@@ -63,8 +63,7 @@ OUString VCLXAccessiblePopupMenu::getImplementationName() throw (RuntimeExceptio
 
 Sequence< OUString > VCLXAccessiblePopupMenu::getSupportedServiceNames() throw (RuntimeException, std::exception)
 {
-    Sequence< OUString > aNames(1);
-    aNames[0] = "com.sun.star.awt.AccessiblePopupMenu";
+    Sequence< OUString > aNames { "com.sun.star.awt.AccessiblePopupMenu" };
     return aNames;
 }
 
diff --git a/accessibility/source/standard/vclxaccessibleradiobutton.cxx b/accessibility/source/standard/vclxaccessibleradiobutton.cxx
index 1881c8f..de870fc 100644
--- a/accessibility/source/standard/vclxaccessibleradiobutton.cxx
+++ b/accessibility/source/standard/vclxaccessibleradiobutton.cxx
@@ -148,8 +148,7 @@ OUString VCLXAccessibleRadioButton::getImplementationName() throw (RuntimeExcept
 
 Sequence< OUString > VCLXAccessibleRadioButton::getSupportedServiceNames() throw (RuntimeException, std::exception)
 {
-    Sequence< OUString > aNames(1);
-    aNames[0] = "com.sun.star.awt.AccessibleRadioButton";
+    Sequence< OUString > aNames { "com.sun.star.awt.AccessibleRadioButton" };
     return aNames;
 }
 
diff --git a/accessibility/source/standard/vclxaccessiblescrollbar.cxx b/accessibility/source/standard/vclxaccessiblescrollbar.cxx
index 76e58a6..91b528c 100644
--- a/accessibility/source/standard/vclxaccessiblescrollbar.cxx
+++ b/accessibility/source/standard/vclxaccessiblescrollbar.cxx
@@ -113,8 +113,7 @@ OUString VCLXAccessibleScrollBar::getImplementationName() throw (RuntimeExceptio
 
 Sequence< OUString > VCLXAccessibleScrollBar::getSupportedServiceNames() throw (RuntimeException, std::exception)
 {
-    Sequence< OUString > aNames(1);
-    aNames[0] = "com.sun.star.awt.AccessibleScrollBar";
+    Sequence< OUString > aNames { "com.sun.star.awt.AccessibleScrollBar" };
     return aNames;
 }
 
diff --git a/accessibility/source/standard/vclxaccessiblestatusbar.cxx b/accessibility/source/standard/vclxaccessiblestatusbar.cxx
index 701e62f..a2e4053 100644
--- a/accessibility/source/standard/vclxaccessiblestatusbar.cxx
+++ b/accessibility/source/standard/vclxaccessiblestatusbar.cxx
@@ -290,8 +290,7 @@ OUString VCLXAccessibleStatusBar::getImplementationName() throw (RuntimeExceptio
 
 Sequence< OUString > VCLXAccessibleStatusBar::getSupportedServiceNames() throw (RuntimeException, std::exception)
 {
-    Sequence< OUString > aNames(1);
-    aNames[0] = "com.sun.star.awt.AccessibleStatusBar";
+    Sequence< OUString > aNames { "com.sun.star.awt.AccessibleStatusBar" };
     return aNames;
 }
 
diff --git a/accessibility/source/standard/vclxaccessiblestatusbaritem.cxx b/accessibility/source/standard/vclxaccessiblestatusbaritem.cxx
index 9179ae9..262da8c 100644
--- a/accessibility/source/standard/vclxaccessiblestatusbaritem.cxx
+++ b/accessibility/source/standard/vclxaccessiblestatusbaritem.cxx
@@ -245,8 +245,7 @@ sal_Bool VCLXAccessibleStatusBarItem::supportsService( const OUString& rServiceN
 
 Sequence< OUString > VCLXAccessibleStatusBarItem::getSupportedServiceNames() throw (RuntimeException, std::exception)
 {
-    Sequence< OUString > aNames(1);
-    aNames[0] = "com.sun.star.awt.AccessibleStatusBarItem";
+    Sequence< OUString > aNames { "com.sun.star.awt.AccessibleStatusBarItem" };
     return aNames;
 }
 
diff --git a/accessibility/source/standard/vclxaccessibletabcontrol.cxx b/accessibility/source/standard/vclxaccessibletabcontrol.cxx
index 417b898..2e7c7ae 100644
--- a/accessibility/source/standard/vclxaccessibletabcontrol.cxx
+++ b/accessibility/source/standard/vclxaccessibletabcontrol.cxx
@@ -349,8 +349,7 @@ OUString VCLXAccessibleTabControl::getImplementationName() throw (RuntimeExcepti
 
 Sequence< OUString > VCLXAccessibleTabControl::getSupportedServiceNames() throw (RuntimeException, std::exception)
 {
-    Sequence< OUString > aNames(1);
-    aNames[0] = "com.sun.star.awt.AccessibleTabControl";
+    Sequence< OUString > aNames { "com.sun.star.awt.AccessibleTabControl" };
     return aNames;
 }
 
diff --git a/accessibility/source/standard/vclxaccessibletabpage.cxx b/accessibility/source/standard/vclxaccessibletabpage.cxx
index f279e7d..8b5b5e7 100644
--- a/accessibility/source/standard/vclxaccessibletabpage.cxx
+++ b/accessibility/source/standard/vclxaccessibletabpage.cxx
@@ -277,8 +277,7 @@ sal_Bool VCLXAccessibleTabPage::supportsService( const OUString& rServiceName )
 
 Sequence< OUString > VCLXAccessibleTabPage::getSupportedServiceNames() throw (RuntimeException, std::exception)
 {
-    Sequence< OUString > aNames(1);
-    aNames[0] = "com.sun.star.awt.AccessibleTabPage";
+    Sequence< OUString > aNames { "com.sun.star.awt.AccessibleTabPage" };
     return aNames;
 }
 
diff --git a/avmedia/source/gstreamer/gstframegrabber.cxx b/avmedia/source/gstreamer/gstframegrabber.cxx
index 17ca6b4..cd2eadf 100644
--- a/avmedia/source/gstreamer/gstframegrabber.cxx
+++ b/avmedia/source/gstreamer/gstframegrabber.cxx
@@ -218,8 +218,7 @@ sal_Bool SAL_CALL FrameGrabber::supportsService( const OUString& ServiceName )
 uno::Sequence< OUString > SAL_CALL FrameGrabber::getSupportedServiceNames()
     throw (uno::RuntimeException, std::exception)
 {
-    uno::Sequence< OUString > aRet(1);
-    aRet[0] = AVMEDIA_GST_FRAMEGRABBER_SERVICENAME;
+    uno::Sequence< OUString > aRet { AVMEDIA_GST_FRAMEGRABBER_SERVICENAME };
 
     return aRet;
 }
diff --git a/avmedia/source/opengl/oglframegrabber.cxx b/avmedia/source/opengl/oglframegrabber.cxx
index 551c033..083cb60 100644
--- a/avmedia/source/opengl/oglframegrabber.cxx
+++ b/avmedia/source/opengl/oglframegrabber.cxx
@@ -63,8 +63,7 @@ sal_Bool SAL_CALL OGLFrameGrabber::supportsService( const OUString& rServiceName
 uno::Sequence< OUString > SAL_CALL OGLFrameGrabber::getSupportedServiceNames()
         throw ( uno::RuntimeException, std::exception )
 {
-    uno::Sequence< OUString > aRet(1);
-    aRet[0] = "com.sun.star.media.FrameGrabber_OpenGL";
+    uno::Sequence< OUString > aRet { "com.sun.star.media.FrameGrabber_OpenGL" };
     return aRet;
 }
 
diff --git a/avmedia/source/opengl/oglmanager.cxx b/avmedia/source/opengl/oglmanager.cxx
index 1c329eb..d17f7ac 100644
--- a/avmedia/source/opengl/oglmanager.cxx
+++ b/avmedia/source/opengl/oglmanager.cxx
@@ -55,8 +55,7 @@ sal_Bool SAL_CALL OGLManager::supportsService( const OUString& rServiceName )
 uno::Sequence< OUString > SAL_CALL OGLManager::getSupportedServiceNames()
         throw ( uno::RuntimeException, std::exception )
 {
-    ::uno::Sequence< OUString > aRet(1);
-    aRet[0] = "com.sun.star.media.Manager_OpenGL";
+    ::uno::Sequence< OUString > aRet { "com.sun.star.media.Manager_OpenGL" };
     return aRet;
 }
 
diff --git a/avmedia/source/opengl/oglplayer.cxx b/avmedia/source/opengl/oglplayer.cxx
index df1a78d..4aade3c 100644
--- a/avmedia/source/opengl/oglplayer.cxx
+++ b/avmedia/source/opengl/oglplayer.cxx
@@ -356,8 +356,7 @@ sal_Bool SAL_CALL OGLPlayer::supportsService( const OUString& rServiceName )
 uno::Sequence< OUString > SAL_CALL OGLPlayer::getSupportedServiceNames()
      throw ( uno::RuntimeException, std::exception )
 {
-    uno::Sequence< OUString > aRet(1);
-    aRet[0] = "com.sun.star.media.Player_OpenGL";
+    uno::Sequence< OUString > aRet { "com.sun.star.media.Player_OpenGL" };
     return aRet;
 }
 
diff --git a/avmedia/source/opengl/oglwindow.cxx b/avmedia/source/opengl/oglwindow.cxx
index ca60b47..a9ef414 100644
--- a/avmedia/source/opengl/oglwindow.cxx
+++ b/avmedia/source/opengl/oglwindow.cxx
@@ -70,8 +70,7 @@ sal_Bool SAL_CALL OGLWindow::supportsService( const OUString& rServiceName ) thr
 
 uno::Sequence< OUString > SAL_CALL OGLWindow::getSupportedServiceNames() throw (css::uno::RuntimeException, std::exception)
 {
-    uno::Sequence< OUString > aRet(1);
-    aRet[0] = "com.sun.star.media.Window_OpenGL";
+    uno::Sequence< OUString > aRet { "com.sun.star.media.Window_OpenGL" };
     return aRet;
 }
 
diff --git a/avmedia/source/vlc/vlcframegrabber.cxx b/avmedia/source/vlc/vlcframegrabber.cxx
index cdf4a34..850b72f 100644
--- a/avmedia/source/vlc/vlcframegrabber.cxx
+++ b/avmedia/source/vlc/vlcframegrabber.cxx
@@ -126,8 +126,7 @@ sal_Bool SAL_CALL VLCFrameGrabber::supportsService( const ::rtl::OUString& servi
 ::uno::Sequence< ::rtl::OUString > SAL_CALL VLCFrameGrabber::getSupportedServiceNames()
         throw ( css::uno::RuntimeException, std::exception )
 {
-    ::uno::Sequence< OUString > aRet(1);
-    aRet[0] = AVMEDIA_VLC_GRABBER_SERVICENAME;
+    ::uno::Sequence< OUString > aRet { AVMEDIA_VLC_GRABBER_SERVICENAME };
     return aRet;
 }
 
diff --git a/avmedia/source/vlc/vlcmanager.cxx b/avmedia/source/vlc/vlcmanager.cxx
index 71ac8ab..abdfaf2 100644
--- a/avmedia/source/vlc/vlcmanager.cxx
+++ b/avmedia/source/vlc/vlcmanager.cxx
@@ -121,8 +121,7 @@ sal_Bool SAL_CALL Manager::supportsService( const rtl::OUString& serviceName )
 uno::Sequence< rtl::OUString > SAL_CALL Manager::getSupportedServiceNames()
     throw (uno::RuntimeException, std::exception)
 {
-    ::uno::Sequence< OUString > aRet(1);
-    aRet[0] = VLC_SERVICENAME;
+    ::uno::Sequence< OUString > aRet { VLC_SERVICENAME };
     return aRet;
 }
 
diff --git a/avmedia/source/vlc/vlcplayer.cxx b/avmedia/source/vlc/vlcplayer.cxx
index f20bd61..6e1b3b1 100644
--- a/avmedia/source/vlc/vlcplayer.cxx
+++ b/avmedia/source/vlc/vlcplayer.cxx
@@ -266,8 +266,7 @@ sal_Bool SAL_CALL VLCPlayer::supportsService( const ::rtl::OUString& serviceName
 ::uno::Sequence< ::rtl::OUString > SAL_CALL VLCPlayer::getSupportedServiceNames()
      throw ( css::uno::RuntimeException, std::exception )
 {
-    uno::Sequence< OUString > aRet(1);
-    aRet[0] = AVMEDIA_VLC_PLAYER_SERVICENAME;
+    uno::Sequence< OUString > aRet { AVMEDIA_VLC_PLAYER_SERVICENAME };
     return aRet;
 }
 
diff --git a/avmedia/source/vlc/vlcwindow.cxx b/avmedia/source/vlc/vlcwindow.cxx
index ffac437..3105ebf 100644
--- a/avmedia/source/vlc/vlcwindow.cxx
+++ b/avmedia/source/vlc/vlcwindow.cxx
@@ -103,8 +103,7 @@ sal_Bool SAL_CALL VLCWindow::supportsService( const ::rtl::OUString& serviceName
 
 uno::Sequence< ::rtl::OUString > SAL_CALL VLCWindow::getSupportedServiceNames() throw (css::uno::RuntimeException, std::exception)
 {
-    uno::Sequence< OUString > aRet(1);
-    aRet[0] = AVMEDIA_VLC_WINDOW_SERVICENAME;
+    uno::Sequence< OUString > aRet { AVMEDIA_VLC_WINDOW_SERVICENAME };
     return aRet;
 }
 
diff --git a/bridges/test/java_uno/acquire/testacquire.cxx b/bridges/test/java_uno/acquire/testacquire.cxx
index 6ae649b..c3dd614 100644
--- a/bridges/test/java_uno/acquire/testacquire.cxx
+++ b/bridges/test/java_uno/acquire/testacquire.cxx
@@ -475,8 +475,7 @@ OUString Service::getImplementationName_static() {
 }
 
 css::uno::Sequence< OUString > Service::getSupportedServiceNames_static() {
-    css::uno::Sequence< OUString > names(1);
-    names[0] = "com.sun.star.test.bridges.testacquire";
+    css::uno::Sequence< OUString > names { "com.sun.star.test.bridges.testacquire" };
     return names;
 }
 
diff --git a/bridges/test/java_uno/equals/testequals.cxx b/bridges/test/java_uno/equals/testequals.cxx
index ed327ee..651b80d 100644
--- a/bridges/test/java_uno/equals/testequals.cxx
+++ b/bridges/test/java_uno/equals/testequals.cxx
@@ -120,8 +120,7 @@ Service::get(OUString const & rName) throw (css::uno::RuntimeException)
 
 css::uno::Sequence< OUString > Service::getSupportedServiceNames_static()
 {
-    css::uno::Sequence< OUString > aNames(1);
-    aNames[0] = "com.sun.star.test.bridges.testequals";
+    css::uno::Sequence< OUString > aNames { "com.sun.star.test.bridges.testequals" };
     return aNames;
 }
 
diff --git a/canvas/source/cairo/cairo_canvasbitmap.cxx b/canvas/source/cairo/cairo_canvasbitmap.cxx
index 9a2cad1..947d185 100644
--- a/canvas/source/cairo/cairo_canvasbitmap.cxx
+++ b/canvas/source/cairo/cairo_canvasbitmap.cxx
@@ -213,8 +213,7 @@ namespace cairocanvas
 
     uno::Sequence< OUString > SAL_CALL CanvasBitmap::getSupportedServiceNames(  ) throw (uno::RuntimeException, std::exception)
     {
-        uno::Sequence< OUString > aRet(1);
-        aRet[0] = "com.sun.star.rendering.CanvasBitmap";
+        uno::Sequence< OUString > aRet { "com.sun.star.rendering.CanvasBitmap" };
 
         return aRet;
     }
diff --git a/canvas/source/cairo/cairo_canvascustomsprite.cxx b/canvas/source/cairo/cairo_canvascustomsprite.cxx
index 2a2d94c..e527cb4 100644
--- a/canvas/source/cairo/cairo_canvascustomsprite.cxx
+++ b/canvas/source/cairo/cairo_canvascustomsprite.cxx
@@ -149,8 +149,7 @@ namespace cairocanvas
 
     uno::Sequence< OUString > SAL_CALL CanvasCustomSprite::getSupportedServiceNames()  throw( uno::RuntimeException, std::exception )
     {
-        uno::Sequence< OUString > aRet(1);
-        aRet[0] = "com.sun.star.rendering.CanvasCustomSprite";
+        uno::Sequence< OUString > aRet { "com.sun.star.rendering.CanvasCustomSprite" };
 
         return aRet;
     }
diff --git a/canvas/source/cairo/cairo_canvasfont.cxx b/canvas/source/cairo/cairo_canvasfont.cxx
index 2a5bdbb..875feae 100644
--- a/canvas/source/cairo/cairo_canvasfont.cxx
+++ b/canvas/source/cairo/cairo_canvasfont.cxx
@@ -149,8 +149,7 @@ namespace cairocanvas
 
     uno::Sequence< OUString > SAL_CALL CanvasFont::getSupportedServiceNames()  throw( uno::RuntimeException, std::exception )
     {
-        uno::Sequence< OUString > aRet(1);
-        aRet[0] = "com.sun.star.rendering.CanvasFont";
+        uno::Sequence< OUString > aRet { "com.sun.star.rendering.CanvasFont" };
 
         return aRet;
     }
diff --git a/canvas/source/cairo/cairo_textlayout.cxx b/canvas/source/cairo/cairo_textlayout.cxx
index 2f4af89..58a860a 100644
--- a/canvas/source/cairo/cairo_textlayout.cxx
+++ b/canvas/source/cairo/cairo_textlayout.cxx
@@ -591,8 +591,7 @@ namespace cairocanvas
 
     uno::Sequence< OUString > SAL_CALL TextLayout::getSupportedServiceNames()  throw( uno::RuntimeException, std::exception )
     {
-        uno::Sequence< OUString > aRet(1);
-        aRet[0] = "com.sun.star.rendering.TextLayout";
+        uno::Sequence< OUString > aRet { "com.sun.star.rendering.TextLayout" };
 
         return aRet;
     }
diff --git a/canvas/source/directx/dx_canvasbitmap.cxx b/canvas/source/directx/dx_canvasbitmap.cxx
index c30c74f..2af84a5 100644
--- a/canvas/source/directx/dx_canvasbitmap.cxx
+++ b/canvas/source/directx/dx_canvasbitmap.cxx
@@ -256,8 +256,7 @@ namespace dxcanvas
 
     uno::Sequence< OUString > SAL_CALL CanvasBitmap::getSupportedServiceNames(  ) throw (uno::RuntimeException)
     {
-        uno::Sequence< OUString > aRet(1);
-        aRet[0] = "com.sun.star.rendering.CanvasBitmap";
+        uno::Sequence< OUString > aRet { "com.sun.star.rendering.CanvasBitmap" };
 
         return aRet;
     }
diff --git a/canvas/source/directx/dx_canvascustomsprite.cxx b/canvas/source/directx/dx_canvascustomsprite.cxx
index b629542..e56237a 100644
--- a/canvas/source/directx/dx_canvascustomsprite.cxx
+++ b/canvas/source/directx/dx_canvascustomsprite.cxx
@@ -93,8 +93,7 @@ namespace dxcanvas
 
     uno::Sequence< OUString > SAL_CALL CanvasCustomSprite::getSupportedServiceNames()  throw( uno::RuntimeException )
     {
-        uno::Sequence< OUString > aRet(1);
-        aRet[0] = "com.sun.star.rendering.CanvasCustomSprite";
+        uno::Sequence< OUString > aRet { "com.sun.star.rendering.CanvasCustomSprite" };
 
         return aRet;
     }
diff --git a/canvas/source/directx/dx_canvasfont.cxx b/canvas/source/directx/dx_canvasfont.cxx
index 9252837..95ec59a 100644
--- a/canvas/source/directx/dx_canvasfont.cxx
+++ b/canvas/source/directx/dx_canvasfont.cxx
@@ -134,8 +134,7 @@ namespace dxcanvas
 
     uno::Sequence< OUString > SAL_CALL CanvasFont::getSupportedServiceNames()  throw( uno::RuntimeException )
     {
-        uno::Sequence< OUString > aRet(1);
-        aRet[0] = "com.sun.star.rendering.CanvasFont";
+        uno::Sequence< OUString > aRet { "com.sun.star.rendering.CanvasFont" };
 
         return aRet;
     }
diff --git a/canvas/source/directx/dx_config.cxx b/canvas/source/directx/dx_config.cxx
index be4c3c7..2ab26c1 100644
--- a/canvas/source/directx/dx_config.cxx
+++ b/canvas/source/directx/dx_config.cxx
@@ -43,8 +43,7 @@ namespace dxcanvas
     {
         try
         {
-            uno::Sequence< OUString > aName(1);
-            aName[0] = "DeviceBlacklist";
+            uno::Sequence< OUString > aName { "DeviceBlacklist" };
 
             uno::Sequence< uno::Any > aProps( GetProperties( aName ));
             uno::Sequence< sal_Int32 > aValues;
@@ -96,8 +95,7 @@ namespace dxcanvas
 
         try
         {
-            uno::Sequence< OUString > aName(1);
-            aName[0] = "DeviceBlacklist";
+            uno::Sequence< OUString > aName { "DeviceBlacklist" };
 
             uno::Sequence< sal_Int32 > aValues( sizeof(DeviceInfo)/sizeof(sal_Int32)*maValues.size() );
 
diff --git a/canvas/source/directx/dx_textlayout.cxx b/canvas/source/directx/dx_textlayout.cxx
index fea9d96..fc3111a 100644
--- a/canvas/source/directx/dx_textlayout.cxx
+++ b/canvas/source/directx/dx_textlayout.cxx
@@ -258,8 +258,7 @@ namespace dxcanvas
 
     uno::Sequence< OUString > SAL_CALL TextLayout::getSupportedServiceNames()  throw( uno::RuntimeException )
     {
-        uno::Sequence< OUString > aRet(1);
-        aRet[0] = "com.sun.star.rendering.TextLayout";
+        uno::Sequence< OUString > aRet { "com.sun.star.rendering.TextLayout" };
 
         return aRet;
     }
diff --git a/canvas/source/tools/cachedprimitivebase.cxx b/canvas/source/tools/cachedprimitivebase.cxx
index 02bf2ea..23f801e 100644
--- a/canvas/source/tools/cachedprimitivebase.cxx
+++ b/canvas/source/tools/cachedprimitivebase.cxx
@@ -91,8 +91,7 @@ namespace canvas
 
     uno::Sequence< OUString > SAL_CALL CachedPrimitiveBase::getSupportedServiceNames(  ) throw (uno::RuntimeException, std::exception)
     {
-        uno::Sequence< OUString > aRet(1);
-        aRet[0] = "com.sun.star.rendering.CachedBitmap";
+        uno::Sequence< OUString > aRet { "com.sun.star.rendering.CachedBitmap" };
 
         return aRet;
     }
diff --git a/canvas/source/tools/parametricpolypolygon.cxx b/canvas/source/tools/parametricpolypolygon.cxx
index 29b35a3..e38ab87 100644
--- a/canvas/source/tools/parametricpolypolygon.cxx
+++ b/canvas/source/tools/parametricpolypolygon.cxx
@@ -211,8 +211,7 @@ namespace canvas
 
     uno::Sequence< OUString > SAL_CALL ParametricPolyPolygon::getSupportedServiceNames(  ) throw (uno::RuntimeException, std::exception)
     {
-        uno::Sequence< OUString > aRet(1);
-        aRet[0] = "com.sun.star.rendering.ParametricPolyPolygon";
+        uno::Sequence< OUString > aRet { "com.sun.star.rendering.ParametricPolyPolygon" };
 
         return aRet;
     }
diff --git a/canvas/source/vcl/canvasbitmap.cxx b/canvas/source/vcl/canvasbitmap.cxx
index 3bb99f1..a254f00 100644
--- a/canvas/source/vcl/canvasbitmap.cxx
+++ b/canvas/source/vcl/canvasbitmap.cxx
@@ -86,8 +86,7 @@ namespace vclcanvas
 
     uno::Sequence< OUString > SAL_CALL CanvasBitmap::getSupportedServiceNames(  ) throw (uno::RuntimeException, std::exception)
     {
-        uno::Sequence< OUString > aRet(1);
-        aRet[0] = "com.sun.star.rendering.CanvasBitmap";
+        uno::Sequence< OUString > aRet { "com.sun.star.rendering.CanvasBitmap" };
 
         return aRet;
     }
diff --git a/canvas/source/vcl/canvascustomsprite.cxx b/canvas/source/vcl/canvascustomsprite.cxx
index aec9d8f..e6a4547 100644
--- a/canvas/source/vcl/canvascustomsprite.cxx
+++ b/canvas/source/vcl/canvascustomsprite.cxx
@@ -127,8 +127,7 @@ namespace vclcanvas
 
     uno::Sequence< OUString > SAL_CALL CanvasCustomSprite::getSupportedServiceNames()  throw( uno::RuntimeException, std::exception )
     {
-        uno::Sequence< OUString > aRet(1);
-        aRet[0] = "com.sun.star.rendering.CanvasCustomSprite";
+        uno::Sequence< OUString > aRet { "com.sun.star.rendering.CanvasCustomSprite" };
 
         return aRet;
     }
diff --git a/canvas/source/vcl/canvasfont.cxx b/canvas/source/vcl/canvasfont.cxx
index d474e80..efb8809 100644
--- a/canvas/source/vcl/canvasfont.cxx
+++ b/canvas/source/vcl/canvasfont.cxx
@@ -161,8 +161,7 @@ namespace vclcanvas
 
     uno::Sequence< OUString > SAL_CALL CanvasFont::getSupportedServiceNames()  throw( uno::RuntimeException, std::exception )
     {
-        uno::Sequence< OUString > aRet(1);
-        aRet[0] = "com.sun.star.rendering.CanvasFont";
+        uno::Sequence< OUString > aRet { "com.sun.star.rendering.CanvasFont" };
 
         return aRet;
     }
diff --git a/canvas/source/vcl/textlayout.cxx b/canvas/source/vcl/textlayout.cxx
index d86fb80..13cf03c 100644
--- a/canvas/source/vcl/textlayout.cxx
+++ b/canvas/source/vcl/textlayout.cxx
@@ -472,8 +472,7 @@ namespace vclcanvas
 
     uno::Sequence< OUString > SAL_CALL TextLayout::getSupportedServiceNames()  throw( uno::RuntimeException, std::exception )
     {
-        uno::Sequence< OUString > aRet(1);
-        aRet[0] = "com.sun.star.rendering.TextLayout";
+        uno::Sequence< OUString > aRet { "com.sun.star.rendering.TextLayout" };
 
         return aRet;
     }
diff --git a/chart2/source/controller/main/ChartController.cxx b/chart2/source/controller/main/ChartController.cxx
index b963101..e969b51 100644
--- a/chart2/source/controller/main/ChartController.cxx
+++ b/chart2/source/controller/main/ChartController.cxx
@@ -1460,8 +1460,7 @@ uno::Sequence< OUString > SAL_CALL
     ChartController::getAvailableServiceNames()
         throw (uno::RuntimeException, std::exception)
 {
-    uno::Sequence< OUString > aServiceNames(1);
-    aServiceNames[0] = CHART_ACCESSIBLE_TEXT_SERVICE_NAME;
+    uno::Sequence< OUString > aServiceNames { CHART_ACCESSIBLE_TEXT_SERVICE_NAME };
     return aServiceNames;
 }
 
diff --git a/chart2/source/model/template/GL3DBarChartType.cxx b/chart2/source/model/template/GL3DBarChartType.cxx
index b4dbd06..09d62f2 100644
--- a/chart2/source/model/template/GL3DBarChartType.cxx
+++ b/chart2/source/model/template/GL3DBarChartType.cxx
@@ -142,8 +142,7 @@ OUString SAL_CALL GL3DBarChartType::getChartType()
 uno::Sequence<OUString> GL3DBarChartType::getSupportedPropertyRoles()
         throw (::com::sun::star::uno::RuntimeException, std::exception)
 {
-    uno::Sequence< OUString > aPropRoles(1);
-    aPropRoles[0] = "FillColor";
+    uno::Sequence< OUString > aPropRoles { "FillColor" };
 
     return aPropRoles;
 }
diff --git a/chart2/source/tools/Scaling.cxx b/chart2/source/tools/Scaling.cxx
index 87237d0..d61b359 100644
--- a/chart2/source/tools/Scaling.cxx
+++ b/chart2/source/tools/Scaling.cxx
@@ -79,8 +79,7 @@ OUString SAL_CALL LogarithmicScaling::getServiceName()
 
 uno::Sequence< OUString > LogarithmicScaling::getSupportedServiceNames_Static()
 {
-    uno::Sequence< OUString > aSeq(1);
-    aSeq.getArray()[0] = lcl_aServiceName_Logarithmic;
+    uno::Sequence< OUString > aSeq { lcl_aServiceName_Logarithmic };
     return aSeq;
 }
 
@@ -148,8 +147,7 @@ OUString SAL_CALL ExponentialScaling::getServiceName()
 
 uno::Sequence< OUString > ExponentialScaling::getSupportedServiceNames_Static()
 {
-    uno::Sequence< OUString > aSeq(1);
-    aSeq.getArray()[0] = lcl_aServiceName_Exponential;
+    uno::Sequence< OUString > aSeq { lcl_aServiceName_Exponential };
     return aSeq;
 }
 
@@ -221,8 +219,7 @@ OUString SAL_CALL LinearScaling::getServiceName()
 
 uno::Sequence< OUString > LinearScaling::getSupportedServiceNames_Static()
 {
-    uno::Sequence< OUString > aSeq(1);
-    aSeq.getArray()[0] = lcl_aServiceName_Linear;
+    uno::Sequence< OUString > aSeq { lcl_aServiceName_Linear };
     return aSeq;
 }
 
@@ -293,8 +290,7 @@ PowerScaling::getServiceName()
 
 uno::Sequence< OUString > PowerScaling::getSupportedServiceNames_Static()
 {
-    uno::Sequence< OUString > aSeq(1);
-    aSeq.getArray()[0] = lcl_aServiceName_Power;
+    uno::Sequence< OUString > aSeq { lcl_aServiceName_Power };
     return aSeq;
 }
 
diff --git a/chart2/source/view/axes/DateScaling.cxx b/chart2/source/view/axes/DateScaling.cxx
index 52d8ef7..d1ee1d9 100644
--- a/chart2/source/view/axes/DateScaling.cxx
+++ b/chart2/source/view/axes/DateScaling.cxx
@@ -106,8 +106,7 @@ OUString SAL_CALL DateScaling::getServiceName()
 
 uno::Sequence< OUString > DateScaling::getSupportedServiceNames_Static()
 {
-    uno::Sequence< OUString > aSeq(1);
-    aSeq.getArray()[0] = lcl_aServiceName_DateScaling;
+    uno::Sequence< OUString > aSeq { lcl_aServiceName_DateScaling };
     return aSeq;
 }
 
diff --git a/comphelper/source/container/enumerablemap.cxx b/comphelper/source/container/enumerablemap.cxx
index 897bd02..583a227 100644
--- a/comphelper/source/container/enumerablemap.cxx
+++ b/comphelper/source/container/enumerablemap.cxx
@@ -672,8 +672,7 @@ namespace comphelper
 
     Sequence< OUString > SAL_CALL EnumerableMap::getSupportedServiceNames_static(  )
     {
-        Sequence< OUString > aServiceNames(1);
-        aServiceNames[0] = "com.sun.star.container.EnumerableMap";
+        Sequence< OUString > aServiceNames { "com.sun.star.container.EnumerableMap" };
         return aServiceNames;
     }
 
diff --git a/comphelper/source/property/opropertybag.cxx b/comphelper/source/property/opropertybag.cxx
index 269c63a..b31c617 100644
--- a/comphelper/source/property/opropertybag.cxx
+++ b/comphelper/source/property/opropertybag.cxx
@@ -78,8 +78,7 @@ namespace comphelper
 
     Sequence< OUString > OPropertyBag::getSupportedServiceNames_static() throw( RuntimeException )
     {
-        Sequence< OUString > aServices(1);
-        aServices[0] = "com.sun.star.beans.PropertyBag";
+        Sequence< OUString > aServices { "com.sun.star.beans.PropertyBag" };
         return aServices;
     }
 
diff --git a/comphelper/source/streaming/memorystream.cxx b/comphelper/source/streaming/memorystream.cxx
index 89f3d8a..35b99a8 100644
--- a/comphelper/source/streaming/memorystream.cxx
+++ b/comphelper/source/streaming/memorystream.cxx
@@ -219,8 +219,7 @@ OUString SAL_CALL UNOMemoryStream::getImplementationName_static()
 
 Sequence< OUString > SAL_CALL UNOMemoryStream::getSupportedServiceNames_static()
 {
-    Sequence< OUString > aSeq(1);
-    aSeq[0] = getImplementationName_static();
+    Sequence< OUString > aSeq { getImplementationName_static() };
     return aSeq;
 }
 
diff --git a/connectivity/source/cpool/ZPoolCollection.cxx b/connectivity/source/cpool/ZPoolCollection.cxx
index 4e4bbc2..d04dd4e 100644
--- a/connectivity/source/cpool/ZPoolCollection.cxx
+++ b/connectivity/source/cpool/ZPoolCollection.cxx
@@ -164,8 +164,7 @@ OUString SAL_CALL OPoolCollection::getImplementationName_Static(  ) throw(Runtim
 
 Sequence< OUString > SAL_CALL OPoolCollection::getSupportedServiceNames_Static(  ) throw(RuntimeException)
 {
-    Sequence< OUString > aSupported(1);
-    aSupported[0] = "com.sun.star.sdbc.ConnectionPool";
+    Sequence< OUString > aSupported { "com.sun.star.sdbc.ConnectionPool" };
     return aSupported;
 }
 
diff --git a/connectivity/source/drivers/evoab2/NCatalog.cxx b/connectivity/source/drivers/evoab2/NCatalog.cxx
index f5c3938..7d670e3 100644
--- a/connectivity/source/drivers/evoab2/NCatalog.cxx
+++ b/connectivity/source/drivers/evoab2/NCatalog.cxx
@@ -42,8 +42,7 @@ OEvoabCatalog::OEvoabCatalog(OEvoabConnection* _pCon) :
 void OEvoabCatalog::refreshTables()
 {
     TStringVector aVector;
-    Sequence< OUString > aTypes(1);
-    aTypes[0] = "TABLE";
+    Sequence< OUString > aTypes { "TABLE" };
     Reference< XResultSet > xResult = m_xMetaData->getTables(
         Any(), "%", "%", aTypes);
 
diff --git a/connectivity/source/drivers/evoab2/NResultSet.cxx b/connectivity/source/drivers/evoab2/NResultSet.cxx
index 5373c2f..0b9310b 100644
--- a/connectivity/source/drivers/evoab2/NResultSet.cxx
+++ b/connectivity/source/drivers/evoab2/NResultSet.cxx
@@ -71,8 +71,7 @@ OUString SAL_CALL OEvoabResultSet::getImplementationName(  ) throw ( RuntimeExce
 
  Sequence< OUString > SAL_CALL OEvoabResultSet::getSupportedServiceNames(  ) throw( RuntimeException, std::exception)
 {
-     Sequence< OUString > aSupported(1);
-    aSupported[0] = "com.sun.star.sdbc.ResultSet";
+     Sequence< OUString > aSupported { "com.sun.star.sdbc.ResultSet" };
     return aSupported;
 }
 
diff --git a/connectivity/source/drivers/evoab2/NTables.cxx b/connectivity/source/drivers/evoab2/NTables.cxx
index db5579d..67a6983 100644
--- a/connectivity/source/drivers/evoab2/NTables.cxx
+++ b/connectivity/source/drivers/evoab2/NTables.cxx
@@ -49,8 +49,7 @@ ObjectType OEvoabTables::createObject(const OUString& aName)
 {
     OUString aSchema(  "%" );
 
-    Sequence< OUString > aTypes(1);
-    aTypes[0] = "TABLE";
+    Sequence< OUString > aTypes { "TABLE" };
 
     Reference< XResultSet > xResult = m_xMetaData->getTables(Any(),aSchema,aName,aTypes);
 
diff --git a/connectivity/source/drivers/hsqldb/HCatalog.cxx b/connectivity/source/drivers/hsqldb/HCatalog.cxx
index d02033e..797c51f 100644
--- a/connectivity/source/drivers/hsqldb/HCatalog.cxx
+++ b/connectivity/source/drivers/hsqldb/HCatalog.cxx
@@ -70,8 +70,7 @@ void OHCatalog::refreshTables()
 
 void OHCatalog::refreshViews()
 {
-    Sequence< OUString > aTypes(1);
-    aTypes[0] = "VIEW";
+    Sequence< OUString > aTypes { "VIEW" };
 
     bool bSupportsViews = false;
     try
diff --git a/connectivity/source/drivers/hsqldb/HColumns.cxx b/connectivity/source/drivers/hsqldb/HColumns.cxx
index 5ddc36c..42bd2a7 100644
--- a/connectivity/source/drivers/hsqldb/HColumns.cxx
+++ b/connectivity/source/drivers/hsqldb/HColumns.cxx
@@ -71,8 +71,7 @@ void OHSQLColumn::construct()
 
 Sequence< OUString > SAL_CALL OHSQLColumn::getSupportedServiceNames(  ) throw(RuntimeException, std::exception)
 {
-    Sequence< OUString > aSupported(1);
-    aSupported[0] = "com.sun.star.sdbcx.Column";
+    Sequence< OUString > aSupported { "com.sun.star.sdbcx.Column" };
 
     return aSupported;
 }
diff --git a/connectivity/source/drivers/kab/KCatalog.cxx b/connectivity/source/drivers/kab/KCatalog.cxx
index 818023d..c9a48a1 100644
--- a/connectivity/source/drivers/kab/KCatalog.cxx
+++ b/connectivity/source/drivers/kab/KCatalog.cxx
@@ -42,8 +42,7 @@ KabCatalog::KabCatalog(KabConnection* _pCon)
 void KabCatalog::refreshTables()
 {
     TStringVector aVector;
-    Sequence< OUString > aTypes(1);
-    aTypes[0] = "%";
+    Sequence< OUString > aTypes { "%" };
     Reference< XResultSet > xResult = m_xMetaData->getTables(
         Any(),
         OUString("%"),
diff --git a/connectivity/source/drivers/kab/KTables.cxx b/connectivity/source/drivers/kab/KTables.cxx
index c74523a..085b34b 100644
--- a/connectivity/source/drivers/kab/KTables.cxx
+++ b/connectivity/source/drivers/kab/KTables.cxx
@@ -41,8 +41,7 @@ sdbcx::ObjectType KabTables::createObject(const OUString& _rName)
     aSchema = "%";
     aName = _rName;
 
-    Sequence< OUString > aTypes(1);
-    aTypes[0] = "%";
+    Sequence< OUString > aTypes { "%" };
 
     Reference< XResultSet > xResult = m_xMetaData->getTables(Any(), aSchema, aName, aTypes);
 
diff --git a/connectivity/source/drivers/macab/MacabCatalog.cxx b/connectivity/source/drivers/macab/MacabCatalog.cxx
index 33a97c8..a6c2095 100644
--- a/connectivity/source/drivers/macab/MacabCatalog.cxx
+++ b/connectivity/source/drivers/macab/MacabCatalog.cxx
@@ -42,8 +42,7 @@ MacabCatalog::MacabCatalog(MacabConnection* _pCon)
 void MacabCatalog::refreshTables()
 {
     TStringVector aVector;
-    Sequence< OUString > aTypes(1);
-    aTypes[0] = "%";
+    Sequence< OUString > aTypes { "%" };
     Reference< XResultSet > xResult = m_xMetaData->getTables(
         Any(), "%", "%", aTypes);
 
diff --git a/connectivity/source/drivers/macab/MacabTables.cxx b/connectivity/source/drivers/macab/MacabTables.cxx
index ee724de..a97c034 100644
--- a/connectivity/source/drivers/macab/MacabTables.cxx
+++ b/connectivity/source/drivers/macab/MacabTables.cxx
@@ -41,8 +41,7 @@ sdbcx::ObjectType MacabTables::createObject(const OUString& _rName)
     aSchema = "%";
     aName = _rName;
 
-    Sequence< OUString > aTypes(1);
-    aTypes[0] = "%";
+    Sequence< OUString > aTypes { "%" };
 
     Reference< XResultSet > xResult = m_xMetaData->getTables(Any(), aSchema, aName, aTypes);
 
diff --git a/connectivity/source/drivers/mork/MCatalog.cxx b/connectivity/source/drivers/mork/MCatalog.cxx
index 9a4e935..5ff0755 100644
--- a/connectivity/source/drivers/mork/MCatalog.cxx
+++ b/connectivity/source/drivers/mork/MCatalog.cxx
@@ -50,8 +50,7 @@ OCatalog::OCatalog(OConnection* _pCon) : connectivity::sdbcx::OCatalog(_pCon)
 void OCatalog::refreshTables()
 {
     TStringVector aVector;
-    Sequence< OUString > aTypes(1);
-    aTypes[0] = "%";
+    Sequence< OUString > aTypes { "%" };
     Reference< XResultSet > xResult = m_xMetaData->getTables(Any(),
         "%", "%", aTypes);
 
diff --git a/connectivity/source/drivers/mork/MDriver.cxx b/connectivity/source/drivers/mork/MDriver.cxx
index 48fd9a8..4c944b9 100644
--- a/connectivity/source/drivers/mork/MDriver.cxx
+++ b/connectivity/source/drivers/mork/MDriver.cxx
@@ -47,8 +47,7 @@ OUString MorkDriver::getImplementationName_Static(  ) throw(css::uno::RuntimeExc
 
 css::uno::Sequence< OUString > MorkDriver::getSupportedServiceNames_Static(  ) throw (css::uno::RuntimeException)
 {
-    css::uno::Sequence< OUString > aSNS(1);
-    aSNS[0] = "com.sun.star.sdbc.Driver";
+    css::uno::Sequence< OUString > aSNS { "com.sun.star.sdbc.Driver" };
     return aSNS;
 }
 
diff --git a/connectivity/source/drivers/mork/MTables.cxx b/connectivity/source/drivers/mork/MTables.cxx
index 36150d3..3103230 100644
--- a/connectivity/source/drivers/mork/MTables.cxx
+++ b/connectivity/source/drivers/mork/MTables.cxx
@@ -50,8 +50,7 @@ sdbcx::ObjectType OTables::createObject(const OUString& _rName)
     aSchema = "%";
     aName = _rName;
 
-    Sequence< OUString > aTypes(1);
-    aTypes[0] = "%";
+    Sequence< OUString > aTypes { "%" };
 
     Reference< XResultSet > xResult = m_xMetaData->getTables(Any(),aSchema,aName,aTypes);
 
diff --git a/connectivity/source/drivers/mysql/YCatalog.cxx b/connectivity/source/drivers/mysql/YCatalog.cxx
index ab79da8..6556755 100644
--- a/connectivity/source/drivers/mysql/YCatalog.cxx
+++ b/connectivity/source/drivers/mysql/YCatalog.cxx
@@ -73,8 +73,7 @@ void OMySQLCatalog::refreshTables()
 
 void OMySQLCatalog::refreshViews()
 {
-    Sequence< OUString > aTypes(1);
-    aTypes[0] = "VIEW";
+    Sequence< OUString > aTypes { "VIEW" };
 
     // let's simply assume the server is new enough to support views. Current drivers
     // as of this writing might not return the proper information in getTableTypes, so
diff --git a/connectivity/source/drivers/mysql/YColumns.cxx b/connectivity/source/drivers/mysql/YColumns.cxx
index eae8c52..2f380e50 100644
--- a/connectivity/source/drivers/mysql/YColumns.cxx
+++ b/connectivity/source/drivers/mysql/YColumns.cxx
@@ -71,8 +71,7 @@ void OMySQLColumn::construct()
 
 Sequence< OUString > SAL_CALL OMySQLColumn::getSupportedServiceNames(  ) throw(RuntimeException, std::exception)
 {
-    Sequence< OUString > aSupported(1);
-    aSupported[0] = "com.sun.star.sdbcx.Column";
+    Sequence< OUString > aSupported { "com.sun.star.sdbcx.Column" };
 
     return aSupported;
 }
diff --git a/connectivity/source/manager/mdrivermanager.cxx b/connectivity/source/manager/mdrivermanager.cxx
index 686fdf6..bd923f3 100644
--- a/connectivity/source/manager/mdrivermanager.cxx
+++ b/connectivity/source/manager/mdrivermanager.cxx
@@ -533,8 +533,7 @@ OUString SAL_CALL OSDBCDriverManager::getImplementationName_static(  ) throw(Run
 
 Sequence< OUString > SAL_CALL OSDBCDriverManager::getSupportedServiceNames_static(  ) throw(RuntimeException)
 {
-    Sequence< OUString > aSupported(1);
-    aSupported[0] = getSingletonName_static();
+    Sequence< OUString > aSupported { getSingletonName_static() };
     return aSupported;
 }
 
diff --git a/connectivity/source/parse/PColumn.cxx b/connectivity/source/parse/PColumn.cxx
index 04fc071..39d7ebf 100644
--- a/connectivity/source/parse/PColumn.cxx
+++ b/connectivity/source/parse/PColumn.cxx
@@ -263,8 +263,7 @@ void OOrderColumn::construct()
 
 ::com::sun::star::uno::Sequence< OUString > SAL_CALL OOrderColumn::getSupportedServiceNames(  ) throw(::com::sun::star::uno::RuntimeException, std::exception)
 {
-    ::com::sun::star::uno::Sequence< OUString > aSupported(1);
-    aSupported[0] = "com.sun.star.sdb.OrderColumn";
+    ::com::sun::star::uno::Sequence< OUString > aSupported { "com.sun.star.sdb.OrderColumn" };
 
     return aSupported;
 }
diff --git a/cui/source/customize/cfg.cxx b/cui/source/customize/cfg.cxx
index c7aeb29..f67fabd 100644
--- a/cui/source/customize/cfg.cxx
+++ b/cui/source/customize/cfg.cxx
@@ -5255,8 +5255,7 @@ IMPL_LINK_NOARG_TYPED( SvxIconSelectorDialog, DeleteHdl, Button *, void )
             if ( pTbSymbol->IsItemChecked( nId ) )
             {
                 OUString aSelImageText = pTbSymbol->GetItemText( nId );
-                uno::Sequence< OUString > URLs(1);
-                URLs[0] = aSelImageText;
+                uno::Sequence< OUString > URLs { aSelImageText };
                 pTbSymbol->RemoveItem( pTbSymbol->GetItemPos( nId ) );
                 m_xImportedImageManager->removeImages( GetImageType(), URLs );
                 uno::Reference< css::ui::XUIConfigurationPersistence >
diff --git a/cui/source/dialogs/colorpicker.cxx b/cui/source/dialogs/colorpicker.cxx
index 424204d..4d35120 100644
--- a/cui/source/dialogs/colorpicker.cxx
+++ b/cui/source/dialogs/colorpicker.cxx
@@ -1562,8 +1562,7 @@ Reference< XInterface > SAL_CALL ColorPicker_createInstance( Reference< XCompone
 
 Sequence< OUString > SAL_CALL ColorPicker_getSupportedServiceNames() throw( RuntimeException )
 {
-    Sequence< OUString > seq(1);
-    seq[0] = "com.sun.star.ui.dialogs.ColorPicker";
+    Sequence< OUString > seq { "com.sun.star.ui.dialogs.ColorPicker" };
     return seq;
 }
 
diff --git a/dbaccess/source/core/dataaccess/bookmarkcontainer.cxx b/dbaccess/source/core/dataaccess/bookmarkcontainer.cxx
index 05faa36..a7490bd 100644
--- a/dbaccess/source/core/dataaccess/bookmarkcontainer.cxx
+++ b/dbaccess/source/core/dataaccess/bookmarkcontainer.cxx
@@ -81,8 +81,7 @@ sal_Bool SAL_CALL OBookmarkContainer::supportsService( const OUString& _rService
 
 Sequence< OUString > SAL_CALL OBookmarkContainer::getSupportedServiceNames(  ) throw(RuntimeException, std::exception)
 {
-    Sequence< OUString > aReturn(1);
-    aReturn.getArray()[0] = "com.sun.star.sdb.DefinitionContainer";
+    Sequence< OUString > aReturn { "com.sun.star.sdb.DefinitionContainer" };
     return aReturn;
 }
 
diff --git a/dbaccess/source/core/dataaccess/connection.cxx b/dbaccess/source/core/dataaccess/connection.cxx
index a86507f..3589548 100644
--- a/dbaccess/source/core/dataaccess/connection.cxx
+++ b/dbaccess/source/core/dataaccess/connection.cxx
@@ -667,8 +667,7 @@ Reference< XInterface > SAL_CALL OConnection::createInstanceWithArguments( const
 
 Sequence< OUString > SAL_CALL OConnection::getAvailableServiceNames(  ) throw (RuntimeException, std::exception)
 {
-    Sequence< OUString > aRet(1);
-    aRet[0] = SERVICE_NAME_SINGLESELECTQUERYCOMPOSER;
+    Sequence< OUString > aRet { SERVICE_NAME_SINGLESELECTQUERYCOMPOSER };
     return aRet;
 }
 
diff --git a/dbaccess/source/core/dataaccess/dataaccessdescriptor.cxx b/dbaccess/source/core/dataaccess/dataaccessdescriptor.cxx
index ce54c09..567e231 100644
--- a/dbaccess/source/core/dataaccess/dataaccessdescriptor.cxx
+++ b/dbaccess/source/core/dataaccess/dataaccessdescriptor.cxx
@@ -188,8 +188,7 @@ namespace dbaccess
 
     Sequence< OUString > SAL_CALL DataAccessDescriptor::getSupportedServiceNames(  ) throw (RuntimeException, std::exception)
     {
-        Sequence< OUString > aServices(1);
-        aServices[0] = "com.sun.star.sdb.DataAccessDescriptor";
+        Sequence< OUString > aServices { "com.sun.star.sdb.DataAccessDescriptor" };
         return aServices;
     }
 
@@ -256,8 +255,7 @@ namespace dbaccess
 
     Sequence< OUString > DataAccessDescriptorFactory::getSupportedServiceNames_static() throw( RuntimeException )
     {
-        Sequence< OUString > aServices(1);
-        aServices[0] = getSingletonName_static();
+        Sequence< OUString > aServices { getSingletonName_static() };
         return aServices;
     }
 
diff --git a/dbaccess/source/core/dataaccess/databasedocument.cxx b/dbaccess/source/core/dataaccess/databasedocument.cxx
index 559505d..3b07612 100644
--- a/dbaccess/source/core/dataaccess/databasedocument.cxx
+++ b/dbaccess/source/core/dataaccess/databasedocument.cxx
@@ -2094,8 +2094,7 @@ Reference< XEnumeration > SAL_CALL ODatabaseDocument::getControllers(  ) throw (
 
 Sequence< OUString > SAL_CALL ODatabaseDocument::getAvailableViewControllerNames(  ) throw (RuntimeException, std::exception)
 {
-    Sequence< OUString > aNames(1);
-    aNames[0] = SERVICE_SDB_APPLICATIONCONTROLLER;
+    Sequence< OUString > aNames { SERVICE_SDB_APPLICATIONCONTROLLER };
     return aNames;
 }
 
diff --git a/dbaccess/source/ext/macromigration/macromigrationwizard.cxx b/dbaccess/source/ext/macromigration/macromigrationwizard.cxx
index ebdf5a8..33ee622 100644
--- a/dbaccess/source/ext/macromigration/macromigrationwizard.cxx
+++ b/dbaccess/source/ext/macromigration/macromigrationwizard.cxx
@@ -143,8 +143,7 @@ namespace dbmm
 
     Sequence< OUString > SAL_CALL MacroMigrationDialogService::getSupportedServiceNames_static() throw(RuntimeException)
     {
-        Sequence< OUString > aServices(1);
-        aServices[0] = "com.sun.star.sdb.application.MacroMigrationWizard";
+        Sequence< OUString > aServices { "com.sun.star.sdb.application.MacroMigrationWizard" };
         return aServices;
     }
 
diff --git a/dbaccess/source/filter/xml/xmlExport.cxx b/dbaccess/source/filter/xml/xmlExport.cxx
index 72124df..220349b 100644
--- a/dbaccess/source/filter/xml/xmlExport.cxx
+++ b/dbaccess/source/filter/xml/xmlExport.cxx
@@ -114,8 +114,7 @@ namespace dbaxml
 
     Sequence< OUString > SAL_CALL ODBExportHelper::getSupportedServiceNames_Static(  ) throw(RuntimeException)
     {
-        Sequence< OUString > aSupported(1);
-        aSupported[0] = "com.sun.star.document.ExportFilter";
+        Sequence< OUString > aSupported { "com.sun.star.document.ExportFilter" };
         return aSupported;
     }
 
@@ -129,8 +128,7 @@ namespace dbaxml
     }
     Sequence< OUString > SAL_CALL ODBFullExportHelper::getSupportedServiceNames_Static(  ) throw(RuntimeException)
     {
-        Sequence< OUString > aSupported(1);
-        aSupported[0] = "com.sun.star.document.ExportFilter";
+        Sequence< OUString > aSupported { "com.sun.star.document.ExportFilter" };
         return aSupported;
     }
 
diff --git a/dbaccess/source/ui/dlg/ConnectionHelper.cxx b/dbaccess/source/ui/dlg/ConnectionHelper.cxx
index da5b77b..e1eec6b 100644
--- a/dbaccess/source/ui/dlg/ConnectionHelper.cxx
+++ b/dbaccess/source/ui/dlg/ConnectionHelper.cxx
@@ -623,8 +623,7 @@ namespace dbaui
             }
 
             // the properties which need to be set on the new content
-            Sequence< OUString > aNewDirectoryProperties(1);
-            aNewDirectoryProperties[0] = "Title";
+            Sequence< OUString > aNewDirectoryProperties { "Title" };
 
             // the values to be set
             Sequence< Any > aNewDirectoryAttributes(1);
diff --git a/dbaccess/source/ui/dlg/tablespage.cxx b/dbaccess/source/ui/dlg/tablespage.cxx
index b49bd07..8f70184 100644
--- a/dbaccess/source/ui/dlg/tablespage.cxx
+++ b/dbaccess/source/ui/dlg/tablespage.cxx
@@ -284,8 +284,7 @@ namespace dbaui
                     Reference<XModifiable> xModi(getDataSourceOrModel(xProp),UNO_QUERY);
                     bool bModified = ( xModi.is() && xModi->isModified() );
 
-                    Sequence< OUString > aNewTableFilter(1);
-                    aNewTableFilter[0] = "%";
+                    Sequence< OUString > aNewTableFilter { "%" };
                     xProp->setPropertyValue(PROPERTY_TABLEFILTER,makeAny(aNewTableFilter));
 
                     xProp->setPropertyValue( PROPERTY_TABLETYPEFILTER, makeAny( Sequence< OUString >() ) );
diff --git a/desktop/source/migration/services/basicmigration.cxx b/desktop/source/migration/services/basicmigration.cxx
index 00631a5..457b479 100644
--- a/desktop/source/migration/services/basicmigration.cxx
+++ b/desktop/source/migration/services/basicmigration.cxx
@@ -49,8 +49,7 @@ namespace migration
 
     Sequence< OUString > BasicMigration_getSupportedServiceNames()
     {
-        Sequence< OUString > aNames(1);
-        aNames.getArray()[0] = "com.sun.star.migration.Basic";
+        Sequence< OUString > aNames { "com.sun.star.migration.Basic" };
         return aNames;
     }
 
diff --git a/desktop/source/migration/services/oo3extensionmigration.cxx b/desktop/source/migration/services/oo3extensionmigration.cxx
index a3fe11b..a0e401b 100644
--- a/desktop/source/migration/services/oo3extensionmigration.cxx
+++ b/desktop/source/migration/services/oo3extensionmigration.cxx
@@ -84,8 +84,7 @@ Sequence< OUString > OO3ExtensionMigration_getSupportedServiceNames()
         ::osl::MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() );
         if ( !pNames )
         {
-            static Sequence< OUString > aNames(1);
-            aNames.getArray()[0] = "com.sun.star.migration.Extensions";
+            static Sequence< OUString > aNames { "com.sun.star.migration.Extensions" };
             pNames = &aNames;
         }
     }
diff --git a/desktop/source/migration/services/wordbookmigration.cxx b/desktop/source/migration/services/wordbookmigration.cxx
index 4605142..9ae3563 100644
--- a/desktop/source/migration/services/wordbookmigration.cxx
+++ b/desktop/source/migration/services/wordbookmigration.cxx
@@ -66,8 +66,7 @@ namespace migration
             ::osl::MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() );
             if ( !pNames )
             {
-                static Sequence< OUString > aNames(1);
-                aNames.getArray()[0] = "com.sun.star.migration.Wordbooks";
+                static Sequence< OUString > aNames { "com.sun.star.migration.Wordbooks" };
                 pNames = &aNames;
             }
         }
diff --git a/dtrans/source/cnttype/mcnttfactory.cxx b/dtrans/source/cnttype/mcnttfactory.cxx
index 95010d5..295d9d3 100644
--- a/dtrans/source/cnttype/mcnttfactory.cxx
+++ b/dtrans/source/cnttype/mcnttfactory.cxx
@@ -38,8 +38,7 @@ namespace
 {
     Sequence< OUString > SAL_CALL MimeContentTypeFactory_getSupportedServiceNames( )
     {
-        Sequence< OUString > aRet(1);
-        aRet[0] = "com.sun.star.datatransfer.MimeContentTypeFactory";
+        Sequence< OUString > aRet { "com.sun.star.datatransfer.MimeContentTypeFactory" };
         return aRet;
     }
 }
diff --git a/dtrans/source/generic/generic_clipboard.cxx b/dtrans/source/generic/generic_clipboard.cxx
index 31eed17..13061dc 100644
--- a/dtrans/source/generic/generic_clipboard.cxx
+++ b/dtrans/source/generic/generic_clipboard.cxx
@@ -149,8 +149,7 @@ void SAL_CALL GenericClipboard::removeClipboardListener( const Reference< XClipb
 
 Sequence< OUString > SAL_CALL GenericClipboard_getSupportedServiceNames()
 {
-    Sequence< OUString > aRet(1);
-    aRet[0] = "com.sun.star.datatransfer.clipboard.GenericClipboard";
+    Sequence< OUString > aRet { "com.sun.star.datatransfer.clipboard.GenericClipboard" };
     return aRet;
 }
 
diff --git a/dtrans/source/win32/clipb/WinClipboard.cxx b/dtrans/source/win32/clipb/WinClipboard.cxx
index 06d5750..3deada7 100644
--- a/dtrans/source/win32/clipb/WinClipboard.cxx
+++ b/dtrans/source/win32/clipb/WinClipboard.cxx
@@ -44,8 +44,7 @@ namespace
 {
     Sequence< OUString > SAL_CALL WinClipboard_getSupportedServiceNames()
     {
-        Sequence< OUString > aRet(1);
-        aRet[0] = "com.sun.star.datatransfer.clipboard.SystemClipboard";
+        Sequence< OUString > aRet { "com.sun.star.datatransfer.clipboard.SystemClipboard" };
         return aRet;
     }
 }
diff --git a/dtrans/source/win32/ftransl/ftransl.cxx b/dtrans/source/win32/ftransl/ftransl.cxx
index b31e16f0..968c2f6 100644
--- a/dtrans/source/win32/ftransl/ftransl.cxx
+++ b/dtrans/source/win32/ftransl/ftransl.cxx
@@ -64,8 +64,7 @@ namespace MODULE_PRIVATE
 {
     Sequence< OUString > SAL_CALL DataFormatTranslator_getSupportedServiceNames( )
     {
-        Sequence< OUString > aRet(1);
-        aRet[0] = "com.sun.star.datatransfer.DataFormatTranslator";
+        Sequence< OUString > aRet { "com.sun.star.datatransfer.DataFormatTranslator" };
         return aRet;
     }
 }
diff --git a/embeddedobj/test/MainThreadExecutor/xexecutor.cxx b/embeddedobj/test/MainThreadExecutor/xexecutor.cxx
index 2164f76..874e76a6 100644
--- a/embeddedobj/test/MainThreadExecutor/xexecutor.cxx
+++ b/embeddedobj/test/MainThreadExecutor/xexecutor.cxx
@@ -83,8 +83,7 @@ uno::Any SAL_CALL UNOMainThreadExecutor::execute( const uno::Sequence< beans::Na
 
 uno::Sequence< OUString > SAL_CALL UNOMainThreadExecutor::impl_staticGetSupportedServiceNames()
 {
-    uno::Sequence< OUString > aRet(1);
-    aRet[0] = "com.sun.star.comp.thread.MainThreadExecutor";
+    uno::Sequence< OUString > aRet { "com.sun.star.comp.thread.MainThreadExecutor" };
     return aRet;
 }
 
diff --git a/extensions/source/bibliography/framectr.cxx b/extensions/source/bibliography/framectr.cxx
index 586b9b6..d89df18 100644
--- a/extensions/source/bibliography/framectr.cxx
+++ b/extensions/source/bibliography/framectr.cxx
@@ -206,8 +206,7 @@ css::uno::Sequence< OUString > SAL_CALL BibFrameController_Impl::getSupportedSer
 {
     // return only top level services ...
     // base services are included there and should be asked by uno-rtti.
-    css::uno::Sequence< OUString > lNames(1);
-    lNames[0] = "com.sun.star.frame.Bibliography";
+    css::uno::Sequence< OUString > lNames { "com.sun.star.frame.Bibliography" };
     return lNames;
 }
 
diff --git a/extensions/source/dbpilots/listcombowizard.cxx b/extensions/source/dbpilots/listcombowizard.cxx
index 4db4a39..3f23ca0 100644
--- a/extensions/source/dbpilots/listcombowizard.cxx
+++ b/extensions/source/dbpilots/listcombowizard.cxx
@@ -183,8 +183,7 @@ namespace dbp
                 OUString sStatement = "SELECT " +
                     OUString( getSettings().sListContentField ) +  ", " + OUString( getSettings().sLinkedListField ) +
                     " FROM " + OUString( getSettings().sListContentTable );
-                Sequence< OUString > aListSource(1);
-                aListSource[0] = sStatement;
+                Sequence< OUString > aListSource { sStatement };
                 getContext().xObjectModel->setPropertyValue("ListSource", makeAny(aListSource));
             }
             else
diff --git a/extensions/source/dbpilots/wizardservices.cxx b/extensions/source/dbpilots/wizardservices.cxx
index d7169df..52bcf33 100644
--- a/extensions/source/dbpilots/wizardservices.cxx
+++ b/extensions/source/dbpilots/wizardservices.cxx
@@ -63,8 +63,7 @@ namespace dbp
 
     Sequence< OUString > OGroupBoxSI::getServiceNames()
     {
-        Sequence< OUString > aReturn(1);
-        aReturn[0] = "com.sun.star.sdb.GroupBoxAutoPilot";
+        Sequence< OUString > aReturn { "com.sun.star.sdb.GroupBoxAutoPilot" };
         return aReturn;
     }
 
@@ -76,8 +75,7 @@ namespace dbp
 
     Sequence< OUString > OListComboSI::getServiceNames()
     {
-        Sequence< OUString > aReturn(1);
-        aReturn[0] = "com.sun.star.sdb.ListComboBoxAutoPilot";
+        Sequence< OUString > aReturn { "com.sun.star.sdb.ListComboBoxAutoPilot" };
         return aReturn;
     }
 
@@ -89,8 +87,7 @@ namespace dbp
 
     Sequence< OUString > OGridSI::getServiceNames()
     {
-        Sequence< OUString > aReturn(1);
-        aReturn[0] = "com.sun.star.sdb.GridControlAutoPilot";
+        Sequence< OUString > aReturn { "com.sun.star.sdb.GridControlAutoPilot" };
         return aReturn;
     }
 
diff --git a/extensions/source/logging/consolehandler.cxx b/extensions/source/logging/consolehandler.cxx
index ed25843..e5db063 100644
--- a/extensions/source/logging/consolehandler.cxx
+++ b/extensions/source/logging/consolehandler.cxx
@@ -288,8 +288,7 @@ namespace logging
 
     Sequence< OUString > SAL_CALL ConsoleHandler::getSupportedServiceNames_static()
     {
-        Sequence< OUString > aServiceNames(1);
-        aServiceNames[0] = "com.sun.star.logging.ConsoleHandler";
+        Sequence< OUString > aServiceNames { "com.sun.star.logging.ConsoleHandler" };
         return aServiceNames;
     }
 
diff --git a/extensions/source/logging/csvformatter.cxx b/extensions/source/logging/csvformatter.cxx
index 1d3a459..87503f3 100644
--- a/extensions/source/logging/csvformatter.cxx
+++ b/extensions/source/logging/csvformatter.cxx
@@ -333,8 +333,7 @@ namespace logging
 
     Sequence< OUString > SAL_CALL CsvFormatter::getSupportedServiceNames_static()
     {
-        Sequence< OUString > aServiceNames(1);
-        aServiceNames[0] = "com.sun.star.logging.CsvFormatter";
+        Sequence< OUString > aServiceNames { "com.sun.star.logging.CsvFormatter" };
         return aServiceNames;
     }
 
diff --git a/extensions/source/logging/filehandler.cxx b/extensions/source/logging/filehandler.cxx
index 0a0b71f..52c4c36 100644
--- a/extensions/source/logging/filehandler.cxx
+++ b/extensions/source/logging/filehandler.cxx
@@ -386,8 +386,7 @@ namespace logging
 
     Sequence< OUString > SAL_CALL FileHandler::getSupportedServiceNames_static()
     {
-        Sequence< OUString > aServiceNames(1);
-        aServiceNames[0] = "com.sun.star.logging.FileHandler";
+        Sequence< OUString > aServiceNames { "com.sun.star.logging.FileHandler" };
         return aServiceNames;
     }
 
diff --git a/extensions/source/logging/logger.cxx b/extensions/source/logging/logger.cxx
index 2bafe5a..e9b2944 100644
--- a/extensions/source/logging/logger.cxx
+++ b/extensions/source/logging/logger.cxx
@@ -248,8 +248,7 @@ namespace logging
 
     Sequence< OUString > SAL_CALL EventLogger::getSupportedServiceNames() throw(RuntimeException, std::exception)
     {
-        Sequence< OUString > aServiceNames(1);
-        aServiceNames[0] = "com.sun.star.logging.Logger";
+        Sequence< OUString > aServiceNames { "com.sun.star.logging.Logger" };
         return aServiceNames;
     }
 
@@ -280,8 +279,7 @@ namespace logging
 
     Sequence< OUString > SAL_CALL LoggerPool::getSupportedServiceNames_static()
     {
-        Sequence< OUString > aServiceNames(1);
-        aServiceNames[0] = getSingletonName_static();
+        Sequence< OUString > aServiceNames { getSingletonName_static() };
         return aServiceNames;
     }
 
diff --git a/extensions/source/logging/plaintextformatter.cxx b/extensions/source/logging/plaintextformatter.cxx
index 70844f6a8..585b5e8 100644
--- a/extensions/source/logging/plaintextformatter.cxx
+++ b/extensions/source/logging/plaintextformatter.cxx
@@ -171,8 +171,7 @@ namespace logging
 
     Sequence< OUString > SAL_CALL PlainTextFormatter::getSupportedServiceNames_static()
     {
-        Sequence< OUString > aServiceNames(1);
-        aServiceNames[0] = "com.sun.star.logging.PlainTextFormatter";
+        Sequence< OUString > aServiceNames { "com.sun.star.logging.PlainTextFormatter" };
         return aServiceNames;
     }
 
diff --git a/extensions/source/propctrlr/defaultforminspection.cxx b/extensions/source/propctrlr/defaultforminspection.cxx
index beda207..3276503 100644
--- a/extensions/source/propctrlr/defaultforminspection.cxx
+++ b/extensions/source/propctrlr/defaultforminspection.cxx
@@ -89,8 +89,7 @@ namespace pcr
 
     Sequence< OUString > DefaultFormComponentInspectorModel::getSupportedServiceNames_static(  ) throw(RuntimeException)
     {
-        Sequence< OUString > aSupported(1);
-        aSupported[0] = "com.sun.star.form.inspection.DefaultFormComponentInspectorModel";
+        Sequence< OUString > aSupported { "com.sun.star.form.inspection.DefaultFormComponentInspectorModel" };
         return aSupported;
     }
 
diff --git a/extensions/source/propctrlr/defaulthelpprovider.cxx b/extensions/source/propctrlr/defaulthelpprovider.cxx
index 79f7321..414d600 100644
--- a/extensions/source/propctrlr/defaulthelpprovider.cxx
+++ b/extensions/source/propctrlr/defaulthelpprovider.cxx
@@ -77,8 +77,7 @@ namespace pcr
 
     Sequence< OUString > DefaultHelpProvider::getSupportedServiceNames_static(  ) throw(RuntimeException)
     {
-        Sequence< OUString > aSupported(1);
-        aSupported[0] = "com.sun.star.inspection.DefaultHelpProvider";
+        Sequence< OUString > aSupported { "com.sun.star.inspection.DefaultHelpProvider" };
         return aSupported;
     }
 
diff --git a/extensions/source/propctrlr/formcontroller.cxx b/extensions/source/propctrlr/formcontroller.cxx
index 9a60064..0853c3c 100644
--- a/extensions/source/propctrlr/formcontroller.cxx
+++ b/extensions/source/propctrlr/formcontroller.cxx
@@ -137,8 +137,7 @@ namespace pcr
 
     Sequence< OUString > FormController::getSupportedServiceNames_static(  ) throw(RuntimeException)
     {
-        Sequence< OUString > aSupported(1);
-        aSupported[0] = "com.sun.star.form.PropertyBrowserController";
+        Sequence< OUString > aSupported { "com.sun.star.form.PropertyBrowserController" };
         return aSupported;
     }
 
@@ -265,8 +264,7 @@ namespace pcr
 
     Sequence< OUString > DialogController::getSupportedServiceNames_static(  ) throw(RuntimeException)
     {
-        Sequence< OUString > aSupported(1);
-        aSupported[0] = "com.sun.star.awt.PropertyBrowserController";
+        Sequence< OUString > aSupported { "com.sun.star.awt.PropertyBrowserController" };
         return aSupported;
     }
 
diff --git a/extensions/source/propctrlr/formgeometryhandler.cxx b/extensions/source/propctrlr/formgeometryhandler.cxx
index 8c05b4c..3370c44 100644
--- a/extensions/source/propctrlr/formgeometryhandler.cxx
+++ b/extensions/source/propctrlr/formgeometryhandler.cxx
@@ -507,8 +507,7 @@ namespace pcr
 
     Sequence< OUString > SAL_CALL FormGeometryHandler::getActuatingProperties( ) throw (RuntimeException, std::exception)
     {
-        Sequence< OUString > aInterestedIn(1);
-        aInterestedIn[0] = PROPERTY_TEXT_ANCHOR_TYPE;
+        Sequence< OUString > aInterestedIn { PROPERTY_TEXT_ANCHOR_TYPE };
         return aInterestedIn;
     }
 
diff --git a/extensions/source/propctrlr/propcontroller.cxx b/extensions/source/propctrlr/propcontroller.cxx
index bcf766e..80a24fd 100644
--- a/extensions/source/propctrlr/propcontroller.cxx
+++ b/extensions/source/propctrlr/propcontroller.cxx
@@ -583,8 +583,7 @@ namespace pcr
 
     Sequence< OUString > OPropertyBrowserController::getSupportedServiceNames_static(  ) throw(RuntimeException)
     {
-        Sequence< OUString > aSupported(1);
-        aSupported[0] = "com.sun.star.inspection.ObjectInspector";
+        Sequence< OUString > aSupported { "com.sun.star.inspection.ObjectInspector" };
         return aSupported;
     }
 
diff --git a/extensions/source/propctrlr/stringrepresentation.cxx b/extensions/source/propctrlr/stringrepresentation.cxx
index 310e0c8..1be13ed 100644
--- a/extensions/source/propctrlr/stringrepresentation.cxx
+++ b/extensions/source/propctrlr/stringrepresentation.cxx
@@ -625,8 +625,7 @@ OUString SAL_CALL _getImplementationName() {
 
 uno::Sequence< OUString > SAL_CALL _getSupportedServiceNames()
 {
-    uno::Sequence< OUString > s(1);
-    s[0] = "com.sun.star.inspection.StringRepresentation";
+    uno::Sequence< OUString > s { "com.sun.star.inspection.StringRepresentation" };
     return s;
 }
 
diff --git a/extensions/source/update/check/updatecheckconfig.cxx b/extensions/source/update/check/updatecheckconfig.cxx
index e8b29d7..f0254c5 100644
--- a/extensions/source/update/check/updatecheckconfig.cxx
+++ b/extensions/source/update/check/updatecheckconfig.cxx
@@ -494,8 +494,7 @@ UpdateCheckConfig::clearUpdateFound()
 uno::Sequence< OUString >
 UpdateCheckConfig::getServiceNames()
 {
-    uno::Sequence< OUString > aServiceList(1);
-    aServiceList[0] = "com.sun.star.setup.UpdateCheckConfig";
+    uno::Sequence< OUString > aServiceList { "com.sun.star.setup.UpdateCheckConfig" };
     return aServiceList;
 }
 
diff --git a/extensions/source/update/check/updatecheckjob.cxx b/extensions/source/update/check/updatecheckjob.cxx
index 1b3c227..b2051c8 100644
--- a/extensions/source/update/check/updatecheckjob.cxx
+++ b/extensions/source/update/check/updatecheckjob.cxx
@@ -162,8 +162,7 @@ UpdateCheckJob::~UpdateCheckJob()
 uno::Sequence< OUString >
 UpdateCheckJob::getServiceNames()
 {
-    uno::Sequence< OUString > aServiceList(1);
-    aServiceList[0] = "com.sun.star.setup.UpdateCheck";
+    uno::Sequence< OUString > aServiceList { "com.sun.star.setup.UpdateCheck" };
     return aServiceList;
 };
 
diff --git a/extensions/source/update/feed/updatefeed.cxx b/extensions/source/update/feed/updatefeed.cxx
index bbf21be..47b23c7 100644
--- a/extensions/source/update/feed/updatefeed.cxx
+++ b/extensions/source/update/feed/updatefeed.cxx
@@ -719,8 +719,7 @@ UpdateInformationProvider::getInteractionHandler()
 uno::Sequence< OUString >
 UpdateInformationProvider::getServiceNames()
 {
-    uno::Sequence< OUString > aServiceList(1);
-    aServiceList[0] = "com.sun.star.deployment.UpdateInformationProvider";
+    uno::Sequence< OUString > aServiceList { "com.sun.star.deployment.UpdateInformationProvider" };
     return aServiceList;
 };
 
diff --git a/extensions/source/update/ui/updatecheckui.cxx b/extensions/source/update/ui/updatecheckui.cxx
index a933515..a168e5e 100644
--- a/extensions/source/update/ui/updatecheckui.cxx
+++ b/extensions/source/update/ui/updatecheckui.cxx
@@ -69,8 +69,7 @@ using namespace ::com::sun::star;
 
 static uno::Sequence< OUString > getServiceNames()
 {
-    uno::Sequence< OUString > aServiceList(1);
-    aServiceList[0] = "com.sun.star.setup.UpdateCheckUI";
+    uno::Sequence< OUString > aServiceList { "com.sun.star.setup.UpdateCheckUI" };
     return aServiceList;
 }
 
diff --git a/filter/source/config/cache/configflush.cxx b/filter/source/config/cache/configflush.cxx
index 0f7d6cc..1f62536 100644
--- a/filter/source/config/cache/configflush.cxx
+++ b/filter/source/config/cache/configflush.cxx
@@ -117,8 +117,7 @@ OUString ConfigFlush::impl_getImplementationName()
 
 css::uno::Sequence< OUString > ConfigFlush::impl_getSupportedServiceNames()
 {
-    css::uno::Sequence< OUString > lServiceNames(1);
-    lServiceNames[0] = "com.sun.star.document.FilterConfigRefresh";
+    css::uno::Sequence< OUString > lServiceNames { "com.sun.star.document.FilterConfigRefresh" };
     return lServiceNames;
 }
 
diff --git a/filter/source/config/cache/contenthandlerfactory.cxx b/filter/source/config/cache/contenthandlerfactory.cxx
index 5cc7c27..38afa06 100644
--- a/filter/source/config/cache/contenthandlerfactory.cxx
+++ b/filter/source/config/cache/contenthandlerfactory.cxx
@@ -83,8 +83,7 @@ css::uno::Reference< css::uno::XInterface > SAL_CALL ContentHandlerFactory::crea
         {
             _FILTER_CONFIG_LOG_("ContentHandlerFactory::createInstanceWithArguments() ... simulate old type search functionality!\n");
 
-            css::uno::Sequence< OUString > lTypes(1);
-            lTypes[0] = sHandler;
+            css::uno::Sequence< OUString > lTypes { sHandler };
 
             css::uno::Sequence< css::beans::NamedValue > lQuery { { PROPNAME_TYPES, css::uno::makeAny(lTypes) } };
 
@@ -153,8 +152,7 @@ OUString ContentHandlerFactory::impl_getImplementationName()
 
 css::uno::Sequence< OUString > ContentHandlerFactory::impl_getSupportedServiceNames()
 {
-    css::uno::Sequence< OUString > lServiceNames(1);
-    lServiceNames[0] = "com.sun.star.frame.ContentHandlerFactory";
+    css::uno::Sequence< OUString > lServiceNames { "com.sun.star.frame.ContentHandlerFactory" };
     return lServiceNames;
 }
 
diff --git a/filter/source/config/cache/filterfactory.cxx b/filter/source/config/cache/filterfactory.cxx
index 6c37d82..4577415 100644
--- a/filter/source/config/cache/filterfactory.cxx
+++ b/filter/source/config/cache/filterfactory.cxx
@@ -578,8 +578,7 @@ OUString FilterFactory::impl_getImplementationName()
 
 css::uno::Sequence< OUString > FilterFactory::impl_getSupportedServiceNames()
 {
-    css::uno::Sequence< OUString > lServiceNames(1);
-    lServiceNames[0] = "com.sun.star.document.FilterFactory";
+    css::uno::Sequence< OUString > lServiceNames { "com.sun.star.document.FilterFactory" };
     return lServiceNames;
 }
 
diff --git a/filter/source/config/cache/frameloaderfactory.cxx b/filter/source/config/cache/frameloaderfactory.cxx
index 8706172..d2bcf6f 100644
--- a/filter/source/config/cache/frameloaderfactory.cxx
+++ b/filter/source/config/cache/frameloaderfactory.cxx
@@ -80,8 +80,7 @@ css::uno::Reference< css::uno::XInterface > SAL_CALL FrameLoaderFactory::createI
         {
             _FILTER_CONFIG_LOG_("FrameLoaderFactory::createInstanceWithArguments() ... simulate old type search functionality!\n");
 
-            css::uno::Sequence< OUString > lTypes(1);
-            lTypes[0] = sLoader;
+            css::uno::Sequence< OUString > lTypes { sLoader };
 
             css::uno::Sequence< css::beans::NamedValue > lQuery { { PROPNAME_TYPES, css::uno::makeAny(lTypes) } };
 
@@ -150,8 +149,7 @@ OUString FrameLoaderFactory::impl_getImplementationName()
 
 css::uno::Sequence< OUString > FrameLoaderFactory::impl_getSupportedServiceNames()
 {
-    css::uno::Sequence< OUString > lServiceNames(1);
-    lServiceNames[0] = "com.sun.star.frame.FrameLoaderFactory";
+    css::uno::Sequence< OUString > lServiceNames { "com.sun.star.frame.FrameLoaderFactory" };
     return lServiceNames;
 }
 
diff --git a/filter/source/config/cache/typedetection.cxx b/filter/source/config/cache/typedetection.cxx
index b25f1be..1e81e61 100644
--- a/filter/source/config/cache/typedetection.cxx
+++ b/filter/source/config/cache/typedetection.cxx
@@ -1232,8 +1232,7 @@ OUString TypeDetection::impl_getImplementationName()
 
 css::uno::Sequence< OUString > TypeDetection::impl_getSupportedServiceNames()
 {
-    css::uno::Sequence< OUString > lServiceNames(1);
-    lServiceNames[0] = "com.sun.star.document.TypeDetection";
+    css::uno::Sequence< OUString > lServiceNames { "com.sun.star.document.TypeDetection" };
     return lServiceNames;
 }
 
diff --git a/filter/source/xsltdialog/xmlfilterdialogcomponent.cxx b/filter/source/xsltdialog/xmlfilterdialogcomponent.cxx
index 89cd838..d1dab36 100644
--- a/filter/source/xsltdialog/xmlfilterdialogcomponent.cxx
+++ b/filter/source/xsltdialog/xmlfilterdialogcomponent.cxx
@@ -196,8 +196,7 @@ OUString XMLFilterDialogComponent_getImplementationName() throw ( RuntimeExcepti
 
 Sequence< OUString > SAL_CALL XMLFilterDialogComponent_getSupportedServiceNames()  throw ( RuntimeException )
 {
-    Sequence< OUString > aSupported(1);
-    aSupported[0] = "com.sun.star.ui.dialogs.XSLTFilterDialog";
+    Sequence< OUString > aSupported { "com.sun.star.ui.dialogs.XSLTFilterDialog" };
     return aSupported;
 }
 
diff --git a/forms/source/runtime/formoperations.cxx b/forms/source/runtime/formoperations.cxx
index 5954c3b..756d42f 100644
--- a/forms/source/runtime/formoperations.cxx
+++ b/forms/source/runtime/formoperations.cxx
@@ -139,8 +139,7 @@ namespace frm
 
     Sequence< OUString > FormOperations::getSupportedServiceNames_Static(  ) throw(RuntimeException)
     {
-        Sequence< OUString > aNames(1);
-        aNames[0] = "com.sun.star.form.runtime.FormOperations";
+        Sequence< OUString > aNames { "com.sun.star.form.runtime.FormOperations" };
         return aNames;
     }
 
diff --git a/fpicker/source/office/OfficeFolderPicker.cxx b/fpicker/source/office/OfficeFolderPicker.cxx
index f3cdafb..ecb48a4 100644
--- a/fpicker/source/office/OfficeFolderPicker.cxx
+++ b/fpicker/source/office/OfficeFolderPicker.cxx
@@ -173,8 +173,7 @@ Sequence< OUString > SAL_CALL SvtFolderPicker::getSupportedServiceNames() throw(
 /* Helper for XServiceInfo */
 Sequence< OUString > SvtFolderPicker::impl_getStaticSupportedServiceNames()
 {
-    Sequence< OUString > seqServiceNames(1);
-    seqServiceNames[0] = "com.sun.star.ui.dialogs.OfficeFolderPicker";
+    Sequence< OUString > seqServiceNames { "com.sun.star.ui.dialogs.OfficeFolderPicker" };
     return seqServiceNames ;
 }
 
diff --git a/fpicker/source/win32/folderpicker/FolderPicker.cxx b/fpicker/source/win32/folderpicker/FolderPicker.cxx
index 9bc256e..48e3529 100644
--- a/fpicker/source/win32/folderpicker/FolderPicker.cxx
+++ b/fpicker/source/win32/folderpicker/FolderPicker.cxx
@@ -51,8 +51,7 @@ namespace
 {
     Sequence< OUString > SAL_CALL FolderPicker_getSupportedServiceNames()
     {
-        Sequence< OUString > aRet(1);
-        aRet[0] = "com.sun.star.ui.dialogs.SystemFolderPicker";
+        Sequence< OUString > aRet { "com.sun.star.ui.dialogs.SystemFolderPicker" };
         return aRet;
     }
 }
diff --git a/framework/inc/helper/statusindicatorfactory.hxx b/framework/inc/helper/statusindicatorfactory.hxx
index 2067f16..f22e0e0 100644
--- a/framework/inc/helper/statusindicatorfactory.hxx
+++ b/framework/inc/helper/statusindicatorfactory.hxx
@@ -209,8 +209,7 @@ class StatusIndicatorFactory : public  ::cppu::WeakImplHelper<
         virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
             throw (css::uno::RuntimeException, std::exception) override
         {
-            css::uno::Sequence< OUString > aSeq(1);
-            aSeq[0] = "com.sun.star.task.StatusIndicatorFactory";
+            css::uno::Sequence< OUString > aSeq { "com.sun.star.task.StatusIndicatorFactory" };
             return aSeq;
         }
 
diff --git a/framework/inc/services/layoutmanager.hxx b/framework/inc/services/layoutmanager.hxx
index 767186d..e55f7ae 100644
--- a/framework/inc/services/layoutmanager.hxx
+++ b/framework/inc/services/layoutmanager.hxx
@@ -107,8 +107,7 @@ namespace framework
             virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
                 throw (css::uno::RuntimeException, std::exception) override
             {
-                css::uno::Sequence< OUString > aSeq(1);
-                aSeq[0] = "com.sun.star.frame.LayoutManager";
+                css::uno::Sequence< OUString > aSeq { "com.sun.star.frame.LayoutManager" };
                 return aSeq;
             }
 
diff --git a/framework/inc/uiconfiguration/imagemanager.hxx b/framework/inc/uiconfiguration/imagemanager.hxx
index fba8209..8c46073 100644
--- a/framework/inc/uiconfiguration/imagemanager.hxx
+++ b/framework/inc/uiconfiguration/imagemanager.hxx
@@ -69,8 +69,7 @@ namespace framework
             virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
                 throw (css::uno::RuntimeException, std::exception) override
             {
-                css::uno::Sequence< OUString > aSeq(1);
-                aSeq[0] = "com.sun.star.ui.ImageManager";
+                css::uno::Sequence< OUString > aSeq { "com.sun.star.ui.ImageManager" };
                 return aSeq;
             }
 
diff --git a/framework/inc/uielement/uicommanddescription.hxx b/framework/inc/uielement/uicommanddescription.hxx
index 4179474..d57ae4a 100644
--- a/framework/inc/uielement/uicommanddescription.hxx
+++ b/framework/inc/uielement/uicommanddescription.hxx
@@ -59,8 +59,7 @@ class UICommandDescription : private cppu::BaseMutex,
         virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
             throw (css::uno::RuntimeException, std::exception) override
         {
-            css::uno::Sequence< OUString > aSeq(1);
-            aSeq[0] = "com.sun.star.frame.UICommandDescription";
+            css::uno::Sequence< OUString > aSeq { "com.sun.star.frame.UICommandDescription" };
             return aSeq;
         }
 
diff --git a/framework/inc/uifactory/menubarfactory.hxx b/framework/inc/uifactory/menubarfactory.hxx
index f1007cf..27401f8 100644
--- a/framework/inc/uifactory/menubarfactory.hxx
+++ b/framework/inc/uifactory/menubarfactory.hxx
@@ -57,8 +57,7 @@ typedef ::cppu::WeakImplHelper<
             virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
                 throw (css::uno::RuntimeException, std::exception) override
             {
-                css::uno::Sequence< OUString > aSeq(1);
-                aSeq[0] = "com.sun.star.ui.UIElementFactory";
+                css::uno::Sequence< OUString > aSeq { "com.sun.star.ui.UIElementFactory" };
                 return aSeq;
             }
 
diff --git a/framework/source/accelerators/documentacceleratorconfiguration.cxx b/framework/source/accelerators/documentacceleratorconfiguration.cxx
index 3aaf2c1..634d1a1 100644
--- a/framework/source/accelerators/documentacceleratorconfiguration.cxx
+++ b/framework/source/accelerators/documentacceleratorconfiguration.cxx
@@ -87,8 +87,7 @@ public:
     virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
         throw (css::uno::RuntimeException, std::exception) override
     {
-        css::uno::Sequence< OUString > aSeq(1);
-        aSeq[0] = "com.sun.star.ui.DocumentAcceleratorConfiguration";
+        css::uno::Sequence< OUString > aSeq { "com.sun.star.ui.DocumentAcceleratorConfiguration" };
         return aSeq;
     }
 
diff --git a/framework/source/accelerators/globalacceleratorconfiguration.cxx b/framework/source/accelerators/globalacceleratorconfiguration.cxx
index cd48610..942c2f0 100644
--- a/framework/source/accelerators/globalacceleratorconfiguration.cxx
+++ b/framework/source/accelerators/globalacceleratorconfiguration.cxx
@@ -72,8 +72,7 @@ public:
     virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
         throw (css::uno::RuntimeException, std::exception) override
     {
-        css::uno::Sequence< OUString > aSeq(1);
-        aSeq[0] = "com.sun.star.ui.GlobalAcceleratorConfiguration";
+        css::uno::Sequence< OUString > aSeq { "com.sun.star.ui.GlobalAcceleratorConfiguration" };
         return aSeq;
     }
 
diff --git a/framework/source/accelerators/moduleacceleratorconfiguration.cxx b/framework/source/accelerators/moduleacceleratorconfiguration.cxx
index 582a1ad..fb1b86e 100644
--- a/framework/source/accelerators/moduleacceleratorconfiguration.cxx
+++ b/framework/source/accelerators/moduleacceleratorconfiguration.cxx
@@ -86,8 +86,7 @@ public:
     virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
         throw (css::uno::RuntimeException, std::exception) override
     {
-        css::uno::Sequence< OUString > aSeq(1);
-        aSeq[0] = "com.sun.star.ui.ModuleAcceleratorConfiguration";
+        css::uno::Sequence< OUString > aSeq { "com.sun.star.ui.ModuleAcceleratorConfiguration" };
         return aSeq;
     }
 
diff --git a/framework/source/fwi/classes/protocolhandlercache.cxx b/framework/source/fwi/classes/protocolhandlercache.cxx
index dde6ceb..ebbc6e8 100644
--- a/framework/source/fwi/classes/protocolhandlercache.cxx
+++ b/framework/source/fwi/classes/protocolhandlercache.cxx
@@ -182,8 +182,7 @@ HandlerCFGAccess::HandlerCFGAccess( const OUString& sPackage )
     : ConfigItem(sPackage)
     , m_pCache(nullptr)
 {
-    css::uno::Sequence< OUString > lListenPaths(1);
-    lListenPaths[0] = SETNAME_HANDLER;
+    css::uno::Sequence< OUString > lListenPaths { SETNAME_HANDLER };
     EnableNotification(lListenPaths);
 }
 
diff --git a/framework/source/jobs/jobdispatch.cxx b/framework/source/jobs/jobdispatch.cxx
index c45364d..07fcef4 100644
--- a/framework/source/jobs/jobdispatch.cxx
+++ b/framework/source/jobs/jobdispatch.cxx
@@ -105,8 +105,7 @@ public:
     virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
         throw (css::uno::RuntimeException, std::exception) override
     {
-        css::uno::Sequence< OUString > aSeq(1);
-        aSeq[0] = "com.sun.star.frame.ProtocolHandler";
+        css::uno::Sequence< OUString > aSeq { "com.sun.star.frame.ProtocolHandler" };
         return aSeq;
     }
 
diff --git a/framework/source/jobs/jobexecutor.cxx b/framework/source/jobs/jobexecutor.cxx
index b637b66..7091256 100644
--- a/framework/source/jobs/jobexecutor.cxx
+++ b/framework/source/jobs/jobexecutor.cxx
@@ -101,8 +101,7 @@ public:
     virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
         throw (css::uno::RuntimeException, std::exception) override
     {
-        css::uno::Sequence< OUString > aSeq(1);
-        aSeq[0] = "com.sun.star.task.JobExecutor";
+        css::uno::Sequence< OUString > aSeq { "com.sun.star.task.JobExecutor" };
         return aSeq;
     }
 
diff --git a/framework/source/loadenv/loadenv.cxx b/framework/source/loadenv/loadenv.cxx
index 1168f04..0bed592 100644
--- a/framework/source/loadenv/loadenv.cxx
+++ b/framework/source/loadenv/loadenv.cxx
@@ -867,8 +867,7 @@ bool LoadEnv::impl_handleContent()
     // <- SAFE -----------------------------------
 
     // query
-    css::uno::Sequence< OUString > lTypeReg(1);
-    lTypeReg[0] = sType;
+    css::uno::Sequence< OUString > lTypeReg { sType };
 
     css::uno::Sequence< css::beans::NamedValue > lQuery { { PROP_TYPES, css::uno::makeAny(lTypeReg) } };
 
@@ -1154,8 +1153,7 @@ css::uno::Reference< css::uno::XInterface > LoadEnv::impl_searchLoader()
     aReadLock.clear();
     // <- SAFE -----------------------------------
 
-    css::uno::Sequence< OUString > lTypesReg(1);
-    lTypesReg[0] = sType;
+    css::uno::Sequence< OUString > lTypesReg { sType };
 
     css::uno::Sequence< css::beans::NamedValue > lQuery { { PROP_TYPES, css::uno::makeAny(lTypesReg) } };
 
diff --git a/framework/source/services/autorecovery.cxx b/framework/source/services/autorecovery.cxx
index bcd55bc..9c90fae 100644
--- a/framework/source/services/autorecovery.cxx
+++ b/framework/source/services/autorecovery.cxx
@@ -468,8 +468,7 @@ public:
     virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
         throw (css::uno::RuntimeException, std::exception) override
     {
-        css::uno::Sequence< OUString > aSeq(1);
-        aSeq[0] = "com.sun.star.frame.AutoRecovery";
+        css::uno::Sequence< OUString > aSeq { "com.sun.star.frame.AutoRecovery" };
         return aSeq;
     }
 
diff --git a/framework/source/services/desktop.cxx b/framework/source/services/desktop.cxx
index 948e91e..edbadd8 100644
--- a/framework/source/services/desktop.cxx
+++ b/framework/source/services/desktop.cxx
@@ -83,8 +83,7 @@ sal_Bool SAL_CALL Desktop::supportsService(OUString const & ServiceName)
 css::uno::Sequence<OUString> SAL_CALL Desktop::getSupportedServiceNames()
     throw (css::uno::RuntimeException, std::exception)
 {
-    css::uno::Sequence< OUString > aSeq(1);
-    aSeq[0] = "com.sun.star.frame.Desktop";
+    css::uno::Sequence< OUString > aSeq { "com.sun.star.frame.Desktop" };
     return aSeq;
 }
 
diff --git a/framework/source/services/frame.cxx b/framework/source/services/frame.cxx
index f68f2d3..754768e 100644
--- a/framework/source/services/frame.cxx
+++ b/framework/source/services/frame.cxx
@@ -168,8 +168,7 @@ public:
     virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
         throw (css::uno::RuntimeException, std::exception) override
     {
-        css::uno::Sequence< OUString > aSeq(1);
-        aSeq[0] = "com.sun.star.frame.Frame";
+        css::uno::Sequence< OUString > aSeq { "com.sun.star.frame.Frame" };
         return aSeq;
     }
 
diff --git a/framework/source/services/modulemanager.cxx b/framework/source/services/modulemanager.cxx
index a41a1cc..942e6cf 100644
--- a/framework/source/services/modulemanager.cxx
+++ b/framework/source/services/modulemanager.cxx
@@ -170,8 +170,7 @@ sal_Bool ModuleManager::supportsService(OUString const & ServiceName)
 css::uno::Sequence< OUString > ModuleManager::getSupportedServiceNames()
     throw (css::uno::RuntimeException, std::exception)
 {
-    css::uno::Sequence< OUString > s(1);
-    s[0] = "com.sun.star.frame.ModuleManager";
+    css::uno::Sequence< OUString > s { "com.sun.star.frame.ModuleManager" };
     return s;
 }
 
diff --git a/framework/source/services/pathsettings.cxx b/framework/source/services/pathsettings.cxx
index 91160df..83543c6 100644
--- a/framework/source/services/pathsettings.cxx
+++ b/framework/source/services/pathsettings.cxx
@@ -200,8 +200,7 @@ public:
     virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
         throw (css::uno::RuntimeException, std::exception) override
     {
-        css::uno::Sequence< OUString > aSeq(1);
-        aSeq[0] = "com.sun.star.util.PathSettings";
+        css::uno::Sequence< OUString > aSeq { "com.sun.star.util.PathSettings" };
         return aSeq;
     }
 
diff --git a/framework/source/services/sessionlistener.cxx b/framework/source/services/sessionlistener.cxx
index e3fdf1c..05c086d 100644
--- a/framework/source/services/sessionlistener.cxx
+++ b/framework/source/services/sessionlistener.cxx
@@ -126,8 +126,7 @@ public:
     virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
         throw (css::uno::RuntimeException, std::exception) override
     {
-        css::uno::Sequence< OUString > aSeq(1);
-        aSeq[0] = "com.sun.star.frame.SessionListener";
+        css::uno::Sequence< OUString > aSeq { "com.sun.star.frame.SessionListener" };
         return aSeq;
     }
 
diff --git a/framework/source/services/substitutepathvars.cxx b/framework/source/services/substitutepathvars.cxx
index ef5b969..2046631 100644
--- a/framework/source/services/substitutepathvars.cxx
+++ b/framework/source/services/substitutepathvars.cxx
@@ -245,8 +245,7 @@ public:
     virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
         throw (css::uno::RuntimeException, std::exception) override
     {
-        css::uno::Sequence< OUString > aSeq(1);
-        aSeq[0] = "com.sun.star.util.PathSubstitution";
+        css::uno::Sequence< OUString > aSeq { "com.sun.star.util.PathSubstitution" };
         return aSeq;
     }
 
diff --git a/framework/source/services/tabwindowservice.cxx b/framework/source/services/tabwindowservice.cxx
index 14007a6..dde0162 100644
--- a/framework/source/services/tabwindowservice.cxx
+++ b/framework/source/services/tabwindowservice.cxx
@@ -115,8 +115,7 @@ public:
     virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
         throw (css::uno::RuntimeException, std::exception) override
     {
-        css::uno::Sequence< OUString > aSeq(1);
-        aSeq[0] = "com.sun.star.ui.dialogs.TabContainerWindow";
+        css::uno::Sequence< OUString > aSeq { "com.sun.star.ui.dialogs.TabContainerWindow" };
         return aSeq;
     }
 
diff --git a/framework/source/services/taskcreatorsrv.cxx b/framework/source/services/taskcreatorsrv.cxx
index 7e8fa63..d46b9ba 100644
--- a/framework/source/services/taskcreatorsrv.cxx
+++ b/framework/source/services/taskcreatorsrv.cxx
@@ -81,8 +81,7 @@ public:
     virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
         throw (css::uno::RuntimeException, std::exception) override
     {
-        css::uno::Sequence< OUString > aSeq(1);
-        aSeq[0] = "com.sun.star.frame.TaskCreator";
+        css::uno::Sequence< OUString > aSeq { "com.sun.star.frame.TaskCreator" };
         return aSeq;
     }
 
diff --git a/framework/source/services/urltransformer.cxx b/framework/source/services/urltransformer.cxx
index 7363bfba..21b43b4 100644
--- a/framework/source/services/urltransformer.cxx
+++ b/framework/source/services/urltransformer.cxx
@@ -54,8 +54,7 @@ public:
     virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
         throw (css::uno::RuntimeException, std::exception) override
     {
-        css::uno::Sequence< OUString > aRet(1);
-        aRet[0] = "com.sun.star.util.URLTransformer";
+        css::uno::Sequence< OUString > aRet { "com.sun.star.util.URLTransformer" };
         return aRet;
     }
 
diff --git a/framework/source/uiconfiguration/moduleuicfgsupplier.cxx b/framework/source/uiconfiguration/moduleuicfgsupplier.cxx
index 1469fa3..213daa5 100644
--- a/framework/source/uiconfiguration/moduleuicfgsupplier.cxx
+++ b/framework/source/uiconfiguration/moduleuicfgsupplier.cxx
@@ -80,8 +80,7 @@ public:
     virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
         throw (css::uno::RuntimeException, std::exception) override
     {
-        css::uno::Sequence< OUString > aSeq(1);
-        aSeq[0] = "com.sun.star.ui.ModuleUIConfigurationManagerSupplier";
+        css::uno::Sequence< OUString > aSeq { "com.sun.star.ui.ModuleUIConfigurationManagerSupplier" };
         return aSeq;
     }
 
diff --git a/framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx b/framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx
index 48e1845..b862ad8 100644
--- a/framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx
+++ b/framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx
@@ -95,8 +95,7 @@ public:
     virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
         throw (css::uno::RuntimeException, std::exception) override
     {
-        css::uno::Sequence< OUString > aSeq(1);
-        aSeq[0] = "com.sun.star.ui.ModuleUIConfigurationManager";
+        css::uno::Sequence< OUString > aSeq { "com.sun.star.ui.ModuleUIConfigurationManager" };
         return aSeq;
     }
 
diff --git a/framework/source/uiconfiguration/uicategorydescription.cxx b/framework/source/uiconfiguration/uicategorydescription.cxx
index 704343a..0f89271 100644
--- a/framework/source/uiconfiguration/uicategorydescription.cxx
+++ b/framework/source/uiconfiguration/uicategorydescription.cxx
@@ -403,8 +403,7 @@ public:
     virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
         throw (css::uno::RuntimeException, std::exception) override
     {
-        css::uno::Sequence< OUString > aSeq(1);
-        aSeq[0] = "com.sun.star.ui.UICategoryDescription";
+        css::uno::Sequence< OUString > aSeq { "com.sun.star.ui.UICategoryDescription" };
         return aSeq;
     }
 
diff --git a/framework/source/uiconfiguration/uiconfigurationmanager.cxx b/framework/source/uiconfiguration/uiconfigurationmanager.cxx
index 6232f9c..c197f0e 100644
--- a/framework/source/uiconfiguration/uiconfigurationmanager.cxx
+++ b/framework/source/uiconfiguration/uiconfigurationmanager.cxx
@@ -79,8 +79,7 @@ public:
     virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
         throw (css::uno::RuntimeException, std::exception) override
     {
-        css::uno::Sequence< OUString > aSeq(1);
-        aSeq[0] = "com.sun.star.ui.UIConfigurationManager";
+        css::uno::Sequence< OUString > aSeq { "com.sun.star.ui.UIConfigurationManager" };
         return aSeq;
     }
 
diff --git a/framework/source/uiconfiguration/windowstateconfiguration.cxx b/framework/source/uiconfiguration/windowstateconfiguration.cxx
index fcf5eb3..4082f7e 100644
--- a/framework/source/uiconfiguration/windowstateconfiguration.cxx
+++ b/framework/source/uiconfiguration/windowstateconfiguration.cxx
@@ -1299,8 +1299,7 @@ public:
     virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
         throw (css::uno::RuntimeException, std::exception) override
     {
-        css::uno::Sequence< OUString > aSeq(1);
-        aSeq[0] = "com.sun.star.ui.WindowStateConfiguration";
+        css::uno::Sequence< OUString > aSeq { "com.sun.star.ui.WindowStateConfiguration" };
         return aSeq;
     }
 
diff --git a/framework/source/uielement/controlmenucontroller.cxx b/framework/source/uielement/controlmenucontroller.cxx
index dc9c604..0d16b4a 100644
--- a/framework/source/uielement/controlmenucontroller.cxx
+++ b/framework/source/uielement/controlmenucontroller.cxx
@@ -197,8 +197,7 @@ public:
     virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
         throw (css::uno::RuntimeException, std::exception) override
     {
-        css::uno::Sequence< OUString > aSeq(1);
-        aSeq[0] = "com.sun.star.frame.PopupMenuController";
+        css::uno::Sequence< OUString > aSeq { "com.sun.star.frame.PopupMenuController" };
         return aSeq;
     }
 
diff --git a/framework/source/uielement/objectmenucontroller.cxx b/framework/source/uielement/objectmenucontroller.cxx
index ddc9089..c2c8960 100644
--- a/framework/source/uielement/objectmenucontroller.cxx
+++ b/framework/source/uielement/objectmenucontroller.cxx
@@ -75,8 +75,7 @@ public:
     virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
         throw (css::uno::RuntimeException, std::exception) override
     {
-        css::uno::Sequence< OUString > aSeq(1);
-        aSeq[0] = "com.sun.star.frame.PopupMenuController";
+        css::uno::Sequence< OUString > aSeq { "com.sun.star.frame.PopupMenuController" };
         return aSeq;
     }
 
diff --git a/framework/source/uielement/recentfilesmenucontroller.cxx b/framework/source/uielement/recentfilesmenucontroller.cxx
index a86995d..9c3921f 100644
--- a/framework/source/uielement/recentfilesmenucontroller.cxx
+++ b/framework/source/uielement/recentfilesmenucontroller.cxx
@@ -79,8 +79,7 @@ public:
     virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
         throw (css::uno::RuntimeException, std::exception) override
     {
-        css::uno::Sequence< OUString > aSeq(1);
-        aSeq[0] = "com.sun.star.frame.PopupMenuController";
+        css::uno::Sequence< OUString > aSeq { "com.sun.star.frame.PopupMenuController" };
         return aSeq;
     }
 
diff --git a/framework/source/uielement/saveasmenucontroller.cxx b/framework/source/uielement/saveasmenucontroller.cxx
index fe6aeb6..d056be2 100644
--- a/framework/source/uielement/saveasmenucontroller.cxx
+++ b/framework/source/uielement/saveasmenucontroller.cxx
@@ -66,8 +66,7 @@ public:
     virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
         throw (css::uno::RuntimeException, std::exception) override
     {
-        css::uno::Sequence< OUString > aSeq(1);
-        aSeq[0] = "com.sun.star.frame.PopupMenuController";
+        css::uno::Sequence< OUString > aSeq { "com.sun.star.frame.PopupMenuController" };
         return aSeq;
     }
 
diff --git a/framework/source/uielement/toolbarmanager.cxx b/framework/source/uielement/toolbarmanager.cxx
index ecc3708..a60589b 100644
--- a/framework/source/uielement/toolbarmanager.cxx
+++ b/framework/source/uielement/toolbarmanager.cxx
@@ -2178,8 +2178,7 @@ bool ToolBarManager::impl_RetrieveShortcutsFromConfiguration(
         try
         {
             css::awt::KeyEvent aKeyEvent;
-            Sequence< OUString > aCommands(1);
-            aCommands[0] = rCommand;

... etc. - the rest is truncated


More information about the Libreoffice-commits mailing list