summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--accessibility/source/extended/accessibletabbar.cxx3
-rw-r--r--accessibility/source/extended/accessibletabbarpage.cxx3
-rw-r--r--accessibility/source/extended/accessibletabbarpagelist.cxx3
-rw-r--r--accessibility/source/standard/vclxaccessiblebutton.cxx3
-rw-r--r--accessibility/source/standard/vclxaccessiblecheckbox.cxx3
-rw-r--r--accessibility/source/standard/vclxaccessibleedit.cxx3
-rw-r--r--accessibility/source/standard/vclxaccessiblefixedhyperlink.cxx3
-rw-r--r--accessibility/source/standard/vclxaccessiblefixedtext.cxx3
-rw-r--r--accessibility/source/standard/vclxaccessiblemenu.cxx3
-rw-r--r--accessibility/source/standard/vclxaccessiblemenubar.cxx3
-rw-r--r--accessibility/source/standard/vclxaccessiblemenuitem.cxx3
-rw-r--r--accessibility/source/standard/vclxaccessiblemenuseparator.cxx3
-rw-r--r--accessibility/source/standard/vclxaccessiblepopupmenu.cxx3
-rw-r--r--accessibility/source/standard/vclxaccessibleradiobutton.cxx3
-rw-r--r--accessibility/source/standard/vclxaccessiblescrollbar.cxx3
-rw-r--r--accessibility/source/standard/vclxaccessiblestatusbar.cxx3
-rw-r--r--accessibility/source/standard/vclxaccessiblestatusbaritem.cxx3
-rw-r--r--accessibility/source/standard/vclxaccessibletabcontrol.cxx3
-rw-r--r--accessibility/source/standard/vclxaccessibletabpage.cxx3
-rw-r--r--avmedia/source/gstreamer/gstframegrabber.cxx3
-rw-r--r--avmedia/source/opengl/oglframegrabber.cxx3
-rw-r--r--avmedia/source/opengl/oglmanager.cxx3
-rw-r--r--avmedia/source/opengl/oglplayer.cxx3
-rw-r--r--avmedia/source/opengl/oglwindow.cxx3
-rw-r--r--avmedia/source/vlc/vlcframegrabber.cxx3
-rw-r--r--avmedia/source/vlc/vlcmanager.cxx3
-rw-r--r--avmedia/source/vlc/vlcplayer.cxx3
-rw-r--r--avmedia/source/vlc/vlcwindow.cxx3
-rw-r--r--bridges/test/java_uno/acquire/testacquire.cxx3
-rw-r--r--bridges/test/java_uno/equals/testequals.cxx3
-rw-r--r--canvas/source/cairo/cairo_canvasbitmap.cxx3
-rw-r--r--canvas/source/cairo/cairo_canvascustomsprite.cxx3
-rw-r--r--canvas/source/cairo/cairo_canvasfont.cxx3
-rw-r--r--canvas/source/cairo/cairo_textlayout.cxx3
-rw-r--r--canvas/source/directx/dx_canvasbitmap.cxx3
-rw-r--r--canvas/source/directx/dx_canvascustomsprite.cxx3
-rw-r--r--canvas/source/directx/dx_canvasfont.cxx3
-rw-r--r--canvas/source/directx/dx_config.cxx6
-rw-r--r--canvas/source/directx/dx_textlayout.cxx3
-rw-r--r--canvas/source/tools/cachedprimitivebase.cxx3
-rw-r--r--canvas/source/tools/parametricpolypolygon.cxx3
-rw-r--r--canvas/source/vcl/canvasbitmap.cxx3
-rw-r--r--canvas/source/vcl/canvascustomsprite.cxx3
-rw-r--r--canvas/source/vcl/canvasfont.cxx3
-rw-r--r--canvas/source/vcl/textlayout.cxx3
-rw-r--r--chart2/source/controller/main/ChartController.cxx3
-rw-r--r--chart2/source/model/template/GL3DBarChartType.cxx3
-rw-r--r--chart2/source/tools/Scaling.cxx12
-rw-r--r--chart2/source/view/axes/DateScaling.cxx3
-rw-r--r--comphelper/source/container/enumerablemap.cxx3
-rw-r--r--comphelper/source/property/opropertybag.cxx3
-rw-r--r--comphelper/source/streaming/memorystream.cxx3
-rw-r--r--connectivity/source/cpool/ZPoolCollection.cxx3
-rw-r--r--connectivity/source/drivers/evoab2/NCatalog.cxx3
-rw-r--r--connectivity/source/drivers/evoab2/NResultSet.cxx3
-rw-r--r--connectivity/source/drivers/evoab2/NTables.cxx3
-rw-r--r--connectivity/source/drivers/hsqldb/HCatalog.cxx3
-rw-r--r--connectivity/source/drivers/hsqldb/HColumns.cxx3
-rw-r--r--connectivity/source/drivers/kab/KCatalog.cxx3
-rw-r--r--connectivity/source/drivers/kab/KTables.cxx3
-rw-r--r--connectivity/source/drivers/macab/MacabCatalog.cxx3
-rw-r--r--connectivity/source/drivers/macab/MacabTables.cxx3
-rw-r--r--connectivity/source/drivers/mork/MCatalog.cxx3
-rw-r--r--connectivity/source/drivers/mork/MDriver.cxx3
-rw-r--r--connectivity/source/drivers/mork/MTables.cxx3
-rw-r--r--connectivity/source/drivers/mysql/YCatalog.cxx3
-rw-r--r--connectivity/source/drivers/mysql/YColumns.cxx3
-rw-r--r--connectivity/source/manager/mdrivermanager.cxx3
-rw-r--r--connectivity/source/parse/PColumn.cxx3
-rw-r--r--cui/source/customize/cfg.cxx3
-rw-r--r--cui/source/dialogs/colorpicker.cxx3
-rw-r--r--dbaccess/source/core/dataaccess/bookmarkcontainer.cxx3
-rw-r--r--dbaccess/source/core/dataaccess/connection.cxx3
-rw-r--r--dbaccess/source/core/dataaccess/dataaccessdescriptor.cxx6
-rw-r--r--dbaccess/source/core/dataaccess/databasedocument.cxx3
-rw-r--r--dbaccess/source/ext/macromigration/macromigrationwizard.cxx3
-rw-r--r--dbaccess/source/filter/xml/xmlExport.cxx6
-rw-r--r--dbaccess/source/ui/dlg/ConnectionHelper.cxx3
-rw-r--r--dbaccess/source/ui/dlg/tablespage.cxx3
-rw-r--r--desktop/source/migration/services/basicmigration.cxx3
-rw-r--r--desktop/source/migration/services/oo3extensionmigration.cxx3
-rw-r--r--desktop/source/migration/services/wordbookmigration.cxx3
-rw-r--r--dtrans/source/cnttype/mcnttfactory.cxx3
-rw-r--r--dtrans/source/generic/generic_clipboard.cxx3
-rw-r--r--dtrans/source/win32/clipb/WinClipboard.cxx3
-rw-r--r--dtrans/source/win32/ftransl/ftransl.cxx3
-rw-r--r--embeddedobj/test/MainThreadExecutor/xexecutor.cxx3
-rw-r--r--extensions/source/bibliography/framectr.cxx3
-rw-r--r--extensions/source/dbpilots/listcombowizard.cxx3
-rw-r--r--extensions/source/dbpilots/wizardservices.cxx9
-rw-r--r--extensions/source/logging/consolehandler.cxx3
-rw-r--r--extensions/source/logging/csvformatter.cxx3
-rw-r--r--extensions/source/logging/filehandler.cxx3
-rw-r--r--extensions/source/logging/logger.cxx6
-rw-r--r--extensions/source/logging/plaintextformatter.cxx3
-rw-r--r--extensions/source/propctrlr/defaultforminspection.cxx3
-rw-r--r--extensions/source/propctrlr/defaulthelpprovider.cxx3
-rw-r--r--extensions/source/propctrlr/formcontroller.cxx6
-rw-r--r--extensions/source/propctrlr/formgeometryhandler.cxx3
-rw-r--r--extensions/source/propctrlr/propcontroller.cxx3
-rw-r--r--extensions/source/propctrlr/stringrepresentation.cxx3
-rw-r--r--extensions/source/update/check/updatecheckconfig.cxx3
-rw-r--r--extensions/source/update/check/updatecheckjob.cxx3
-rw-r--r--extensions/source/update/feed/updatefeed.cxx3
-rw-r--r--extensions/source/update/ui/updatecheckui.cxx3
-rw-r--r--filter/source/config/cache/configflush.cxx3
-rw-r--r--filter/source/config/cache/contenthandlerfactory.cxx6
-rw-r--r--filter/source/config/cache/filterfactory.cxx3
-rw-r--r--filter/source/config/cache/frameloaderfactory.cxx6
-rw-r--r--filter/source/config/cache/typedetection.cxx3
-rw-r--r--filter/source/xsltdialog/xmlfilterdialogcomponent.cxx3
-rw-r--r--forms/source/runtime/formoperations.cxx3
-rw-r--r--fpicker/source/office/OfficeFolderPicker.cxx3
-rw-r--r--fpicker/source/win32/folderpicker/FolderPicker.cxx3
-rw-r--r--framework/inc/helper/statusindicatorfactory.hxx3
-rw-r--r--framework/inc/services/layoutmanager.hxx3
-rw-r--r--framework/inc/uiconfiguration/imagemanager.hxx3
-rw-r--r--framework/inc/uielement/uicommanddescription.hxx3
-rw-r--r--framework/inc/uifactory/menubarfactory.hxx3
-rw-r--r--framework/source/accelerators/documentacceleratorconfiguration.cxx3
-rw-r--r--framework/source/accelerators/globalacceleratorconfiguration.cxx3
-rw-r--r--framework/source/accelerators/moduleacceleratorconfiguration.cxx3
-rw-r--r--framework/source/fwi/classes/protocolhandlercache.cxx3
-rw-r--r--framework/source/jobs/jobdispatch.cxx3
-rw-r--r--framework/source/jobs/jobexecutor.cxx3
-rw-r--r--framework/source/loadenv/loadenv.cxx6
-rw-r--r--framework/source/services/autorecovery.cxx3
-rw-r--r--framework/source/services/desktop.cxx3
-rw-r--r--framework/source/services/frame.cxx3
-rw-r--r--framework/source/services/modulemanager.cxx3
-rw-r--r--framework/source/services/pathsettings.cxx3
-rw-r--r--framework/source/services/sessionlistener.cxx3
-rw-r--r--framework/source/services/substitutepathvars.cxx3
-rw-r--r--framework/source/services/tabwindowservice.cxx3
-rw-r--r--framework/source/services/taskcreatorsrv.cxx3
-rw-r--r--framework/source/services/urltransformer.cxx3
-rw-r--r--framework/source/uiconfiguration/moduleuicfgsupplier.cxx3
-rw-r--r--framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx3
-rw-r--r--framework/source/uiconfiguration/uicategorydescription.cxx3
-rw-r--r--framework/source/uiconfiguration/uiconfigurationmanager.cxx3
-rw-r--r--framework/source/uiconfiguration/windowstateconfiguration.cxx3
-rw-r--r--framework/source/uielement/controlmenucontroller.cxx3
-rw-r--r--framework/source/uielement/objectmenucontroller.cxx3
-rw-r--r--framework/source/uielement/recentfilesmenucontroller.cxx3
-rw-r--r--framework/source/uielement/saveasmenucontroller.cxx3
-rw-r--r--framework/source/uielement/toolbarmanager.cxx3
-rw-r--r--framework/source/uifactory/addonstoolbarfactory.cxx3
-rw-r--r--framework/source/uifactory/statusbarfactory.cxx3
-rw-r--r--framework/source/uifactory/toolbarfactory.cxx3
-rw-r--r--framework/source/uifactory/uicontrollerfactory.cxx9
-rw-r--r--framework/source/uifactory/uielementfactorymanager.cxx3
-rw-r--r--framework/source/uifactory/windowcontentfactorymanager.cxx3
-rw-r--r--hwpfilter/source/hwpreader.hxx3
-rw-r--r--i18npool/source/breakiterator/breakiteratorImpl.cxx3
-rw-r--r--i18npool/source/breakiterator/breakiterator_unicode.cxx3
-rw-r--r--i18npool/source/calendar/calendar_gregorian.cxx3
-rw-r--r--i18npool/source/characterclassification/cclass_unicode.cxx3
-rw-r--r--i18npool/source/characterclassification/characterclassificationImpl.cxx3
-rw-r--r--i18npool/source/characterclassification/unoscripttypedetector.cxx3
-rw-r--r--i18npool/source/collator/chaptercollator.cxx3
-rw-r--r--i18npool/source/collator/collatorImpl.cxx3
-rw-r--r--i18npool/source/collator/collator_unicode.cxx3
-rw-r--r--i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx3
-rw-r--r--i18npool/source/indexentry/indexentrysupplier.cxx3
-rw-r--r--i18npool/source/inputchecker/inputsequencechecker.cxx3
-rw-r--r--i18npool/source/localedata/localedata.cxx3
-rw-r--r--i18npool/source/numberformatcode/numberformatcode.cxx3
-rw-r--r--i18npool/source/ordinalsuffix/ordinalsuffix.cxx3
-rw-r--r--i18npool/source/search/textsearch.cxx6
-rw-r--r--i18npool/source/textconversion/textconversion.cxx3
-rw-r--r--i18npool/source/textconversion/textconversionImpl.cxx3
-rw-r--r--i18npool/source/transliteration/transliterationImpl.cxx3
-rw-r--r--i18npool/source/transliteration/transliteration_commonclass.cxx3
-rw-r--r--io/source/TextInputStream/TextInputStream.cxx3
-rw-r--r--io/source/acceptor/acceptor.cxx3
-rw-r--r--io/source/connector/connector.cxx3
-rw-r--r--odk/examples/DevelopersGuide/Components/CppComponent/service1_impl.cxx3
-rw-r--r--odk/examples/cpp/custompanel/ctp_factory.cxx3
-rw-r--r--odk/examples/cpp/remoteclient/remoteclient.cxx3
-rw-r--r--oox/source/shape/ShapeContextHandler.cxx3
-rw-r--r--package/source/zippackage/ZipPackageFolder.cxx3
-rw-r--r--package/source/zippackage/ZipPackageFolderEnumeration.cxx3
-rw-r--r--remotebridges/source/unourl_resolver/unourl_resolver.cxx3
-rw-r--r--reportdesign/source/core/api/FixedLine.cxx3
-rw-r--r--reportdesign/source/core/api/FixedText.cxx3
-rw-r--r--reportdesign/source/core/api/FormatCondition.cxx3
-rw-r--r--reportdesign/source/core/api/Function.cxx3
-rw-r--r--reportdesign/source/core/api/ImageControl.cxx3
-rw-r--r--reportdesign/source/core/api/ReportDefinition.cxx3
-rw-r--r--reportdesign/source/core/api/ReportEngineJFree.cxx3
-rw-r--r--reportdesign/source/core/api/Shape.cxx3
-rw-r--r--reportdesign/source/filter/xml/xmlExport.cxx18
-rw-r--r--reportdesign/source/filter/xml/xmlExportDocumentHandler.cxx3
-rw-r--r--reportdesign/source/filter/xml/xmlImportDocumentHandler.cxx3
-rw-r--r--reportdesign/source/filter/xml/xmlfilter.cxx15
-rw-r--r--reportdesign/source/ui/inspection/DataProviderHandler.cxx9
-rw-r--r--reportdesign/source/ui/inspection/DefaultInspection.cxx3
-rw-r--r--reportdesign/source/ui/inspection/GeometryHandler.cxx3
-rw-r--r--reportdesign/source/ui/inspection/ReportComponentHandler.cxx3
-rw-r--r--scripting/source/dlgprov/dlgprov.cxx3
-rw-r--r--scripting/source/stringresource/stringresource.cxx9
-rw-r--r--sd/source/filter/html/HtmlOptionsDialog.cxx3
-rw-r--r--sfx2/source/appl/appinit.cxx3
-rw-r--r--sfx2/source/appl/appserv.cxx3
-rw-r--r--sfx2/source/appl/macroloader.cxx3
-rw-r--r--sfx2/source/appl/shutdownicon.cxx3
-rw-r--r--sfx2/source/doc/SfxDocumentMetaData.cxx3
-rw-r--r--sfx2/source/doc/doctempl.cxx3
-rw-r--r--sfx2/source/doc/doctemplates.cxx6
-rw-r--r--sfx2/source/doc/iframe.cxx3
-rw-r--r--sfx2/source/doc/plugin.cxx3
-rw-r--r--sfx2/source/notify/globalevents.cxx3
-rw-r--r--shell/source/cmdmail/cmdmailsuppl.cxx3
-rw-r--r--shell/source/unix/exec/shellexec.cxx3
-rw-r--r--shell/source/win32/SysShExec.cxx3
-rw-r--r--shell/source/win32/simplemail/smplmailsuppl.cxx3
-rw-r--r--sot/source/unoolestorage/xolesimplestorage.cxx3
-rw-r--r--stoc/source/corereflection/crefl.cxx3
-rw-r--r--stoc/source/defaultregistry/defaultregistry.cxx3
-rw-r--r--stoc/source/implementationregistration/implreg.cxx3
-rw-r--r--stoc/source/invocation/invocation.cxx3
-rw-r--r--stoc/source/invocation_adapterfactory/iafactory.cxx3
-rw-r--r--stoc/source/loader/dllcomponentloader.cxx3
-rw-r--r--stoc/source/namingservice/namingservice.cxx3
-rw-r--r--stoc/source/simpleregistry/simpleregistry.cxx3
-rw-r--r--stoc/source/typeconv/convert.cxx3
-rw-r--r--stoc/source/uriproc/ExternalUriReferenceTranslator.cxx3
-rw-r--r--stoc/source/uriproc/UriReferenceFactory.cxx3
-rw-r--r--stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTexpand.cxx3
-rw-r--r--stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTscript.cxx3
-rw-r--r--stoc/source/uriproc/VndSunStarPkgUrlReferenceFactory.cxx3
-rw-r--r--svl/source/numbers/supservs.cxx3
-rw-r--r--svl/source/passwordcontainer/passwordcontainer.cxx3
-rw-r--r--svl/source/uno/pathservice.cxx3
-rw-r--r--svtools/source/config/colorcfg.cxx3
-rw-r--r--svtools/source/config/extcolorcfg.cxx3
-rw-r--r--svtools/source/control/vclxaccessibleheaderbaritem.cxx3
-rw-r--r--svtools/source/uno/fpicker.cxx6
-rw-r--r--svtools/source/uno/wizard/unowizard.cxx3
-rw-r--r--svx/source/accessibility/AccessibleSvxFindReplaceDialog.cxx3
-rw-r--r--svx/source/form/fmshimp.cxx9
-rw-r--r--svx/source/unodraw/UnoGraphicExporter.cxx3
-rw-r--r--svx/source/unodraw/recoveryui.cxx3
-rw-r--r--sw/qa/core/uwriter.cxx3
-rw-r--r--sw/source/core/docnode/finalthreadmanager.cxx3
-rw-r--r--sw/source/core/unocore/unocoll.cxx3
-rw-r--r--sw/source/core/unocore/unoport.cxx3
-rw-r--r--sw/source/core/unocore/unosect.cxx9
-rw-r--r--testtools/source/bridgetest/constructors.cxx6
-rw-r--r--testtools/source/bridgetest/cppobj.cxx3
-rw-r--r--toolkit/source/awt/asynccallback.cxx3
-rw-r--r--toolkit/source/awt/vclxaccessiblecomponent.cxx3
-rw-r--r--toolkit/source/controls/controlmodelcontainerbase.cxx3
-rw-r--r--toolkit/source/controls/grid/sortablegriddatamodel.cxx3
-rw-r--r--toolkit/source/controls/tabpagemodel.cxx3
-rw-r--r--ucb/source/core/FileAccess.cxx3
-rw-r--r--ucb/source/ucp/ext/ucpext_datasupplier.cxx3
-rw-r--r--unotools/source/config/saveopt.cxx6
-rw-r--r--unoxml/source/rdf/CBlankNode.cxx3
-rw-r--r--unoxml/source/rdf/CLiteral.cxx3
-rw-r--r--unoxml/source/rdf/CURI.cxx3
-rw-r--r--unoxml/source/rdf/librdf_repository.cxx3
-rw-r--r--uui/source/requeststringresolver.cxx3
-rw-r--r--vbahelper/source/vbahelper/vbaglobalbase.cxx3
-rw-r--r--vcl/source/app/session.cxx3
-rw-r--r--vcl/source/components/dtranscomp.cxx3
-rw-r--r--vcl/source/gdi/print3.cxx18
-rw-r--r--vcl/unx/generic/dtrans/X11_service.cxx9
-rw-r--r--vcl/unx/gtk3/app/gtk3gtkinst.cxx3
-rw-r--r--winaccessibility/source/service/msaaservice_impl.cxx3
-rw-r--r--xmlscript/source/xmlflat_imexp/xmlbas_export.cxx6
-rw-r--r--xmlscript/source/xmlflat_imexp/xmlbas_import.cxx6
-rw-r--r--xmlsecurity/source/component/certificatecontainer.cxx3
-rw-r--r--xmlsecurity/source/xmlsec/serialnumberadapter.cxx3
274 files changed, 320 insertions, 640 deletions
diff --git a/accessibility/source/extended/accessibletabbar.cxx b/accessibility/source/extended/accessibletabbar.cxx
index 74fe20044f2b..b020513c7228 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 0c1479f86337..8ce47ce1a61c 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 95aaa42f802d..cc0fd4183abf 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 8f68773479b0..62c8a1804f66 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 377fe9a96d1d..bc77d1cf4227 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 0f02b3ada913..26d1381caa7a 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 39e9791ba300..8b7c42e70ac8 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 e79718577bbd..74d3db4c4eb9 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 80758f805a6e..bd51d096b55c 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 5f64d999fb05..10340f79ad86 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 6a257faff6e0..a13a9f20b2e3 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 c0ba53046f89..0ceda9f1bcb5 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 b0b394151ae5..ee97f1b96d91 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 1881c8fb303a..de870fc4a062 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 76e58a67537d..91b528cb3d4e 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 701e62f9ac9a..a2e4053c8b70 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 9179ae9486c5..262da8c1cb15 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 417b898151ff..2e7c7aeb9f91 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 f279e7dc0d22..8b5b5e702232 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 17ca6b43f90a..cd2eadf9e9a8 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 551c03307a3b..083cb60be74b 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 1c329eb0a3ad..d17f7ac498b5 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 df1a78d933b6..4aade3c89233 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 ca60b4757d7f..a9ef414a55f3 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 cdf4a341bd7d..850b72f1cb3d 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 71ac8ab41c51..abdfaf260460 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 f20bd612ac8b..6e1b3b101d73 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 ffac4378f439..3105ebfec5e4 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 6ae649b51ff9..c3dd6144c23c 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 ed327eeceecc..651b80d1ffdd 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 9a2cad1e7c70..947d1857c16c 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 2a2d94cc2336..e527cb486e1b 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 2a5bdbb2caf7..875feae4283c 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 2f4af89fb2c9..58a860a1f043 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 c30c74f94659..2af84a56dbab 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 b6295424e005..e56237a7ac98 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 92528376b9d4..95ec59a5aae4 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 be4c3c70bbf2..2ab26c1ca78e 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 fea9d9600a57..fc3111ab0db6 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 02bf2ea7e9f1..23f801eb6807 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 29b35a389f10..e38ab876594f 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 3bb99f1acbfe..a254f00f99a4 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 aec9d8f2635b..e6a454701c01 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 d474e80019a4..efb880945014 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 d86fb802583c..13cf03c9cc0a 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 b9631018f251..e969b51f9446 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 b4dbd06cfaf9..09d62f2280b2 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 87237d0154af..d61b359a99ab 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 52d8ef7890a0..d1ee1d9c6e53 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 897bd020ac3a..583a22785359 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 269c63a22d6b..b31c61744899 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 89f3d8a5d7c6..35b99a80dc8c 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 4e4bbc231863..d04dd4e2e19a 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 f5c3938630e7..7d670e3a3f90 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 5373c2fc6c64..0b9310bbfdc0 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 db5579d05faf..67a698374843 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 d02033edcc86..797c51f71915 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 5ddc36cf2fdd..42bd2a735de3 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 818023d7ebb6..c9a48a19ba96 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 c74523af506e..085b34b2acd1 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 33a97c8f13ad..a6c2095e1c78 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 ee724de3ec91..a97c034df9d1 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 9a4e935854bb..5ff0755dfabf 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 48fd9a8754bb..4c944b90650e 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 36150d305d85..310323011e08 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 ab79da8582d1..6556755ef1fa 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 eae8c5291acd..2f380e50605e 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 686fdf6ee1a4..bd923f3fafe0 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 04fc07196f9e..39d7ebfedeea 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 c7aeb29eeafe..f67fabdb5d9b 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 424204d80bba..4d351204170a 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 05faa3668652..a7490bd7cd01 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 a86507ffa779..3589548024cf 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 ce54c09ab62c..567e2312cafd 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 559505d7e2b4..3b07612b313e 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 ebdf5a8860cf..33ee622dd22d 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 72124df81138..220349b7cba1 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 da5b77b4a6cb..e1eec6b5f397 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 b49bd07b13e2..8f70184dd87e 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 00631a54551b..457b479fb0a5 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 a3fe11bad7d7..a0e401beb0ef 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 4605142530bb..9ae35631b947 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 95010d51e7b4..295d9d3aa4d0 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 31eed17cebd6..13061dc3cf09 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 06d57509d896..3deada710780 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 b31e16f0fe59..968c2f60a9eb 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 2164f76516b5..874e76a65840 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 586b9b617c7b..d89df18482c4 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 4db4a39ab177..3f23ca06d487 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 d7169df6809e..52bcf33f6f0b 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 ed2584396ac3..e5db0639468e 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 1d3a45936b60..87503f3f8283 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 0a0b71f8b433..52c4c368aa50 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 2bafe5a625a8..e9b2944257b6 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 70844f6a862a..585b5e864ff3 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 beda2073a375..3276503eb7e1 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 79f73213f8fe..414d6008f416 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 9a6006441983..0853c3c44aed 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 8c05b4cecdf3..3370c443ee54 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 bcf766ebd61e..80a24fdd3abd 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 310e0c8dd20c..1be13ed9f42b 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 e8b29d784b6d..f0254c51994f 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 1b3c2272ff0c..b2051c86ceba 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 bbf21be7a85a..47b23c7d7d5c 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 a9335156d968..a168e5e8acec 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 0f7d6ccefdeb..1f625367487e 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 5cc7c27cdfdd..38afa0689bcc 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 6c37d82c6c6b..4577415798c0 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 87061729742e..d2bcf6fd0d40 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 b25f1be2af87..1e81e61c7a61 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 89cd8385cd8e..d1dab361f242 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 5954c3bd20f9..756d42f2bd55 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 f3cdafb33957..ecb48a4fff4e 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 9bc256efd3fc..48e35296c692 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 2067f169a6bc..f22e0e0c8fd1 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 767186d1c032..e55f7ae19309 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 fba820963309..8c46073d84e3 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 4179474119c6..d57ae4a255c3 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 f1007cfdbaa4..27401f889182 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 3aaf2c192aaf..634d1a105779 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 cd48610c0fbe..942c2f0d65ea 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 582a1ad82580..fb1b86eb6664 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 dde6ceba0886..ebbc6e8f925c 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 c45364d209a4..07fcef45e691 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 b637b66bc200..7091256b790f 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 1168f04df6d2..0bed59228682 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 bcd55bc417d7..9c90fae0ddb8 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 948e91e6e522..edbadd89ea16 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 f68f2d39d8e1..754768e7d47b 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 a41a1cc3eeb5..942e6cf32fdc 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 91160df00f86..83543c69c960 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 e3fdf1c59582..05c086d74792 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 ef5b9698ec13..2046631b0e0b 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 14007a6346bd..dde0162b3dcc 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 7e8fa63944e5..d46b9ba41bee 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 7363bfba0e05..21b43b4e5bd2 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 1469fa345664..213daa5a50a7 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 48e1845a5d65..b862ad810164 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 704343a3e8fe..0f8927124922 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 6232f9c108fd..c197f0e74ae3 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 fcf5eb32a399..4082f7e1637f 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 dc9c604a2ad6..0d16b4aa3acf 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 ddc90894d3af..c2c8960f5c8b 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 a86995d903ff..9c3921f8e85e 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 fe6aeb67b8c0..d056be277eec 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 ecc370886d9b..a60589b9561d 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;
+ Sequence< OUString > aCommands { rCommand };
Sequence< Any > aSeqKeyCode( rAccelCfg->getPreferredKeyEventsForCommandList( aCommands ) );
if( aSeqKeyCode.getLength() == 1 )
diff --git a/framework/source/uifactory/addonstoolbarfactory.cxx b/framework/source/uifactory/addonstoolbarfactory.cxx
index 4b6b3f728014..11be46047e68 100644
--- a/framework/source/uifactory/addonstoolbarfactory.cxx
+++ b/framework/source/uifactory/addonstoolbarfactory.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.ToolBarFactory";
+ css::uno::Sequence< OUString > aSeq { "com.sun.star.ui.ToolBarFactory" };
return aSeq;
}
diff --git a/framework/source/uifactory/statusbarfactory.cxx b/framework/source/uifactory/statusbarfactory.cxx
index 3faa7815574c..0741348131f5 100644
--- a/framework/source/uifactory/statusbarfactory.cxx
+++ b/framework/source/uifactory/statusbarfactory.cxx
@@ -57,8 +57,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.StatusBarFactory";
+ css::uno::Sequence< OUString > aSeq { "com.sun.star.ui.StatusBarFactory" };
return aSeq;
}
diff --git a/framework/source/uifactory/toolbarfactory.cxx b/framework/source/uifactory/toolbarfactory.cxx
index 8f4bd096eae0..ceccc552b80c 100644
--- a/framework/source/uifactory/toolbarfactory.cxx
+++ b/framework/source/uifactory/toolbarfactory.cxx
@@ -55,8 +55,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.ToolBarFactory";
+ css::uno::Sequence< OUString > aSeq { "com.sun.star.ui.ToolBarFactory" };
return aSeq;
}
diff --git a/framework/source/uifactory/uicontrollerfactory.cxx b/framework/source/uifactory/uicontrollerfactory.cxx
index 4bc329910187..1d25f44b6f9e 100644
--- a/framework/source/uifactory/uicontrollerfactory.cxx
+++ b/framework/source/uifactory/uicontrollerfactory.cxx
@@ -263,8 +263,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.PopupMenuControllerFactory";
+ css::uno::Sequence< OUString > aSeq { "com.sun.star.frame.PopupMenuControllerFactory" };
return aSeq;
}
@@ -315,8 +314,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.ToolbarControllerFactory";
+ css::uno::Sequence< OUString > aSeq { "com.sun.star.frame.ToolbarControllerFactory" };
return aSeq;
}
@@ -367,8 +365,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.StatusbarControllerFactory";
+ css::uno::Sequence< OUString > aSeq { "com.sun.star.frame.StatusbarControllerFactory" };
return aSeq;
}
diff --git a/framework/source/uifactory/uielementfactorymanager.cxx b/framework/source/uifactory/uielementfactorymanager.cxx
index 3f009919cdef..70fa22398130 100644
--- a/framework/source/uifactory/uielementfactorymanager.cxx
+++ b/framework/source/uifactory/uielementfactorymanager.cxx
@@ -374,8 +374,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.UIElementFactoryManager";
+ css::uno::Sequence< OUString > aSeq { "com.sun.star.ui.UIElementFactoryManager" };
return aSeq;
}
diff --git a/framework/source/uifactory/windowcontentfactorymanager.cxx b/framework/source/uifactory/windowcontentfactorymanager.cxx
index e521ff1d108d..ebbc036317c6 100644
--- a/framework/source/uifactory/windowcontentfactorymanager.cxx
+++ b/framework/source/uifactory/windowcontentfactorymanager.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.ui.WindowContentFactoryManager";
+ css::uno::Sequence< OUString > aSeq { "com.sun.star.ui.WindowContentFactoryManager" };
return aSeq;
}
diff --git a/hwpfilter/source/hwpreader.hxx b/hwpfilter/source/hwpreader.hxx
index 0e5825ca14ae..3353bdd65617 100644
--- a/hwpfilter/source/hwpreader.hxx
+++ b/hwpfilter/source/hwpreader.hxx
@@ -192,8 +192,7 @@ Reference< XInterface > HwpImportFilter_CreateInstance(
Sequence< OUString > HwpImportFilter::getSupportedServiceNames_Static() throw ()
{
- Sequence< OUString > aRet(1);
- aRet.getArray()[0] = HwpImportFilter::getImplementationName_Static();
+ Sequence< OUString > aRet { HwpImportFilter::getImplementationName_Static() };
return aRet;
}
diff --git a/i18npool/source/breakiterator/breakiteratorImpl.cxx b/i18npool/source/breakiterator/breakiteratorImpl.cxx
index 114afbef9807..87d3b9f697e4 100644
--- a/i18npool/source/breakiterator/breakiteratorImpl.cxx
+++ b/i18npool/source/breakiterator/breakiteratorImpl.cxx
@@ -614,8 +614,7 @@ BreakIteratorImpl::supportsService(const OUString& rServiceName) throw( RuntimeE
Sequence< OUString > SAL_CALL
BreakIteratorImpl::getSupportedServiceNames() throw( RuntimeException, std::exception )
{
- Sequence< OUString > aRet(1);
- aRet[0] = "com.sun.star.i18n.BreakIterator";
+ Sequence< OUString > aRet { "com.sun.star.i18n.BreakIterator" };
return aRet;
}
diff --git a/i18npool/source/breakiterator/breakiterator_unicode.cxx b/i18npool/source/breakiterator/breakiterator_unicode.cxx
index d76bf14ef269..0db928b56743 100644
--- a/i18npool/source/breakiterator/breakiterator_unicode.cxx
+++ b/i18npool/source/breakiterator/breakiterator_unicode.cxx
@@ -456,8 +456,7 @@ BreakIterator_Unicode::supportsService(const OUString& rServiceName) throw( uno:
uno::Sequence< OUString > SAL_CALL
BreakIterator_Unicode::getSupportedServiceNames() throw( uno::RuntimeException, std::exception )
{
- uno::Sequence< OUString > aRet(1);
- aRet[0] = OUString::createFromAscii(cBreakIterator);
+ uno::Sequence< OUString > aRet { OUString::createFromAscii(cBreakIterator) };
return aRet;
}
diff --git a/i18npool/source/calendar/calendar_gregorian.cxx b/i18npool/source/calendar/calendar_gregorian.cxx
index 156e347d489e..ba8428cd6474 100644
--- a/i18npool/source/calendar/calendar_gregorian.cxx
+++ b/i18npool/source/calendar/calendar_gregorian.cxx
@@ -1220,8 +1220,7 @@ Calendar_gregorian::supportsService(const OUString& rServiceName) throw( Runtime
Sequence< OUString > SAL_CALL
Calendar_gregorian::getSupportedServiceNames() throw( RuntimeException, std::exception )
{
- Sequence< OUString > aRet(1);
- aRet[0] = OUString::createFromAscii(cCalendar);
+ Sequence< OUString > aRet { OUString::createFromAscii(cCalendar) };
return aRet;
}
diff --git a/i18npool/source/characterclassification/cclass_unicode.cxx b/i18npool/source/characterclassification/cclass_unicode.cxx
index 1414e783523e..3864fba13eaf 100644
--- a/i18npool/source/characterclassification/cclass_unicode.cxx
+++ b/i18npool/source/characterclassification/cclass_unicode.cxx
@@ -288,8 +288,7 @@ sal_Bool SAL_CALL cclass_Unicode::supportsService(const OUString& rServiceName)
Sequence< OUString > SAL_CALL cclass_Unicode::getSupportedServiceNames() throw( RuntimeException, std::exception )
{
- Sequence< OUString > aRet(1);
- aRet[0] = "com.sun.star.i18n.CharacterClassification_Unicode";
+ Sequence< OUString > aRet { "com.sun.star.i18n.CharacterClassification_Unicode" };
return aRet;
}
diff --git a/i18npool/source/characterclassification/characterclassificationImpl.cxx b/i18npool/source/characterclassification/characterclassificationImpl.cxx
index cebf37eaa8f7..be40da7fb53f 100644
--- a/i18npool/source/characterclassification/characterclassificationImpl.cxx
+++ b/i18npool/source/characterclassification/characterclassificationImpl.cxx
@@ -208,8 +208,7 @@ CharacterClassificationImpl::supportsService(const OUString& rServiceName)
Sequence< OUString > SAL_CALL
CharacterClassificationImpl::getSupportedServiceNames() throw( RuntimeException, std::exception )
{
- Sequence< OUString > aRet(1);
- aRet[0] = "com.sun.star.i18n.CharacterClassification";
+ Sequence< OUString > aRet { "com.sun.star.i18n.CharacterClassification" };
return aRet;
}
diff --git a/i18npool/source/characterclassification/unoscripttypedetector.cxx b/i18npool/source/characterclassification/unoscripttypedetector.cxx
index ecdd68ba587f..48c5138c0a34 100644
--- a/i18npool/source/characterclassification/unoscripttypedetector.cxx
+++ b/i18npool/source/characterclassification/unoscripttypedetector.cxx
@@ -77,8 +77,7 @@ UnoScriptTypeDetector::supportsService(const OUString& ServiceName) throw( css::
css::uno::Sequence< OUString > SAL_CALL
UnoScriptTypeDetector::getSupportedServiceNames() throw( css::uno::RuntimeException, std::exception )
{
- css::uno::Sequence< OUString > aRet(1);
- aRet[0] = "com.sun.star.i18n.ScriptTypeDetector";
+ css::uno::Sequence< OUString > aRet { "com.sun.star.i18n.ScriptTypeDetector" };
return aRet;
}
diff --git a/i18npool/source/collator/chaptercollator.cxx b/i18npool/source/collator/chaptercollator.cxx
index e290c39abbb5..b18e0fcf8859 100644
--- a/i18npool/source/collator/chaptercollator.cxx
+++ b/i18npool/source/collator/chaptercollator.cxx
@@ -90,8 +90,7 @@ ChapterCollator::supportsService(const OUString& rServiceName) throw( RuntimeExc
Sequence< OUString > SAL_CALL
ChapterCollator::getSupportedServiceNames() throw( RuntimeException, std::exception )
{
- Sequence< OUString > aRet(1);
- aRet[0] = OUString::createFromAscii(cChapCollator);
+ Sequence< OUString > aRet { OUString::createFromAscii(cChapCollator) };
return aRet;
}
diff --git a/i18npool/source/collator/collatorImpl.cxx b/i18npool/source/collator/collatorImpl.cxx
index ca800b194472..874e3469f1f0 100644
--- a/i18npool/source/collator/collatorImpl.cxx
+++ b/i18npool/source/collator/collatorImpl.cxx
@@ -226,8 +226,7 @@ sal_Bool SAL_CALL CollatorImpl::supportsService(const OUString& rServiceName)
Sequence< OUString > SAL_CALL
CollatorImpl::getSupportedServiceNames() throw( RuntimeException, std::exception )
{
- Sequence< OUString > aRet(1);
- aRet[0] = "com.sun.star.i18n.Collator";
+ Sequence< OUString > aRet { "com.sun.star.i18n.Collator" };
return aRet;
}
diff --git a/i18npool/source/collator/collator_unicode.cxx b/i18npool/source/collator/collator_unicode.cxx
index 468321c83586..3a839496ae01 100644
--- a/i18npool/source/collator/collator_unicode.cxx
+++ b/i18npool/source/collator/collator_unicode.cxx
@@ -404,8 +404,7 @@ Collator_Unicode::supportsService(const OUString& rServiceName) throw( RuntimeEx
Sequence< OUString > SAL_CALL
Collator_Unicode::getSupportedServiceNames() throw( RuntimeException, std::exception )
{
- Sequence< OUString > aRet(1);
- aRet[0] = OUString::createFromAscii(implementationName);
+ Sequence< OUString > aRet { OUString::createFromAscii(implementationName) };
return aRet;
}
diff --git a/i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx b/i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx
index cb6a974ae3eb..04dee8eaa501 100644
--- a/i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx
+++ b/i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx
@@ -1060,8 +1060,7 @@ sal_Bool DefaultNumberingProvider::supportsService(const OUString& rServiceName)
Sequence< OUString > DefaultNumberingProvider::getSupportedServiceNames()
throw( RuntimeException, std::exception )
{
- Sequence< OUString > aRet(1);
- aRet[0] = "com.sun.star.text.DefaultNumberingProvider";
+ Sequence< OUString > aRet { "com.sun.star.text.DefaultNumberingProvider" };
return aRet;
}
diff --git a/i18npool/source/indexentry/indexentrysupplier.cxx b/i18npool/source/indexentry/indexentrysupplier.cxx
index 3f6855ceb4ae..f2d1ec4cae94 100644
--- a/i18npool/source/indexentry/indexentrysupplier.cxx
+++ b/i18npool/source/indexentry/indexentrysupplier.cxx
@@ -190,8 +190,7 @@ IndexEntrySupplier::supportsService(const OUString& rServiceName) throw( Runtime
Sequence< OUString > SAL_CALL
IndexEntrySupplier::getSupportedServiceNames() throw( RuntimeException, std::exception )
{
- Sequence< OUString > aRet(1);
- aRet[0] = implementationName;
+ Sequence< OUString > aRet { implementationName };
return aRet;
}
diff --git a/i18npool/source/inputchecker/inputsequencechecker.cxx b/i18npool/source/inputchecker/inputsequencechecker.cxx
index 56599dcb8f9b..148e256d042c 100644
--- a/i18npool/source/inputchecker/inputsequencechecker.cxx
+++ b/i18npool/source/inputchecker/inputsequencechecker.cxx
@@ -148,8 +148,7 @@ InputSequenceCheckerImpl::supportsService(const OUString& rServiceName) throw( R
Sequence< OUString > SAL_CALL
InputSequenceCheckerImpl::getSupportedServiceNames() throw( RuntimeException, std::exception )
{
- Sequence< OUString > aRet(1);
- aRet[0] = OUString::createFromAscii(serviceName);
+ Sequence< OUString > aRet { OUString::createFromAscii(serviceName) };
return aRet;
}
diff --git a/i18npool/source/localedata/localedata.cxx b/i18npool/source/localedata/localedata.cxx
index 9f0931b97337..d685dd5aa3b8 100644
--- a/i18npool/source/localedata/localedata.cxx
+++ b/i18npool/source/localedata/localedata.cxx
@@ -1609,8 +1609,7 @@ sal_Bool SAL_CALL LocaleDataImpl::supportsService(const OUString& rServiceName)
Sequence< OUString > SAL_CALL
LocaleDataImpl::getSupportedServiceNames() throw( RuntimeException, std::exception )
{
- Sequence< OUString > aRet(1);
- aRet[0] = "com.sun.star.i18n.LocaleData";
+ Sequence< OUString > aRet { "com.sun.star.i18n.LocaleData" };
return aRet;
}
diff --git a/i18npool/source/numberformatcode/numberformatcode.cxx b/i18npool/source/numberformatcode/numberformatcode.cxx
index 544ea67fb592..76beeadabdfe 100644
--- a/i18npool/source/numberformatcode/numberformatcode.cxx
+++ b/i18npool/source/numberformatcode/numberformatcode.cxx
@@ -275,8 +275,7 @@ sal_Bool SAL_CALL NumberFormatCodeMapper::supportsService(const OUString& rServi
css::uno::Sequence< OUString > SAL_CALL
NumberFormatCodeMapper::getSupportedServiceNames() throw( css::uno::RuntimeException, std::exception )
{
- css::uno::Sequence< OUString > aRet(1);
- aRet[0] = "com.sun.star.i18n.NumberFormatMapper";
+ css::uno::Sequence< OUString > aRet { "com.sun.star.i18n.NumberFormatMapper" };
return aRet;
}
diff --git a/i18npool/source/ordinalsuffix/ordinalsuffix.cxx b/i18npool/source/ordinalsuffix/ordinalsuffix.cxx
index 1eb5a8052835..dbdb1a1542ca 100644
--- a/i18npool/source/ordinalsuffix/ordinalsuffix.cxx
+++ b/i18npool/source/ordinalsuffix/ordinalsuffix.cxx
@@ -148,8 +148,7 @@ sal_Bool SAL_CALL OrdinalSuffixService::supportsService( const OUString& rServic
Sequence< OUString > SAL_CALL OrdinalSuffixService::getSupportedServiceNames() throw( RuntimeException, std::exception )
{
- Sequence< OUString > aRet(1);
- aRet[0] = cOrdinalSuffix;
+ Sequence< OUString > aRet { cOrdinalSuffix };
return aRet;
}
diff --git a/i18npool/source/search/textsearch.cxx b/i18npool/source/search/textsearch.cxx
index b0fb546fa7d0..e4804376cc9f 100644
--- a/i18npool/source/search/textsearch.cxx
+++ b/i18npool/source/search/textsearch.cxx
@@ -1092,8 +1092,7 @@ sal_Bool SAL_CALL TextSearch::supportsService(const OUString& rServiceName)
Sequence< OUString > SAL_CALL
TextSearch::getSupportedServiceNames() throw( RuntimeException, std::exception )
{
- Sequence< OUString > aRet(1);
- aRet[0] = getServiceName_Static();
+ Sequence< OUString > aRet { getServiceName_Static() };
return aRet;
}
@@ -1125,8 +1124,7 @@ i18nsearch_component_getFactory( const sal_Char* sImplementationName,
if ( 0 == rtl_str_compare( sImplementationName, cSearchImpl) )
{
- css::uno::Sequence< OUString > aServiceNames(1);
- aServiceNames[0] = getServiceName_Static();
+ css::uno::Sequence< OUString > aServiceNames { getServiceName_Static() };
xFactory = ::cppu::createSingleFactory(
pServiceManager, getImplementationName_Static(),
&TextSearch_CreateInstance, aServiceNames );
diff --git a/i18npool/source/textconversion/textconversion.cxx b/i18npool/source/textconversion/textconversion.cxx
index 1a771a551791..a72cdcbfac1e 100644
--- a/i18npool/source/textconversion/textconversion.cxx
+++ b/i18npool/source/textconversion/textconversion.cxx
@@ -85,8 +85,7 @@ TextConversionService::supportsService(const OUString& rServiceName) throw( Runt
Sequence< OUString > SAL_CALL
TextConversionService::getSupportedServiceNames() throw( RuntimeException, std::exception )
{
- Sequence< OUString > aRet(1);
- aRet[0] = OUString::createFromAscii(implementationName);
+ Sequence< OUString > aRet { OUString::createFromAscii(implementationName) };
return aRet;
}
diff --git a/i18npool/source/textconversion/textconversionImpl.cxx b/i18npool/source/textconversion/textconversionImpl.cxx
index 34e5e1ecb0ac..96d77604f413 100644
--- a/i18npool/source/textconversion/textconversionImpl.cxx
+++ b/i18npool/source/textconversion/textconversionImpl.cxx
@@ -126,8 +126,7 @@ TextConversionImpl::supportsService(const OUString& rServiceName)
Sequence< OUString > SAL_CALL
TextConversionImpl::getSupportedServiceNames() throw( RuntimeException, std::exception )
{
- Sequence< OUString > aRet(1);
- aRet[0] = "com.sun.star.i18n.TextConversion";
+ Sequence< OUString > aRet { "com.sun.star.i18n.TextConversion" };
return aRet;
}
diff --git a/i18npool/source/transliteration/transliterationImpl.cxx b/i18npool/source/transliteration/transliterationImpl.cxx
index 72b16e202538..40be08e8fede 100644
--- a/i18npool/source/transliteration/transliterationImpl.cxx
+++ b/i18npool/source/transliteration/transliterationImpl.cxx
@@ -659,8 +659,7 @@ TransliterationImpl::supportsService(const OUString& rServiceName) throw( Runtim
Sequence< OUString > SAL_CALL
TransliterationImpl::getSupportedServiceNames() throw( RuntimeException, std::exception )
{
- Sequence< OUString > aRet(1);
- aRet[0] = "com.sun.star.i18n.Transliteration";
+ Sequence< OUString > aRet { "com.sun.star.i18n.Transliteration" };
return aRet;
}
diff --git a/i18npool/source/transliteration/transliteration_commonclass.cxx b/i18npool/source/transliteration/transliteration_commonclass.cxx
index 1bdddccf838b..e3895d48fa66 100644
--- a/i18npool/source/transliteration/transliteration_commonclass.cxx
+++ b/i18npool/source/transliteration/transliteration_commonclass.cxx
@@ -138,8 +138,7 @@ sal_Bool SAL_CALL transliteration_commonclass::supportsService(const OUString& r
Sequence< OUString > SAL_CALL transliteration_commonclass::getSupportedServiceNames() throw( RuntimeException, std::exception )
{
- Sequence< OUString > aRet(1);
- aRet[0] = "com.sun.star.i18n.Transliteration.l10n";
+ Sequence< OUString > aRet { "com.sun.star.i18n.Transliteration.l10n" };
return aRet;
}
diff --git a/io/source/TextInputStream/TextInputStream.cxx b/io/source/TextInputStream/TextInputStream.cxx
index de67189f844a..d0cbf9fbca88 100644
--- a/io/source/TextInputStream/TextInputStream.cxx
+++ b/io/source/TextInputStream/TextInputStream.cxx
@@ -443,8 +443,7 @@ OUString TextInputStream_getImplementationName()
Sequence< OUString > TextInputStream_getSupportedServiceNames()
{
- Sequence< OUString > seqNames(1);
- seqNames.getArray()[0] = SERVICE_NAME;
+ Sequence< OUString > seqNames { SERVICE_NAME };
return seqNames;
}
diff --git a/io/source/acceptor/acceptor.cxx b/io/source/acceptor/acceptor.cxx
index 12f0a10aca3e..12fde58be079 100644
--- a/io/source/acceptor/acceptor.cxx
+++ b/io/source/acceptor/acceptor.cxx
@@ -278,8 +278,7 @@ namespace io_acceptor
Sequence< OUString > acceptor_getSupportedServiceNames()
{
- Sequence< OUString > seqNames(1);
- seqNames.getArray()[0] = SERVICE_NAME;
+ Sequence< OUString > seqNames { SERVICE_NAME };
return seqNames;
}
diff --git a/io/source/connector/connector.cxx b/io/source/connector/connector.cxx
index 25fa3bdc373b..025f1a00db71 100644
--- a/io/source/connector/connector.cxx
+++ b/io/source/connector/connector.cxx
@@ -177,8 +177,7 @@ namespace stoc_connector
Sequence< OUString > connector_getSupportedServiceNames()
{
- Sequence< OUString > seqNames(1);
- seqNames.getArray()[0] = SERVICE_NAME;
+ Sequence< OUString > seqNames { SERVICE_NAME };
return seqNames;
}
diff --git a/odk/examples/DevelopersGuide/Components/CppComponent/service1_impl.cxx b/odk/examples/DevelopersGuide/Components/CppComponent/service1_impl.cxx
index b9cf6f17b49b..5278d586bff1 100644
--- a/odk/examples/DevelopersGuide/Components/CppComponent/service1_impl.cxx
+++ b/odk/examples/DevelopersGuide/Components/CppComponent/service1_impl.cxx
@@ -52,8 +52,7 @@ namespace my_sc_impl
Sequence< OUString > SAL_CALL getSupportedServiceNames_MyService1Impl()
{
- Sequence< OUString > names(1);
- names[0] = "my_module.MyService1";
+ Sequence< OUString > names { "my_module.MyService1" };
return names;
}
diff --git a/odk/examples/cpp/custompanel/ctp_factory.cxx b/odk/examples/cpp/custompanel/ctp_factory.cxx
index f6723f52afcf..0999666406ba 100644
--- a/odk/examples/cpp/custompanel/ctp_factory.cxx
+++ b/odk/examples/cpp/custompanel/ctp_factory.cxx
@@ -118,8 +118,7 @@ namespace sd { namespace colortoolpanel
Sequence< OUString > SAL_CALL ToolPanelFactory::getSupportedServiceNames_static() throw (RuntimeException)
{
- Sequence< OUString > aServiceNames(1);
- aServiceNames[0] = "org.openoffice.example.colorpanel.ToolPanelFactory";
+ Sequence< OUString > aServiceNames { "org.openoffice.example.colorpanel.ToolPanelFactory" };
return aServiceNames;
}
diff --git a/odk/examples/cpp/remoteclient/remoteclient.cxx b/odk/examples/cpp/remoteclient/remoteclient.cxx
index 373efaee8a24..1c9d043e4a7f 100644
--- a/odk/examples/cpp/remoteclient/remoteclient.cxx
+++ b/odk/examples/cpp/remoteclient/remoteclient.cxx
@@ -209,8 +209,7 @@ Sequence< OUString > getSupportedServiceNames()
MutexGuard guard( Mutex::getGlobalMutex() );
if( !pNames )
{
- static Sequence< OUString > seqNames(1);
- seqNames[0] = "com.sun.star.bridge.example.RemoteClientSample";
+ static Sequence< OUString > seqNames { "com.sun.star.bridge.example.RemoteClientSample" };
pNames = &seqNames;
}
}
diff --git a/oox/source/shape/ShapeContextHandler.cxx b/oox/source/shape/ShapeContextHandler.cxx
index 35f64b9d34d1..0a707d8883f9 100644
--- a/oox/source/shape/ShapeContextHandler.cxx
+++ b/oox/source/shape/ShapeContextHandler.cxx
@@ -45,8 +45,7 @@ OUString SAL_CALL ShapeContextHandler_getImplementationName()
uno::Sequence< OUString > SAL_CALL
ShapeContextHandler_getSupportedServiceNames()
{
- uno::Sequence< OUString > s(1);
- s[0] = "com.sun.star.xml.sax.FastShapeContextHandler";
+ uno::Sequence< OUString > s { "com.sun.star.xml.sax.FastShapeContextHandler" };
return s;
}
diff --git a/package/source/zippackage/ZipPackageFolder.cxx b/package/source/zippackage/ZipPackageFolder.cxx
index 2734ded1fd8b..992f82bfe2f4 100644
--- a/package/source/zippackage/ZipPackageFolder.cxx
+++ b/package/source/zippackage/ZipPackageFolder.cxx
@@ -463,8 +463,7 @@ OUString ZipPackageFolder::getImplementationName()
uno::Sequence< OUString > ZipPackageFolder::getSupportedServiceNames()
throw (uno::RuntimeException, std::exception)
{
- uno::Sequence< OUString > aNames(1);
- aNames[0] = "com.sun.star.packages.PackageFolder";
+ uno::Sequence< OUString > aNames { "com.sun.star.packages.PackageFolder" };
return aNames;
}
diff --git a/package/source/zippackage/ZipPackageFolderEnumeration.cxx b/package/source/zippackage/ZipPackageFolderEnumeration.cxx
index 8189e553cb67..a759793dbaa2 100644
--- a/package/source/zippackage/ZipPackageFolderEnumeration.cxx
+++ b/package/source/zippackage/ZipPackageFolderEnumeration.cxx
@@ -64,8 +64,7 @@ OUString ZipPackageFolderEnumeration::getImplementationName()
uno::Sequence< OUString > ZipPackageFolderEnumeration::getSupportedServiceNames()
throw (uno::RuntimeException, std::exception)
{
- uno::Sequence< OUString > aNames(1);
- aNames[0] = "com.sun.star.packages.PackageFolderEnumeration";
+ uno::Sequence< OUString > aNames { "com.sun.star.packages.PackageFolderEnumeration" };
return aNames;
}
diff --git a/remotebridges/source/unourl_resolver/unourl_resolver.cxx b/remotebridges/source/unourl_resolver/unourl_resolver.cxx
index 21a96de4204e..76cadb7696b2 100644
--- a/remotebridges/source/unourl_resolver/unourl_resolver.cxx
+++ b/remotebridges/source/unourl_resolver/unourl_resolver.cxx
@@ -49,8 +49,7 @@ namespace unourl_resolver
Sequence< OUString > resolver_getSupportedServiceNames()
{
- Sequence< OUString > seqNames(1);
- seqNames.getArray()[0] = "com.sun.star.bridge.UnoUrlResolver";
+ Sequence< OUString > seqNames { "com.sun.star.bridge.UnoUrlResolver" };
return seqNames;
}
diff --git a/reportdesign/source/core/api/FixedLine.cxx b/reportdesign/source/core/api/FixedLine.cxx
index 42df349e9998..8c2b7fc306ca 100644
--- a/reportdesign/source/core/api/FixedLine.cxx
+++ b/reportdesign/source/core/api/FixedLine.cxx
@@ -218,8 +218,7 @@ OUString SAL_CALL OFixedLine::getImplementationName( ) throw(uno::RuntimeExcept
uno::Sequence< OUString > OFixedLine::getSupportedServiceNames_Static( ) throw(uno::RuntimeException)
{
- uno::Sequence< OUString > aServices(1);
- aServices.getArray()[0] = SERVICE_FIXEDLINE;
+ uno::Sequence< OUString > aServices { SERVICE_FIXEDLINE };
return aServices;
}
diff --git a/reportdesign/source/core/api/FixedText.cxx b/reportdesign/source/core/api/FixedText.cxx
index a64edfb08b2a..bbd1da439322 100644
--- a/reportdesign/source/core/api/FixedText.cxx
+++ b/reportdesign/source/core/api/FixedText.cxx
@@ -106,8 +106,7 @@ OUString SAL_CALL OFixedText::getImplementationName( ) throw(uno::RuntimeExcept
uno::Sequence< OUString > OFixedText::getSupportedServiceNames_Static( ) throw(uno::RuntimeException)
{
- uno::Sequence< OUString > aServices(1);
- aServices.getArray()[0] = SERVICE_FIXEDTEXT;
+ uno::Sequence< OUString > aServices { SERVICE_FIXEDTEXT };
return aServices;
}
diff --git a/reportdesign/source/core/api/FormatCondition.cxx b/reportdesign/source/core/api/FormatCondition.cxx
index 2166a3ff86ba..92835ea2d82a 100644
--- a/reportdesign/source/core/api/FormatCondition.cxx
+++ b/reportdesign/source/core/api/FormatCondition.cxx
@@ -72,8 +72,7 @@ OUString SAL_CALL OFormatCondition::getImplementationName( ) throw(uno::Runtime
uno::Sequence< OUString > OFormatCondition::getSupportedServiceNames_Static( ) throw(uno::RuntimeException)
{
- uno::Sequence< OUString > aServices(1);
- aServices.getArray()[0] = SERVICE_FORMATCONDITION;
+ uno::Sequence< OUString > aServices { SERVICE_FORMATCONDITION };
return aServices;
}
diff --git a/reportdesign/source/core/api/Function.cxx b/reportdesign/source/core/api/Function.cxx
index 6b7ca7282310..43bc4b7a1aae 100644
--- a/reportdesign/source/core/api/Function.cxx
+++ b/reportdesign/source/core/api/Function.cxx
@@ -72,8 +72,7 @@ OUString SAL_CALL OFunction::getImplementationName( ) throw(uno::RuntimeExcepti
uno::Sequence< OUString > OFunction::getSupportedServiceNames_Static( ) throw(uno::RuntimeException)
{
- uno::Sequence< OUString > aServices(1);
- aServices.getArray()[0] = SERVICE_FUNCTION;
+ uno::Sequence< OUString > aServices { SERVICE_FUNCTION };
return aServices;
}
diff --git a/reportdesign/source/core/api/ImageControl.cxx b/reportdesign/source/core/api/ImageControl.cxx
index 36355d0d53ae..92bd06598397 100644
--- a/reportdesign/source/core/api/ImageControl.cxx
+++ b/reportdesign/source/core/api/ImageControl.cxx
@@ -180,8 +180,7 @@ OUString SAL_CALL OImageControl::getImplementationName( ) throw(uno::RuntimeExc
uno::Sequence< OUString > OImageControl::getSupportedServiceNames_Static( ) throw(uno::RuntimeException)
{
- uno::Sequence< OUString > aServices(1);
- aServices.getArray()[0] = SERVICE_IMAGECONTROL;
+ uno::Sequence< OUString > aServices { SERVICE_IMAGECONTROL };
return aServices;
}
diff --git a/reportdesign/source/core/api/ReportDefinition.cxx b/reportdesign/source/core/api/ReportDefinition.cxx
index 4cf3f71ee96b..3355055e776c 100644
--- a/reportdesign/source/core/api/ReportDefinition.cxx
+++ b/reportdesign/source/core/api/ReportDefinition.cxx
@@ -711,8 +711,7 @@ OUString SAL_CALL OReportDefinition::getImplementationName( ) throw(uno::Runtim
uno::Sequence< OUString > OReportDefinition::getSupportedServiceNames_Static( ) throw(uno::RuntimeException)
{
- uno::Sequence< OUString > aServices(1);
- aServices.getArray()[0] = SERVICE_REPORTDEFINITION;
+ uno::Sequence< OUString > aServices { SERVICE_REPORTDEFINITION };
return aServices;
}
diff --git a/reportdesign/source/core/api/ReportEngineJFree.cxx b/reportdesign/source/core/api/ReportEngineJFree.cxx
index db24846fb052..d2be19e0c9df 100644
--- a/reportdesign/source/core/api/ReportEngineJFree.cxx
+++ b/reportdesign/source/core/api/ReportEngineJFree.cxx
@@ -97,8 +97,7 @@ OUString SAL_CALL OReportEngineJFree::getImplementationName( ) throw(uno::Runti
uno::Sequence< OUString > OReportEngineJFree::getSupportedServiceNames_Static( ) throw(uno::RuntimeException)
{
- uno::Sequence< OUString > aServices(1);
- aServices[0] = "com.sun.star.report.ReportEngine";
+ uno::Sequence< OUString > aServices { "com.sun.star.report.ReportEngine" };
return aServices;
}
diff --git a/reportdesign/source/core/api/Shape.cxx b/reportdesign/source/core/api/Shape.cxx
index ec562862d27d..0ff1778939fe 100644
--- a/reportdesign/source/core/api/Shape.cxx
+++ b/reportdesign/source/core/api/Shape.cxx
@@ -133,8 +133,7 @@ OUString SAL_CALL OShape::getImplementationName( ) throw(uno::RuntimeException,
uno::Sequence< OUString > OShape::getSupportedServiceNames_Static( ) throw(uno::RuntimeException)
{
- uno::Sequence< OUString > aServices(1);
- aServices.getArray()[0] = SERVICE_SHAPE;
+ uno::Sequence< OUString > aServices { SERVICE_SHAPE };
return aServices;
}
diff --git a/reportdesign/source/filter/xml/xmlExport.cxx b/reportdesign/source/filter/xml/xmlExport.cxx
index 7da95327f7dd..4dd2bf449527 100644
--- a/reportdesign/source/filter/xml/xmlExport.cxx
+++ b/reportdesign/source/filter/xml/xmlExport.cxx
@@ -82,8 +82,7 @@ namespace rptxml
Sequence< OUString > ORptExportHelper::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;
}
@@ -99,8 +98,7 @@ namespace rptxml
Sequence< OUString > ORptContentExportHelper::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;
}
@@ -118,8 +116,7 @@ namespace rptxml
Sequence< OUString > ORptStylesExportHelper::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;
}
@@ -136,8 +133,7 @@ namespace rptxml
Sequence< OUString > ORptMetaExportHelper::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;
}
@@ -154,8 +150,7 @@ namespace rptxml
Sequence< OUString > 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;
}
@@ -316,8 +311,7 @@ OUString ORptExport::getImplementationName_Static( ) throw(uno::RuntimeExceptio
uno::Sequence< OUString > ORptExport::getSupportedServiceNames_Static( ) throw(uno::RuntimeException)
{
- uno::Sequence< OUString > aServices(1);
- aServices.getArray()[0] = "com.sun.star.document.ExportFilter";
+ uno::Sequence< OUString > aServices { "com.sun.star.document.ExportFilter" };
return aServices;
}
diff --git a/reportdesign/source/filter/xml/xmlExportDocumentHandler.cxx b/reportdesign/source/filter/xml/xmlExportDocumentHandler.cxx
index e8be136df26d..638a5bc20799 100644
--- a/reportdesign/source/filter/xml/xmlExportDocumentHandler.cxx
+++ b/reportdesign/source/filter/xml/xmlExportDocumentHandler.cxx
@@ -118,8 +118,7 @@ OUString ExportDocumentHandler::getImplementationName_Static( ) throw(uno::Runt
uno::Sequence< OUString > ExportDocumentHandler::getSupportedServiceNames_static( ) throw(uno::RuntimeException)
{
- uno::Sequence< OUString > aSupported(1);
- aSupported[0] = "com.sun.star.report.ExportDocumentHandler";
+ uno::Sequence< OUString > aSupported { "com.sun.star.report.ExportDocumentHandler" };
return aSupported;
}
diff --git a/reportdesign/source/filter/xml/xmlImportDocumentHandler.cxx b/reportdesign/source/filter/xml/xmlImportDocumentHandler.cxx
index b25b34c3288e..b173f7056067 100644
--- a/reportdesign/source/filter/xml/xmlImportDocumentHandler.cxx
+++ b/reportdesign/source/filter/xml/xmlImportDocumentHandler.cxx
@@ -89,8 +89,7 @@ OUString ImportDocumentHandler::getImplementationName_Static( ) throw(uno::Runt
uno::Sequence< OUString > ImportDocumentHandler::getSupportedServiceNames_static( ) throw(uno::RuntimeException)
{
- uno::Sequence< OUString > aSupported(1);
- aSupported[0] = "com.sun.star.report.ImportDocumentHandler";
+ uno::Sequence< OUString > aSupported { "com.sun.star.report.ImportDocumentHandler" };
return aSupported;
}
diff --git a/reportdesign/source/filter/xml/xmlfilter.cxx b/reportdesign/source/filter/xml/xmlfilter.cxx
index 50eb48c1b077..27cd7b8ba921 100644
--- a/reportdesign/source/filter/xml/xmlfilter.cxx
+++ b/reportdesign/source/filter/xml/xmlfilter.cxx
@@ -292,8 +292,7 @@ OUString ORptImportHelper::getImplementationName_Static( ) throw (RuntimeExcept
Sequence< OUString > ORptImportHelper::getSupportedServiceNames_Static( ) throw(RuntimeException)
{
- Sequence< OUString > aSupported(1);
- aSupported[0] = SERVICE_IMPORTFILTER;
+ Sequence< OUString > aSupported { SERVICE_IMPORTFILTER };
return aSupported;
}
@@ -310,8 +309,7 @@ OUString ORptContentImportHelper::getImplementationName_Static( ) throw (Runtim
Sequence< OUString > ORptContentImportHelper::getSupportedServiceNames_Static( ) throw(RuntimeException)
{
- Sequence< OUString > aSupported(1);
- aSupported[0] = SERVICE_IMPORTFILTER;
+ Sequence< OUString > aSupported { SERVICE_IMPORTFILTER };
return aSupported;
}
@@ -330,8 +328,7 @@ OUString ORptStylesImportHelper::getImplementationName_Static( ) throw (Runtime
Sequence< OUString > ORptStylesImportHelper::getSupportedServiceNames_Static( ) throw(RuntimeException)
{
- Sequence< OUString > aSupported(1);
- aSupported[0] = SERVICE_IMPORTFILTER;
+ Sequence< OUString > aSupported { SERVICE_IMPORTFILTER };
return aSupported;
}
@@ -349,8 +346,7 @@ OUString ORptMetaImportHelper::getImplementationName_Static( ) throw (RuntimeEx
Sequence< OUString > ORptMetaImportHelper::getSupportedServiceNames_Static( ) throw(RuntimeException)
{
- Sequence< OUString > aSupported(1);
- aSupported[0] = SERVICE_IMPORTFILTER;
+ Sequence< OUString > aSupported { SERVICE_IMPORTFILTER };
return aSupported;
}
@@ -396,8 +392,7 @@ OUString ORptFilter::getImplementationName_Static( ) throw(uno::RuntimeExceptio
uno::Sequence< OUString > ORptFilter::getSupportedServiceNames_Static( ) throw(uno::RuntimeException)
{
- uno::Sequence< OUString > aServices(1);
- aServices.getArray()[0] = SERVICE_IMPORTFILTER;
+ uno::Sequence< OUString > aServices { SERVICE_IMPORTFILTER };
return aServices;
}
diff --git a/reportdesign/source/ui/inspection/DataProviderHandler.cxx b/reportdesign/source/ui/inspection/DataProviderHandler.cxx
index 3659ce67c1f6..1d0a3071ed43 100644
--- a/reportdesign/source/ui/inspection/DataProviderHandler.cxx
+++ b/reportdesign/source/ui/inspection/DataProviderHandler.cxx
@@ -94,8 +94,7 @@ OUString DataProviderHandler::getImplementationName_Static( ) throw(uno::Runtim
uno::Sequence< OUString > DataProviderHandler::getSupportedServiceNames_static( ) throw(uno::RuntimeException)
{
- uno::Sequence< OUString > aSupported(1);
- aSupported[0] = "com.sun.star.report.inspection.DataProviderHandler";
+ uno::Sequence< OUString > aSupported { "com.sun.star.report.inspection.DataProviderHandler" };
return aSupported;
}
@@ -387,8 +386,7 @@ uno::Sequence< beans::Property > SAL_CALL DataProviderHandler::getSupportedPrope
uno::Sequence< OUString > SAL_CALL DataProviderHandler::getSupersededProperties() throw (uno::RuntimeException, std::exception)
{
- uno::Sequence< OUString > aRet(1);
- aRet[0] = PROPERTY_TITLE; // have a look at OPropertyInfoService::getExcludeProperties
+ uno::Sequence< OUString > aRet { PROPERTY_TITLE }; // have a look at OPropertyInfoService::getExcludeProperties
return aRet;
}
@@ -396,8 +394,7 @@ uno::Sequence< OUString > SAL_CALL DataProviderHandler::getActuatingProperties()
{
::osl::MutexGuard aGuard( m_aMutex );
- uno::Sequence< OUString > aSeq(1);
- aSeq[0] = PROPERTY_TITLE;
+ uno::Sequence< OUString > aSeq { PROPERTY_TITLE };
return ::comphelper::concatSequences(m_xFormComponentHandler->getActuatingProperties(),aSeq);
}
diff --git a/reportdesign/source/ui/inspection/DefaultInspection.cxx b/reportdesign/source/ui/inspection/DefaultInspection.cxx
index f838b3ee7453..1d8b699d2b91 100644
--- a/reportdesign/source/ui/inspection/DefaultInspection.cxx
+++ b/reportdesign/source/ui/inspection/DefaultInspection.cxx
@@ -87,8 +87,7 @@ namespace rptui
Sequence< OUString > DefaultComponentInspectorModel::getSupportedServiceNames_static( ) throw(RuntimeException)
{
- Sequence< OUString > aSupported(1);
- aSupported[0] = "com.sun.star.report.inspection.DefaultComponentInspectorModel";
+ Sequence< OUString > aSupported { "com.sun.star.report.inspection.DefaultComponentInspectorModel" };
return aSupported;
}
diff --git a/reportdesign/source/ui/inspection/GeometryHandler.cxx b/reportdesign/source/ui/inspection/GeometryHandler.cxx
index 08bda842c518..2c6dce15edca 100644
--- a/reportdesign/source/ui/inspection/GeometryHandler.cxx
+++ b/reportdesign/source/ui/inspection/GeometryHandler.cxx
@@ -271,8 +271,7 @@ OUString GeometryHandler::getImplementationName_Static( ) throw(uno::RuntimeExc
uno::Sequence< OUString > GeometryHandler::getSupportedServiceNames_static( ) throw(uno::RuntimeException)
{
- uno::Sequence< OUString > aSupported(1);
- aSupported[0] = "com.sun.star.report.inspection.GeometryHandler";
+ uno::Sequence< OUString > aSupported { "com.sun.star.report.inspection.GeometryHandler" };
return aSupported;
}
diff --git a/reportdesign/source/ui/inspection/ReportComponentHandler.cxx b/reportdesign/source/ui/inspection/ReportComponentHandler.cxx
index c7f278f5cc37..6c8c475f46f3 100644
--- a/reportdesign/source/ui/inspection/ReportComponentHandler.cxx
+++ b/reportdesign/source/ui/inspection/ReportComponentHandler.cxx
@@ -75,8 +75,7 @@ OUString ReportComponentHandler::getImplementationName_Static( ) throw(uno::Run
uno::Sequence< OUString > ReportComponentHandler::getSupportedServiceNames_static( ) throw(uno::RuntimeException)
{
- uno::Sequence< OUString > aSupported(1);
- aSupported[0] = "com.sun.star.report.inspection.ReportComponentHandler";
+ uno::Sequence< OUString > aSupported { "com.sun.star.report.inspection.ReportComponentHandler" };
return aSupported;
}
diff --git a/scripting/source/dlgprov/dlgprov.cxx b/scripting/source/dlgprov/dlgprov.cxx
index 2d09fe625f9d..33ccd6d04039 100644
--- a/scripting/source/dlgprov/dlgprov.cxx
+++ b/scripting/source/dlgprov/dlgprov.cxx
@@ -73,8 +73,7 @@ namespace comp_DialogModelProvider
uno::Sequence< OUString > SAL_CALL _getSupportedServiceNames()
{
- uno::Sequence< OUString > s(1);
- s[0] = "com.sun.star.awt.UnoControlDialogModelProvider";
+ uno::Sequence< OUString > s { "com.sun.star.awt.UnoControlDialogModelProvider" };
return s;
}
diff --git a/scripting/source/stringresource/stringresource.cxx b/scripting/source/stringresource/stringresource.cxx
index c6b7cae2206c..07b7aaf102df 100644
--- a/scripting/source/stringresource/stringresource.cxx
+++ b/scripting/source/stringresource/stringresource.cxx
@@ -80,8 +80,7 @@ namespace stringresource
// component operations
static Sequence< OUString > getSupportedServiceNames_StringResourceImpl()
{
- Sequence< OUString > names(1);
- names[0] = "com.sun.star.resource.StringResource";
+ Sequence< OUString > names { "com.sun.star.resource.StringResource" };
return names;
}
@@ -2262,8 +2261,7 @@ bool StringResourcePersistenceImpl::implWritePropertiesFile( LocaleItem* pLocale
// component operations
static Sequence< OUString > getSupportedServiceNames_StringResourceWithStorageImpl()
{
- Sequence< OUString > names(1);
- names[0] = "com.sun.star.resource.StringResourceWithStorage";
+ Sequence< OUString > names { "com.sun.star.resource.StringResourceWithStorage" };
return names;
}
@@ -2587,8 +2585,7 @@ bool StringResourceWithStorageImpl::implLoadLocale( LocaleItem* pLocaleItem )
// component operations
static Sequence< OUString > getSupportedServiceNames_StringResourceWithLocationImpl()
{
- Sequence< OUString > names(1);
- names[0] = "com.sun.star.resource.StringResourceWithLocation";
+ Sequence< OUString > names { "com.sun.star.resource.StringResourceWithLocation" };
return names;
}
diff --git a/sd/source/filter/html/HtmlOptionsDialog.cxx b/sd/source/filter/html/HtmlOptionsDialog.cxx
index ca023d9c3ab0..5566b47b9bbc 100644
--- a/sd/source/filter/html/HtmlOptionsDialog.cxx
+++ b/sd/source/filter/html/HtmlOptionsDialog.cxx
@@ -141,8 +141,7 @@ sal_Bool SAL_CALL SdHtmlOptionsDialog::supportsService( const OUString& rService
Sequence< OUString > SAL_CALL SdHtmlOptionsDialog::getSupportedServiceNames()
throw ( RuntimeException, std::exception )
{
- Sequence< OUString > aRet(1);
- aRet[0] = "com.sun.star.ui.dialog.FilterOptionsDialog";
+ Sequence< OUString > aRet { "com.sun.star.ui.dialog.FilterOptionsDialog" };
return aRet;
}
diff --git a/sfx2/source/appl/appinit.cxx b/sfx2/source/appl/appinit.cxx
index 720c05c3943f..2ac45255c8cd 100644
--- a/sfx2/source/appl/appinit.cxx
+++ b/sfx2/source/appl/appinit.cxx
@@ -146,8 +146,7 @@ Sequence< OUString > SAL_CALL SfxTerminateListener_Impl::getSupportedServiceName
// The desktop must know, which listener will terminate the SfxApplication in real !
// It must call this special listener as last one ... otherwise we shutdown the SfxApplication BEFORE other listener
// can react ...
- Sequence< OUString > lNames(1);
- lNames[0] = "com.sun.star.frame.TerminateListener";
+ Sequence< OUString > lNames { "com.sun.star.frame.TerminateListener" };
return lNames;
}
diff --git a/sfx2/source/appl/appserv.cxx b/sfx2/source/appl/appserv.cxx
index f5704b0f3fb6..e0cfeee40af8 100644
--- a/sfx2/source/appl/appserv.cxx
+++ b/sfx2/source/appl/appserv.cxx
@@ -164,8 +164,7 @@ namespace
using namespace org::freedesktop::PackageKit;
using namespace svtools;
Reference< XSyncDbusSessionHelper > xSyncDbusSessionHelper(SyncDbusSessionHelper::create(comphelper::getProcessComponentContext()));
- Sequence< OUString > vPackages(1);
- vPackages[0] = "libreoffice-base";
+ Sequence< OUString > vPackages { "libreoffice-base" };
OUString sInteraction;
xSyncDbusSessionHelper->InstallPackageNames(0, vPackages, sInteraction);
// Ill be back (hopefully)!
diff --git a/sfx2/source/appl/macroloader.cxx b/sfx2/source/appl/macroloader.cxx
index 6e035830dd2d..ba2de7477d84 100644
--- a/sfx2/source/appl/macroloader.cxx
+++ b/sfx2/source/appl/macroloader.cxx
@@ -73,8 +73,7 @@ sal_Bool SAL_CALL SfxMacroLoader::supportsService(OUString const & ServiceName)
css::uno::Sequence<OUString> SAL_CALL SfxMacroLoader::getSupportedServiceNames()
throw (css::uno::RuntimeException, std::exception)
{
- 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/sfx2/source/appl/shutdownicon.cxx b/sfx2/source/appl/shutdownicon.cxx
index 5cb144c5c2cf..13e11cbf25f2 100644
--- a/sfx2/source/appl/shutdownicon.cxx
+++ b/sfx2/source/appl/shutdownicon.cxx
@@ -115,8 +115,7 @@ sal_Bool SAL_CALL ShutdownIcon::supportsService(OUString const & ServiceName)
css::uno::Sequence<OUString> SAL_CALL ShutdownIcon::getSupportedServiceNames()
throw (css::uno::RuntimeException, std::exception)
{
- css::uno::Sequence< OUString > aSeq(1);
- aSeq[0] = "com.sun.star.office.Quickstart";
+ css::uno::Sequence< OUString > aSeq { "com.sun.star.office.Quickstart" };
return aSeq;
}
diff --git a/sfx2/source/doc/SfxDocumentMetaData.cxx b/sfx2/source/doc/SfxDocumentMetaData.cxx
index 13b413c9b50d..08bed4ee2c19 100644
--- a/sfx2/source/doc/SfxDocumentMetaData.cxx
+++ b/sfx2/source/doc/SfxDocumentMetaData.cxx
@@ -1383,8 +1383,7 @@ css::uno::Sequence< OUString > SAL_CALL
SfxDocumentMetaData::getSupportedServiceNames()
throw (css::uno::RuntimeException, std::exception)
{
- css::uno::Sequence< OUString > s(1);
- s[0] = "com.sun.star.document.DocumentProperties";
+ css::uno::Sequence< OUString > s { "com.sun.star.document.DocumentProperties" };
return s;
}
diff --git a/sfx2/source/doc/doctempl.cxx b/sfx2/source/doc/doctempl.cxx
index c792d25890fe..542a1d745a1b 100644
--- a/sfx2/source/doc/doctempl.cxx
+++ b/sfx2/source/doc/doctempl.cxx
@@ -1616,8 +1616,7 @@ void SfxDocTemplate_Impl::AddRegion( const OUString& rTitle,
void SfxDocTemplate_Impl::CreateFromHierarchy( Content &rTemplRoot )
{
uno::Reference< XResultSet > xResultSet;
- Sequence< OUString > aProps(1);
- aProps[0] = TITLE;
+ Sequence< OUString > aProps { TITLE };
try
{
diff --git a/sfx2/source/doc/doctemplates.cxx b/sfx2/source/doc/doctemplates.cxx
index 843b9d3602f8..7cb645af4e6c 100644
--- a/sfx2/source/doc/doctemplates.cxx
+++ b/sfx2/source/doc/doctemplates.cxx
@@ -2228,8 +2228,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.DocumentTemplates";
+ css::uno::Sequence< OUString > aSeq { "com.sun.star.frame.DocumentTemplates" };
return aSeq;
}
@@ -2641,8 +2640,7 @@ void SfxDocTplService_Impl::createFromContent( GroupList_Impl& rList,
aUINames = ReadUINamesForTemplateDir_Impl( aLayerObj.GetMainURL( INetURLObject::NO_DECODE ) );
uno::Reference< XResultSet > xResultSet;
- Sequence< OUString > aProps(1);
- aProps[0] = TITLE;
+ Sequence< OUString > aProps { TITLE };
try
{
diff --git a/sfx2/source/doc/iframe.cxx b/sfx2/source/doc/iframe.cxx
index 692d1ee5dd2a..c42b9782afeb 100644
--- a/sfx2/source/doc/iframe.cxx
+++ b/sfx2/source/doc/iframe.cxx
@@ -82,8 +82,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.SpecialEmbeddedObject";
+ css::uno::Sequence< OUString > aSeq { "com.sun.star.frame.SpecialEmbeddedObject" };
return aSeq;
}
diff --git a/sfx2/source/doc/plugin.cxx b/sfx2/source/doc/plugin.cxx
index 2a8bd68f4817..e94c495d2b89 100644
--- a/sfx2/source/doc/plugin.cxx
+++ b/sfx2/source/doc/plugin.cxx
@@ -128,8 +128,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.SpecialEmbeddedObject";
+ css::uno::Sequence< OUString > aSeq { "com.sun.star.frame.SpecialEmbeddedObject" };
return aSeq;
}
};
diff --git a/sfx2/source/notify/globalevents.cxx b/sfx2/source/notify/globalevents.cxx
index 6ca80e0a4e7a..e1f794c6dc5d 100644
--- a/sfx2/source/notify/globalevents.cxx
+++ b/sfx2/source/notify/globalevents.cxx
@@ -90,8 +90,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.GlobalEventBroadcaster";
+ css::uno::Sequence< OUString > aSeq { "com.sun.star.frame.GlobalEventBroadcaster" };
return aSeq;
}
diff --git a/shell/source/cmdmail/cmdmailsuppl.cxx b/shell/source/cmdmail/cmdmailsuppl.cxx
index be09ff776e38..32a744846332 100644
--- a/shell/source/cmdmail/cmdmailsuppl.cxx
+++ b/shell/source/cmdmail/cmdmailsuppl.cxx
@@ -64,8 +64,7 @@ namespace // private
{
Sequence< OUString > SAL_CALL Component_getSupportedServiceNames()
{
- Sequence< OUString > aRet(1);
- aRet[0] = "com.sun.star.system.SimpleCommandMail";
+ Sequence< OUString > aRet { "com.sun.star.system.SimpleCommandMail" };
return aRet;
}
diff --git a/shell/source/unix/exec/shellexec.cxx b/shell/source/unix/exec/shellexec.cxx
index 99ed3a7a2f45..46cd6d14c41e 100644
--- a/shell/source/unix/exec/shellexec.cxx
+++ b/shell/source/unix/exec/shellexec.cxx
@@ -59,8 +59,7 @@ namespace // private
{
Sequence< OUString > SAL_CALL ShellExec_getSupportedServiceNames()
{
- Sequence< OUString > aRet(1);
- aRet[0] = "com.sun.star.system.SystemShellExecute";
+ Sequence< OUString > aRet { "com.sun.star.system.SystemShellExecute" };
return aRet;
}
}
diff --git a/shell/source/win32/SysShExec.cxx b/shell/source/win32/SysShExec.cxx
index a0aef84e4d2d..441cfc50451b 100644
--- a/shell/source/win32/SysShExec.cxx
+++ b/shell/source/win32/SysShExec.cxx
@@ -67,8 +67,7 @@ namespace // private
{
Sequence< OUString > SAL_CALL SysShExec_getSupportedServiceNames()
{
- Sequence< OUString > aRet(1);
- aRet[0] = "com.sun.star.system.SystemShellExecute";
+ Sequence< OUString > aRet { "com.sun.star.system.SystemShellExecute" };
return aRet;
}
diff --git a/shell/source/win32/simplemail/smplmailsuppl.cxx b/shell/source/win32/simplemail/smplmailsuppl.cxx
index 495b4bf1ff89..6d6e33762a2b 100644
--- a/shell/source/win32/simplemail/smplmailsuppl.cxx
+++ b/shell/source/win32/simplemail/smplmailsuppl.cxx
@@ -38,8 +38,7 @@ namespace // private
{
Sequence< OUString > SAL_CALL Component_getSupportedServiceNames()
{
- Sequence< OUString > aRet(1);
- aRet[0] = "com.sun.star.system.SimpleSystemMail";
+ Sequence< OUString > aRet { "com.sun.star.system.SimpleSystemMail" };
return aRet;
}
diff --git a/sot/source/unoolestorage/xolesimplestorage.cxx b/sot/source/unoolestorage/xolesimplestorage.cxx
index 280d0a57f9c2..9bd8411ef850 100644
--- a/sot/source/unoolestorage/xolesimplestorage.cxx
+++ b/sot/source/unoolestorage/xolesimplestorage.cxx
@@ -76,8 +76,7 @@ OLESimpleStorage::~OLESimpleStorage()
uno::Sequence< OUString > SAL_CALL OLESimpleStorage::impl_staticGetSupportedServiceNames()
{
- uno::Sequence< OUString > aRet(1);
- aRet[0] = "com.sun.star.embed.OLESimpleStorage";
+ uno::Sequence< OUString > aRet { "com.sun.star.embed.OLESimpleStorage" };
return aRet;
}
diff --git a/stoc/source/corereflection/crefl.cxx b/stoc/source/corereflection/crefl.cxx
index fc077043f219..09461f4107c7 100644
--- a/stoc/source/corereflection/crefl.cxx
+++ b/stoc/source/corereflection/crefl.cxx
@@ -48,8 +48,7 @@ static const sal_Int32 CACHE_SIZE = 256;
static Sequence< OUString > core_getSupportedServiceNames()
{
- Sequence< OUString > seqNames(1);
- seqNames.getArray()[0] = "com.sun.star.reflection.CoreReflection";
+ Sequence< OUString > seqNames { "com.sun.star.reflection.CoreReflection" };
return seqNames;
}
diff --git a/stoc/source/defaultregistry/defaultregistry.cxx b/stoc/source/defaultregistry/defaultregistry.cxx
index a77906f323d3..c57b8c8e4eb8 100644
--- a/stoc/source/defaultregistry/defaultregistry.cxx
+++ b/stoc/source/defaultregistry/defaultregistry.cxx
@@ -1196,8 +1196,7 @@ sal_Bool SAL_CALL NestedRegistryImpl::supportsService( const OUString& ServiceNa
Sequence<OUString> SAL_CALL NestedRegistryImpl::getSupportedServiceNames( )
throw(RuntimeException, std::exception)
{
- Sequence< OUString > seqNames(1);
- seqNames[0] = "com.sun.star.registry.NestedRegistry";
+ Sequence< OUString > seqNames { "com.sun.star.registry.NestedRegistry" };
return seqNames;
}
diff --git a/stoc/source/implementationregistration/implreg.cxx b/stoc/source/implementationregistration/implreg.cxx
index 08bf4a8fafcb..886ead94c8b4 100644
--- a/stoc/source/implementationregistration/implreg.cxx
+++ b/stoc/source/implementationregistration/implreg.cxx
@@ -1301,8 +1301,7 @@ sal_Bool ImplementationRegistration::supportsService(const OUString& ServiceName
// XServiceInfo
Sequence< OUString > ImplementationRegistration::getSupportedServiceNames() throw(RuntimeException, std::exception)
{
- Sequence< OUString > seqNames(1);
- seqNames[0] = "com.sun.star.registry.ImplementationRegistration";
+ Sequence< OUString > seqNames { "com.sun.star.registry.ImplementationRegistration" };
return seqNames;
}
diff --git a/stoc/source/invocation/invocation.cxx b/stoc/source/invocation/invocation.cxx
index 74d3f1decad9..acb08095ffec 100644
--- a/stoc/source/invocation/invocation.cxx
+++ b/stoc/source/invocation/invocation.cxx
@@ -69,8 +69,7 @@ namespace stoc_inv
{
static Sequence< OUString > inv_getSupportedServiceNames()
{
- Sequence< OUString > seqNames(1);
- seqNames.getArray()[0] = SERVICENAME;
+ Sequence< OUString > seqNames { SERVICENAME };
return seqNames;
}
diff --git a/stoc/source/invocation_adapterfactory/iafactory.cxx b/stoc/source/invocation_adapterfactory/iafactory.cxx
index 8e39086c7874..081f10636477 100644
--- a/stoc/source/invocation_adapterfactory/iafactory.cxx
+++ b/stoc/source/invocation_adapterfactory/iafactory.cxx
@@ -61,8 +61,7 @@ namespace stoc_invadp
static Sequence< OUString > invadp_getSupportedServiceNames()
{
- Sequence< OUString > seqNames(1);
- seqNames.getArray()[0] = "com.sun.star.script.InvocationAdapterFactory";
+ Sequence< OUString > seqNames { "com.sun.star.script.InvocationAdapterFactory" };
return seqNames;
}
diff --git a/stoc/source/loader/dllcomponentloader.cxx b/stoc/source/loader/dllcomponentloader.cxx
index 2af460369720..0062ef1e0922 100644
--- a/stoc/source/loader/dllcomponentloader.cxx
+++ b/stoc/source/loader/dllcomponentloader.cxx
@@ -102,8 +102,7 @@ sal_Bool SAL_CALL DllComponentLoader::supportsService( const OUString& ServiceNa
Sequence<OUString> SAL_CALL DllComponentLoader::getSupportedServiceNames( )
throw(css::uno::RuntimeException, std::exception)
{
- Sequence< OUString > seqNames(1);
- seqNames[0] = "com.sun.star.loader.SharedLibrary";
+ Sequence< OUString > seqNames { "com.sun.star.loader.SharedLibrary" };
return seqNames;
}
diff --git a/stoc/source/namingservice/namingservice.cxx b/stoc/source/namingservice/namingservice.cxx
index e276b1ed1aef..99426ea03151 100644
--- a/stoc/source/namingservice/namingservice.cxx
+++ b/stoc/source/namingservice/namingservice.cxx
@@ -52,8 +52,7 @@ namespace stoc_namingservice
static Sequence< OUString > ns_getSupportedServiceNames()
{
- Sequence< OUString > seqNames(1);
- seqNames.getArray()[0] = SERVICENAME;
+ Sequence< OUString > seqNames { SERVICENAME };
return seqNames;
}
diff --git a/stoc/source/simpleregistry/simpleregistry.cxx b/stoc/source/simpleregistry/simpleregistry.cxx
index 31c74862f79d..5c4f7abf0047 100644
--- a/stoc/source/simpleregistry/simpleregistry.cxx
+++ b/stoc/source/simpleregistry/simpleregistry.cxx
@@ -103,8 +103,7 @@ private:
virtual css::uno::Sequence< OUString > SAL_CALL
getSupportedServiceNames() throw (css::uno::RuntimeException, std::exception) override
{
- css::uno::Sequence< OUString > names(1);
- names[0] = "com.sun.star.registry.SimpleRegistry";
+ css::uno::Sequence< OUString > names { "com.sun.star.registry.SimpleRegistry" };
return names;
}
diff --git a/stoc/source/typeconv/convert.cxx b/stoc/source/typeconv/convert.cxx
index 46c06225f920..9ee51a6e3fad 100644
--- a/stoc/source/typeconv/convert.cxx
+++ b/stoc/source/typeconv/convert.cxx
@@ -283,8 +283,7 @@ sal_Bool TypeConverter_Impl::supportsService(const OUString& ServiceName) throw(
// XServiceInfo
Sequence< OUString > TypeConverter_Impl::getSupportedServiceNames() throw( RuntimeException, std::exception )
{
- Sequence< OUString > seqNames(1);
- seqNames.getArray()[0] = "com.sun.star.script.Converter";
+ Sequence< OUString > seqNames { "com.sun.star.script.Converter" };
return seqNames;
}
diff --git a/stoc/source/uriproc/ExternalUriReferenceTranslator.cxx b/stoc/source/uriproc/ExternalUriReferenceTranslator.cxx
index 0737c8544f17..3dde5b31539c 100644
--- a/stoc/source/uriproc/ExternalUriReferenceTranslator.cxx
+++ b/stoc/source/uriproc/ExternalUriReferenceTranslator.cxx
@@ -88,8 +88,7 @@ sal_Bool Translator::supportsService(OUString const & serviceName)
css::uno::Sequence< OUString > Translator::getSupportedServiceNames()
throw (css::uno::RuntimeException, std::exception)
{
- css::uno::Sequence< OUString > s(1);
- s[0] = "com.sun.star.uri.ExternalUriReferenceTranslator";
+ css::uno::Sequence< OUString > s { "com.sun.star.uri.ExternalUriReferenceTranslator" };
return s;
}
diff --git a/stoc/source/uriproc/UriReferenceFactory.cxx b/stoc/source/uriproc/UriReferenceFactory.cxx
index 2c5a34a415fc..e8d3c6acb86f 100644
--- a/stoc/source/uriproc/UriReferenceFactory.cxx
+++ b/stoc/source/uriproc/UriReferenceFactory.cxx
@@ -321,8 +321,7 @@ sal_Bool Factory::supportsService(OUString const & serviceName)
css::uno::Sequence< OUString > Factory::getSupportedServiceNames()
throw (css::uno::RuntimeException, std::exception)
{
- css::uno::Sequence< OUString > s(1);
- s[0] = "com.sun.star.uri.UriReferenceFactory";
+ css::uno::Sequence< OUString > s { "com.sun.star.uri.UriReferenceFactory" };
return s;
}
diff --git a/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTexpand.cxx b/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTexpand.cxx
index ac0ceececa94..263795825bc5 100644
--- a/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTexpand.cxx
+++ b/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTexpand.cxx
@@ -193,8 +193,7 @@ sal_Bool Parser::supportsService(OUString const & serviceName)
css::uno::Sequence< OUString > Parser::getSupportedServiceNames()
throw (css::uno::RuntimeException, std::exception)
{
- css::uno::Sequence< OUString > s(1);
- s[0] = "com.sun.star.uri.UriSchemeParser_vndDOTsunDOTstarDOTexpand";
+ css::uno::Sequence< OUString > s { "com.sun.star.uri.UriSchemeParser_vndDOTsunDOTstarDOTexpand" };
return s;
}
diff --git a/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTscript.cxx b/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTscript.cxx
index b6811f8a27c0..b2f6c6da2b3a 100644
--- a/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTscript.cxx
+++ b/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTscript.cxx
@@ -413,8 +413,7 @@ sal_Bool Parser::supportsService(OUString const & serviceName)
css::uno::Sequence< OUString > Parser::getSupportedServiceNames()
throw (css::uno::RuntimeException, std::exception)
{
- css::uno::Sequence< OUString > s(1);
- s[0] = "com.sun.star.uri.UriSchemeParser_vndDOTsunDOTstarDOTscript";
+ css::uno::Sequence< OUString > s { "com.sun.star.uri.UriSchemeParser_vndDOTsunDOTstarDOTscript" };
return s;
}
diff --git a/stoc/source/uriproc/VndSunStarPkgUrlReferenceFactory.cxx b/stoc/source/uriproc/VndSunStarPkgUrlReferenceFactory.cxx
index 48f36f79215c..5bb9fb09b868 100644
--- a/stoc/source/uriproc/VndSunStarPkgUrlReferenceFactory.cxx
+++ b/stoc/source/uriproc/VndSunStarPkgUrlReferenceFactory.cxx
@@ -88,8 +88,7 @@ sal_Bool Factory::supportsService(OUString const & serviceName)
css::uno::Sequence< OUString > Factory::getSupportedServiceNames()
throw (css::uno::RuntimeException, std::exception)
{
- css::uno::Sequence< OUString > s(1);
- s[0] = "com.sun.star.uri.VndSunStarPkgUrlReferenceFactory";
+ css::uno::Sequence< OUString > s { "com.sun.star.uri.VndSunStarPkgUrlReferenceFactory" };
return s;
}
diff --git a/svl/source/numbers/supservs.cxx b/svl/source/numbers/supservs.cxx
index 2c5c777d3681..bec6b7aaa1a6 100644
--- a/svl/source/numbers/supservs.cxx
+++ b/svl/source/numbers/supservs.cxx
@@ -121,8 +121,7 @@ sal_Bool SAL_CALL SvNumberFormatsSupplierServiceObject::supportsService( const O
Sequence< OUString > SAL_CALL SvNumberFormatsSupplierServiceObject::getSupportedServiceNames( ) throw(RuntimeException, std::exception)
{
- Sequence< OUString > aSupported(1);
- aSupported.getArray()[0] = "com.sun.star.util.NumberFormatsSupplier";
+ Sequence< OUString > aSupported { "com.sun.star.util.NumberFormatsSupplier" };
return aSupported;
}
diff --git a/svl/source/passwordcontainer/passwordcontainer.cxx b/svl/source/passwordcontainer/passwordcontainer.cxx
index 78720601b7f3..2c41772352c8 100644
--- a/svl/source/passwordcontainer/passwordcontainer.cxx
+++ b/svl/source/passwordcontainer/passwordcontainer.cxx
@@ -1371,8 +1371,7 @@ Sequence< OUString > SAL_CALL PasswordContainer::getSupportedServiceNames( ) th
Sequence< OUString > SAL_CALL PasswordContainer::impl_getStaticSupportedServiceNames( ) throw(uno::RuntimeException)
{
- Sequence< OUString > aRet(1);
- aRet[0] = "com.sun.star.task.PasswordContainer";
+ Sequence< OUString > aRet { "com.sun.star.task.PasswordContainer" };
return aRet;
}
diff --git a/svl/source/uno/pathservice.cxx b/svl/source/uno/pathservice.cxx
index f0930bed0cf2..7bca666bd70a 100644
--- a/svl/source/uno/pathservice.cxx
+++ b/svl/source/uno/pathservice.cxx
@@ -55,8 +55,7 @@ public:
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames()
throw(css::uno::RuntimeException, std::exception) override
{
- css::uno::Sequence< OUString > aRet(1);
- aRet.getArray()[0] = "com.sun.star.config.SpecialConfigManager";
+ css::uno::Sequence< OUString > aRet { "com.sun.star.config.SpecialConfigManager" };
return aRet;
}
diff --git a/svtools/source/config/colorcfg.cxx b/svtools/source/config/colorcfg.cxx
index f08cd6ffdf3a..38eb93d7cf29 100644
--- a/svtools/source/config/colorcfg.cxx
+++ b/svtools/source/config/colorcfg.cxx
@@ -332,8 +332,7 @@ bool ColorConfig_Impl::AddScheme(const OUString& rScheme)
bool ColorConfig_Impl::RemoveScheme(const OUString& rScheme)
{
- uno::Sequence< OUString > aElements(1);
- aElements.getArray()[0] = rScheme;
+ uno::Sequence< OUString > aElements { rScheme };
return ClearNodeElements("ColorSchemes", aElements);
}
diff --git a/svtools/source/config/extcolorcfg.cxx b/svtools/source/config/extcolorcfg.cxx
index 9c1e0a66ed72..85855328076b 100644
--- a/svtools/source/config/extcolorcfg.cxx
+++ b/svtools/source/config/extcolorcfg.cxx
@@ -505,8 +505,7 @@ bool ExtendedColorConfig_Impl::AddScheme(const OUString& rScheme)
bool ExtendedColorConfig_Impl::RemoveScheme(const OUString& rScheme)
{
- uno::Sequence< OUString > aElements(1);
- aElements.getArray()[0] = rScheme;
+ uno::Sequence< OUString > aElements { rScheme };
return ClearNodeElements("ExtendedColorScheme/ColorSchemes", aElements);
}
diff --git a/svtools/source/control/vclxaccessibleheaderbaritem.cxx b/svtools/source/control/vclxaccessibleheaderbaritem.cxx
index fd4fe47d9268..4979614f2f8e 100644
--- a/svtools/source/control/vclxaccessibleheaderbaritem.cxx
+++ b/svtools/source/control/vclxaccessibleheaderbaritem.cxx
@@ -125,8 +125,7 @@ sal_Bool VCLXAccessibleHeaderBarItem::supportsService( const OUString& rServiceN
Sequence< OUString > VCLXAccessibleHeaderBarItem::getSupportedServiceNames() throw (RuntimeException, std::exception)
{
- Sequence< OUString > aNames(1);
- aNames[0] = "com.sun.star.awt.AccessibleHeaderBarItem";
+ Sequence< OUString > aNames { "com.sun.star.awt.AccessibleHeaderBarItem" };
return aNames;
}
diff --git a/svtools/source/uno/fpicker.cxx b/svtools/source/uno/fpicker.cxx
index f1cff13f2242..bed1a8c7f17c 100644
--- a/svtools/source/uno/fpicker.cxx
+++ b/svtools/source/uno/fpicker.cxx
@@ -106,8 +106,7 @@ OUString SAL_CALL FilePicker_getImplementationName()
Sequence< OUString > FilePicker_getSupportedServiceNames()
{
- Sequence< OUString > aServiceNames(1);
- aServiceNames.getArray()[0] = "com.sun.star.ui.dialogs.FilePicker";
+ Sequence< OUString > aServiceNames { "com.sun.star.ui.dialogs.FilePicker" };
return aServiceNames;
}
@@ -176,8 +175,7 @@ OUString SAL_CALL FolderPicker_getImplementationName()
Sequence< OUString > FolderPicker_getSupportedServiceNames()
{
- Sequence< OUString > aServiceNames(1);
- aServiceNames.getArray()[0] = "com.sun.star.ui.dialogs.FolderPicker";
+ Sequence< OUString > aServiceNames { "com.sun.star.ui.dialogs.FolderPicker" };
return aServiceNames;
}
diff --git a/svtools/source/uno/wizard/unowizard.cxx b/svtools/source/uno/wizard/unowizard.cxx
index c88f10a83a79..d3b5d7bc30f1 100644
--- a/svtools/source/uno/wizard/unowizard.cxx
+++ b/svtools/source/uno/wizard/unowizard.cxx
@@ -294,8 +294,7 @@ namespace {
Sequence< OUString > SAL_CALL Wizard::getSupportedServiceNames() throw(RuntimeException, std::exception)
{
- Sequence< OUString > aServices(1);
- aServices[0] = "com.sun.star.ui.dialogs.Wizard";
+ Sequence< OUString > aServices { "com.sun.star.ui.dialogs.Wizard" };
return aServices;
}
diff --git a/svx/source/accessibility/AccessibleSvxFindReplaceDialog.cxx b/svx/source/accessibility/AccessibleSvxFindReplaceDialog.cxx
index 5493c782e743..3f683bce1310 100644
--- a/svx/source/accessibility/AccessibleSvxFindReplaceDialog.cxx
+++ b/svx/source/accessibility/AccessibleSvxFindReplaceDialog.cxx
@@ -91,8 +91,7 @@ OUString VCLXAccessibleSvxFindReplaceDialog::getImplementationName() throw (Runt
Sequence< OUString > VCLXAccessibleSvxFindReplaceDialog::getSupportedServiceNames() throw (RuntimeException, std::exception)
{
- Sequence< OUString > aNames(1);
- aNames[0] = "VCLXAccessibleSvxFindReplaceDialog";
+ Sequence< OUString > aNames { "VCLXAccessibleSvxFindReplaceDialog" };
return aNames;
}
diff --git a/svx/source/form/fmshimp.cxx b/svx/source/form/fmshimp.cxx
index 307454051047..746ed8f73bac 100644
--- a/svx/source/form/fmshimp.cxx
+++ b/svx/source/form/fmshimp.cxx
@@ -662,8 +662,7 @@ FmXFormShell::FmXFormShell( FmFormShell& _rShell, SfxViewFrame* _pViewFrame )
// cache the current configuration settings we're interested in
implAdjustConfigCache();
// and register for changes on this settings
- Sequence< OUString > aNames(1);
- aNames[0] = "FormControlPilotsEnabled";
+ Sequence< OUString > aNames { "FormControlPilotsEnabled" };
EnableNotification(aNames);
}
@@ -3531,8 +3530,7 @@ void FmXFormShell::CreateExternalView()
void FmXFormShell::implAdjustConfigCache()
{
// get (cache) the wizard usage flag
- Sequence< OUString > aNames(1);
- aNames[0] = "FormControlPilotsEnabled";
+ Sequence< OUString > aNames { "FormControlPilotsEnabled" };
Sequence< Any > aFlags = GetProperties(aNames);
if (1 == aFlags.getLength())
m_bUseWizards = ::cppu::any2bool(aFlags[0]);
@@ -3563,8 +3561,7 @@ void FmXFormShell::SetWizardUsing(bool _bUseThem)
{
m_bUseWizards = _bUseThem;
- Sequence< OUString > aNames(1);
- aNames[0] = "FormControlPilotsEnabled";
+ Sequence< OUString > aNames { "FormControlPilotsEnabled" };
Sequence< Any > aValues(1);
aValues[0] <<= m_bUseWizards;
PutProperties(aNames, aValues);
diff --git a/svx/source/unodraw/UnoGraphicExporter.cxx b/svx/source/unodraw/UnoGraphicExporter.cxx
index a52ee9951aa4..be31bcf8225a 100644
--- a/svx/source/unodraw/UnoGraphicExporter.cxx
+++ b/svx/source/unodraw/UnoGraphicExporter.cxx
@@ -1207,8 +1207,7 @@ sal_Bool SAL_CALL GraphicExporter::supportsService( const OUString& ServiceName
Sequence< OUString > SAL_CALL GraphicExporter::getSupportedServiceNames( )
throw(RuntimeException, std::exception)
{
- Sequence< OUString > aSupportedServiceNames(1);
- aSupportedServiceNames[0] = "com.sun.star.drawing.GraphicExportFilter";
+ Sequence< OUString > aSupportedServiceNames { "com.sun.star.drawing.GraphicExportFilter" };
return aSupportedServiceNames;
}
diff --git a/svx/source/unodraw/recoveryui.cxx b/svx/source/unodraw/recoveryui.cxx
index 4ac50aaf46d1..1609a3d7872e 100644
--- a/svx/source/unodraw/recoveryui.cxx
+++ b/svx/source/unodraw/recoveryui.cxx
@@ -143,8 +143,7 @@ sal_Bool SAL_CALL RecoveryUI::supportsService(const OUString& sServiceName)
css::uno::Sequence< OUString > SAL_CALL RecoveryUI::getSupportedServiceNames()
throw(css::uno::RuntimeException, std::exception)
{
- css::uno::Sequence< OUString > lServiceNames(1);
- lServiceNames[0] = "com.sun.star.dialog.RecoveryUI";
+ css::uno::Sequence< OUString > lServiceNames { "com.sun.star.dialog.RecoveryUI" };
return lServiceNames;
}
diff --git a/sw/qa/core/uwriter.cxx b/sw/qa/core/uwriter.cxx
index 13d9642c3b79..3d6751c67a56 100644
--- a/sw/qa/core/uwriter.cxx
+++ b/sw/qa/core/uwriter.cxx
@@ -333,8 +333,7 @@ SwTextNode* getModelToViewTestDocument2(SwDoc *pDoc)
sw::mark::IFieldmark *pFieldmark = dynamic_cast<sw::mark::IFieldmark*>(
pMarksAccess->makeNoTextFieldBookmark(aPaM, "test", ODF_FORMDROPDOWN));
CPPUNIT_ASSERT(pFieldmark);
- uno::Sequence< OUString > vListEntries(1);
- vListEntries[0] = "BBBBB";
+ uno::Sequence< OUString > vListEntries { "BBBBB" };
(*pFieldmark->GetParameters())[ODF_FORMDROPDOWN_LISTENTRY] = uno::makeAny(vListEntries);
(*pFieldmark->GetParameters())[ODF_FORMDROPDOWN_RESULT] = uno::makeAny(sal_Int32(0));
pDoc->getIDocumentContentOperations().InsertString(aPaM, "CCCCC");
diff --git a/sw/source/core/docnode/finalthreadmanager.cxx b/sw/source/core/docnode/finalthreadmanager.cxx
index 658b4c9ef3b7..a5a8802c89cd 100644
--- a/sw/source/core/docnode/finalthreadmanager.cxx
+++ b/sw/source/core/docnode/finalthreadmanager.cxx
@@ -294,8 +294,7 @@ sal_Bool SAL_CALL FinalThreadManager::supportsService(OUString const & serviceNa
css::uno::Sequence< OUString > SAL_CALL FinalThreadManager::getSupportedServiceNames() throw (css::uno::RuntimeException, std::exception)
{
- css::uno::Sequence< OUString > s(1);
- s[0] = "com.sun.star.util.JobManager";
+ css::uno::Sequence< OUString > s { "com.sun.star.util.JobManager" };
return s;
}
diff --git a/sw/source/core/unocore/unocoll.cxx b/sw/source/core/unocore/unocoll.cxx
index 39ae82535b1d..acc29c675099 100644
--- a/sw/source/core/unocore/unocoll.cxx
+++ b/sw/source/core/unocore/unocoll.cxx
@@ -1574,8 +1574,7 @@ sal_Bool SwXBookmarks::supportsService(const OUString& rServiceName) throw( Runt
Sequence< OUString > SwXBookmarks::getSupportedServiceNames() throw( RuntimeException, std::exception )
{
- Sequence< OUString > aRet(1);
- aRet[0] = "com.sun.star.text.Bookmarks";
+ Sequence< OUString > aRet { "com.sun.star.text.Bookmarks" };
return aRet;
}
diff --git a/sw/source/core/unocore/unoport.cxx b/sw/source/core/unocore/unoport.cxx
index c2044f36ebb8..6e1de3db7667 100644
--- a/sw/source/core/unocore/unoport.cxx
+++ b/sw/source/core/unocore/unoport.cxx
@@ -428,8 +428,7 @@ uno::Any SwXTextPortion::getPropertyValue(
throw( beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException, std::exception )
{
SolarMutexGuard aGuard;
- uno::Sequence< OUString > aPropertyNames(1);
- aPropertyNames.getArray()[0] = rPropertyName;
+ uno::Sequence< OUString > aPropertyNames { rPropertyName };
return GetPropertyValues_Impl(aPropertyNames).getConstArray()[0];
}
diff --git a/sw/source/core/unocore/unosect.cxx b/sw/source/core/unocore/unosect.cxx
index 2179c688d785..8c235fa89dcd 100644
--- a/sw/source/core/unocore/unosect.cxx
+++ b/sw/source/core/unocore/unosect.cxx
@@ -939,8 +939,7 @@ throw (beans::UnknownPropertyException, beans::PropertyVetoException,
{
SolarMutexGuard aGuard;
- uno::Sequence< OUString > aPropertyNames(1);
- aPropertyNames.getArray()[0] = rPropertyName;
+ uno::Sequence< OUString > aPropertyNames { rPropertyName };
uno::Sequence< uno::Any > aValues(1);
aValues.getArray()[0] = rValue;
m_pImpl->SetPropertyValues_Impl( aPropertyNames, aValues );
@@ -1288,8 +1287,7 @@ throw (beans::UnknownPropertyException, lang::WrappedTargetException,
{
SolarMutexGuard aGuard;
- uno::Sequence< OUString > aPropertyNames(1);
- aPropertyNames.getArray()[0] = rPropertyName;
+ uno::Sequence< OUString > aPropertyNames { rPropertyName };
return m_pImpl->GetPropertyValues_Impl(aPropertyNames).getConstArray()[0];
}
@@ -1362,8 +1360,7 @@ throw (beans::UnknownPropertyException, uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
- uno::Sequence< OUString > aNames(1);
- aNames.getArray()[0] = rPropertyName;
+ uno::Sequence< OUString > aNames { rPropertyName };
return getPropertyStates(aNames).getConstArray()[0];
}
diff --git a/testtools/source/bridgetest/constructors.cxx b/testtools/source/bridgetest/constructors.cxx
index 16c1a4237cbc..3c14cd77b0e5 100644
--- a/testtools/source/bridgetest/constructors.cxx
+++ b/testtools/source/bridgetest/constructors.cxx
@@ -446,8 +446,7 @@ OUString SAL_CALL getImplementationName() {
}
css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() {
- css::uno::Sequence< OUString > s(1);
- s[0] = "test.testtools.bridgetest.Constructors";
+ css::uno::Sequence< OUString > s { "test.testtools.bridgetest.Constructors" };
return s;
}
@@ -464,8 +463,7 @@ OUString SAL_CALL getImplementationName2() {
}
css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames2() {
- css::uno::Sequence< OUString > s(1);
- s[0] = "test.testtools.bridgetest.Constructors2";
+ css::uno::Sequence< OUString > s { "test.testtools.bridgetest.Constructors2" };
return s;
}
diff --git a/testtools/source/bridgetest/cppobj.cxx b/testtools/source/bridgetest/cppobj.cxx
index 280653bb2cd4..fca1fe46e77f 100644
--- a/testtools/source/bridgetest/cppobj.cxx
+++ b/testtools/source/bridgetest/cppobj.cxx
@@ -937,8 +937,7 @@ void Test_Impl::testConstructorsService(
Sequence< float > arg22(1); arg22[0] = 0.123f;
Sequence< double > arg23(1); arg23[0] = 0.456;
Sequence< sal_Unicode > arg24(1); arg24[0] = 'X';
- Sequence< OUString > arg25(1);
- arg25[0] = "test";
+ Sequence< OUString > arg25 { "test" };
Sequence< Type > arg26(1); arg26[0] = UnoType< Any >::get();
Sequence< Any > arg27(1); arg27[0] <<= true;
Sequence< Sequence< sal_Bool > > arg28(1);
diff --git a/toolkit/source/awt/asynccallback.cxx b/toolkit/source/awt/asynccallback.cxx
index 9faaf0c5f25f..62ebe1e2a792 100644
--- a/toolkit/source/awt/asynccallback.cxx
+++ b/toolkit/source/awt/asynccallback.cxx
@@ -79,8 +79,7 @@ sal_Bool SAL_CALL AsyncCallback::supportsService(OUString const & serviceName) t
css::uno::Sequence< OUString > SAL_CALL AsyncCallback::getSupportedServiceNames() throw (css::uno::RuntimeException, std::exception)
{
- css::uno::Sequence< OUString > s(1);
- s[0] = "com.sun.star.awt.AsyncCallback";
+ css::uno::Sequence< OUString > s { "com.sun.star.awt.AsyncCallback" };
return s;
}
diff --git a/toolkit/source/awt/vclxaccessiblecomponent.cxx b/toolkit/source/awt/vclxaccessiblecomponent.cxx
index 1d1e127baff6..a037109f1f2f 100644
--- a/toolkit/source/awt/vclxaccessiblecomponent.cxx
+++ b/toolkit/source/awt/vclxaccessiblecomponent.cxx
@@ -97,8 +97,7 @@ sal_Bool VCLXAccessibleComponent::supportsService( const OUString& rServiceName
uno::Sequence< OUString > VCLXAccessibleComponent::getSupportedServiceNames() throw (uno::RuntimeException, std::exception)
{
- uno::Sequence< OUString > aNames(1);
- aNames[0] = "com.sun.star.awt.AccessibleWindow";
+ uno::Sequence< OUString > aNames { "com.sun.star.awt.AccessibleWindow" };
return aNames;
}
diff --git a/toolkit/source/controls/controlmodelcontainerbase.cxx b/toolkit/source/controls/controlmodelcontainerbase.cxx
index 6269f38fd3c3..cf0c1ac6f36e 100644
--- a/toolkit/source/controls/controlmodelcontainerbase.cxx
+++ b/toolkit/source/controls/controlmodelcontainerbase.cxx
@@ -1763,8 +1763,7 @@ static void lcl_ApplyResolverToNestedContainees( const Reference< resource::XSt
Any xNewStringResourceResolver; xNewStringResourceResolver <<= xStringResourceResolver;
- Sequence< OUString > aPropNames(1);
- aPropNames[0] = aPropName;
+ Sequence< OUString > aPropNames { aPropName };
const Sequence< Reference< awt::XControl > > aSeq = xContainer->getControls();
for ( sal_Int32 i = 0; i < aSeq.getLength(); i++ )
diff --git a/toolkit/source/controls/grid/sortablegriddatamodel.cxx b/toolkit/source/controls/grid/sortablegriddatamodel.cxx
index e8809a16d2a1..df869e9469fc 100644
--- a/toolkit/source/controls/grid/sortablegriddatamodel.cxx
+++ b/toolkit/source/controls/grid/sortablegriddatamodel.cxx
@@ -886,8 +886,7 @@ private:
Sequence< OUString > SAL_CALL SortableGridDataModel::getSupportedServiceNames( ) throw (RuntimeException, std::exception)
{
- Sequence< OUString > aServiceNames(1);
- aServiceNames[0] = "com.sun.star.awt.grid.SortableGridDataModel";
+ Sequence< OUString > aServiceNames { "com.sun.star.awt.grid.SortableGridDataModel" };
return aServiceNames;
}
diff --git a/toolkit/source/controls/tabpagemodel.cxx b/toolkit/source/controls/tabpagemodel.cxx
index fe86a22c3882..c2353f0a7cd7 100644
--- a/toolkit/source/controls/tabpagemodel.cxx
+++ b/toolkit/source/controls/tabpagemodel.cxx
@@ -195,8 +195,7 @@ sal_Bool SAL_CALL UnoControlTabPage::supportsService(OUString const & ServiceNam
css::uno::Sequence<OUString> SAL_CALL UnoControlTabPage::getSupportedServiceNames()
throw (css::uno::RuntimeException, std::exception)
{
- css::uno::Sequence< OUString > aSeq(1);
- aSeq[0] = "com.sun.star.awt.tab.UnoControlTabPage";
+ css::uno::Sequence< OUString > aSeq { "com.sun.star.awt.tab.UnoControlTabPage" };
return aSeq;
}
diff --git a/ucb/source/core/FileAccess.cxx b/ucb/source/core/FileAccess.cxx
index 45f4e46ea9e6..0593044db820 100644
--- a/ucb/source/core/FileAccess.cxx
+++ b/ucb/source/core/FileAccess.cxx
@@ -777,8 +777,7 @@ Reference< XInterface > SAL_CALL FileAccess_CreateInstance( const Reference< XMu
Sequence< OUString > FileAccess_getSupportedServiceNames()
{
- Sequence< OUString > seqNames(1);
- seqNames.getArray()[0] = SERVICE_NAME;
+ Sequence< OUString > seqNames { SERVICE_NAME };
return seqNames;
}
diff --git a/ucb/source/ucp/ext/ucpext_datasupplier.cxx b/ucb/source/ucp/ext/ucpext_datasupplier.cxx
index 4d794a656f39..9192f1bf7260 100644
--- a/ucb/source/ucp/ext/ucpext_datasupplier.cxx
+++ b/ucb/source/ucp/ext/ucpext_datasupplier.cxx
@@ -171,8 +171,7 @@ namespace ucb { namespace ucp { namespace ext
::ucbhelper::Content aWrappedContent( sPackageLocation, getResultSet()->getEnvironment(), m_pImpl->m_xContext );
// obtain the properties which our result set is set up for from the wrapped content
- Sequence< OUString > aPropertyNames(1);
- aPropertyNames[0] = "Title";
+ Sequence< OUString > aPropertyNames { "Title" };
const Reference< XResultSet > xFolderContent( aWrappedContent.createCursor( aPropertyNames ), UNO_SET_THROW );
const Reference< XRow > xContentRow( xFolderContent, UNO_QUERY_THROW );
diff --git a/unotools/source/config/saveopt.cxx b/unotools/source/config/saveopt.cxx
index 06018f2c1d87..38dff4156745 100644
--- a/unotools/source/config/saveopt.cxx
+++ b/unotools/source/config/saveopt.cxx
@@ -784,8 +784,7 @@ SvtLoadOptions_Impl::SvtLoadOptions_Impl()
: ConfigItem( OUString("Office.Common/Load") )
, bLoadUserDefinedSettings( false )
{
- Sequence< OUString > aNames(1);
- aNames[0] = cUserDefinedSettings;
+ Sequence< OUString > aNames { cUserDefinedSettings };
Sequence< Any > aValues = GetProperties( aNames );
EnableNotification( aNames );
const Any* pValues = aValues.getConstArray();
@@ -800,8 +799,7 @@ SvtLoadOptions_Impl::~SvtLoadOptions_Impl()
void SvtLoadOptions_Impl::ImplCommit()
{
- Sequence< OUString > aNames(1);
- aNames[0] = cUserDefinedSettings;
+ Sequence< OUString > aNames { cUserDefinedSettings };
Sequence< Any > aValues( 1 );
aValues[0].setValue(&bLoadUserDefinedSettings, cppu::UnoType<bool>::get());
PutProperties( aNames, aValues );
diff --git a/unoxml/source/rdf/CBlankNode.cxx b/unoxml/source/rdf/CBlankNode.cxx
index 67280691cdc0..84b35ce5cc90 100644
--- a/unoxml/source/rdf/CBlankNode.cxx
+++ b/unoxml/source/rdf/CBlankNode.cxx
@@ -125,8 +125,7 @@ OUString SAL_CALL _getImplementationName() {
css::uno::Sequence< OUString > SAL_CALL _getSupportedServiceNames()
{
- css::uno::Sequence< OUString > s(1);
- s[0] = "com.sun.star.rdf.BlankNode";
+ css::uno::Sequence< OUString > s { "com.sun.star.rdf.BlankNode" };
return s;
}
diff --git a/unoxml/source/rdf/CLiteral.cxx b/unoxml/source/rdf/CLiteral.cxx
index 7b2080c36f89..04dd0212322d 100644
--- a/unoxml/source/rdf/CLiteral.cxx
+++ b/unoxml/source/rdf/CLiteral.cxx
@@ -188,8 +188,7 @@ OUString SAL_CALL _getImplementationName() {
css::uno::Sequence< OUString > SAL_CALL _getSupportedServiceNames()
{
- css::uno::Sequence< OUString > s(1);
- s[0] = "com.sun.star.rdf.Literal";
+ css::uno::Sequence< OUString > s { "com.sun.star.rdf.Literal" };
return s;
}
diff --git a/unoxml/source/rdf/CURI.cxx b/unoxml/source/rdf/CURI.cxx
index bcfc5b00af71..c9b7f760450c 100644
--- a/unoxml/source/rdf/CURI.cxx
+++ b/unoxml/source/rdf/CURI.cxx
@@ -815,8 +815,7 @@ OUString SAL_CALL _getImplementationName() {
css::uno::Sequence< OUString > SAL_CALL _getSupportedServiceNames()
{
- css::uno::Sequence< OUString > s(1);
- s[0] = "com.sun.star.rdf.URI";
+ css::uno::Sequence< OUString > s { "com.sun.star.rdf.URI" };
return s;
}
diff --git a/unoxml/source/rdf/librdf_repository.cxx b/unoxml/source/rdf/librdf_repository.cxx
index 95a48afd54cb..2c627134ac30 100644
--- a/unoxml/source/rdf/librdf_repository.cxx
+++ b/unoxml/source/rdf/librdf_repository.cxx
@@ -2440,8 +2440,7 @@ OUString SAL_CALL _getImplementationName() {
uno::Sequence< OUString > SAL_CALL _getSupportedServiceNames()
{
- uno::Sequence< OUString > s(1);
- s[0] = "com.sun.star.rdf.Repository";
+ uno::Sequence< OUString > s { "com.sun.star.rdf.Repository" };
return s;
}
diff --git a/uui/source/requeststringresolver.cxx b/uui/source/requeststringresolver.cxx
index d61b1f18d99a..daf33164b667 100644
--- a/uui/source/requeststringresolver.cxx
+++ b/uui/source/requeststringresolver.cxx
@@ -80,8 +80,7 @@ char const UUIInteractionRequestStringResolver::m_aImplementationName[]
uno::Sequence< OUString >
UUIInteractionRequestStringResolver::getSupportedServiceNames_static()
{
- uno::Sequence< OUString > aNames(1);
- aNames[0] = "com.sun.star.task.InteractionRequestStringResolver";
+ uno::Sequence< OUString > aNames { "com.sun.star.task.InteractionRequestStringResolver" };
return aNames;
}
diff --git a/vbahelper/source/vbahelper/vbaglobalbase.cxx b/vbahelper/source/vbahelper/vbaglobalbase.cxx
index d57e421d3f27..fd19e4a3cb58 100644
--- a/vbahelper/source/vbahelper/vbaglobalbase.cxx
+++ b/vbahelper/source/vbahelper/vbaglobalbase.cxx
@@ -150,8 +150,7 @@ VbaGlobalsBase::createInstanceWithArguments( const OUString& aServiceSpecifier,
uno::Sequence< OUString > SAL_CALL
VbaGlobalsBase::getAvailableServiceNames( ) throw (uno::RuntimeException, std::exception)
{
- uno::Sequence< OUString > serviceNames(1);
- serviceNames[0] = "ooo.vba.msforms.UserForm";
+ uno::Sequence< OUString > serviceNames { "ooo.vba.msforms.UserForm" };
return serviceNames;
}
diff --git a/vcl/source/app/session.cxx b/vcl/source/app/session.cxx
index 3bf8f0e582c5..cca093b3c529 100644
--- a/vcl/source/app/session.cxx
+++ b/vcl/source/app/session.cxx
@@ -336,8 +336,7 @@ OUString SAL_CALL vcl_session_getImplementationName()
Sequence< OUString > SAL_CALL vcl_session_getSupportedServiceNames()
{
- Sequence< OUString > aRet(1);
- aRet[0] = "com.sun.star.frame.SessionManagerClient";
+ Sequence< OUString > aRet { "com.sun.star.frame.SessionManagerClient" };
return aRet;
}
diff --git a/vcl/source/components/dtranscomp.cxx b/vcl/source/components/dtranscomp.cxx
index 6dc83ff295d0..60c530de6493 100644
--- a/vcl/source/components/dtranscomp.cxx
+++ b/vcl/source/components/dtranscomp.cxx
@@ -126,8 +126,7 @@ OUString GenericClipboard::getImplementationName_static()
Sequence< OUString > GenericClipboard::getSupportedServiceNames_static()
{
- 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/vcl/source/gdi/print3.cxx b/vcl/source/gdi/print3.cxx
index b434ac4fd242..db90affa61bb 100644
--- a/vcl/source/gdi/print3.cxx
+++ b/vcl/source/gdi/print3.cxx
@@ -1938,8 +1938,7 @@ Any PrinterOptionsHelper::setGroupControlOpt(const OUString& i_rID,
aHelpId.realloc( 1 );
*aHelpId.getArray() = i_rHelpId;
}
- Sequence< OUString > aIds(1);
- aIds[0] = i_rID;
+ Sequence< OUString > aIds { i_rID };
return setUIControlOpt(aIds, i_rTitle, aHelpId, "Group");
}
@@ -1954,8 +1953,7 @@ Any PrinterOptionsHelper::setSubgroupControlOpt(const OUString& i_rID,
aHelpId.realloc( 1 );
*aHelpId.getArray() = i_rHelpId;
}
- Sequence< OUString > aIds(1);
- aIds[0] = i_rID;
+ Sequence< OUString > aIds { i_rID };
return setUIControlOpt(aIds, i_rTitle, aHelpId, "Subgroup", nullptr, i_rControlOptions);
}
@@ -1975,8 +1973,7 @@ Any PrinterOptionsHelper::setBoolControlOpt(const OUString& i_rID,
PropertyValue aVal;
aVal.Name = i_rProperty;
aVal.Value = makeAny( i_bValue );
- Sequence< OUString > aIds(1);
- aIds[0] = i_rID;
+ Sequence< OUString > aIds { i_rID };
return setUIControlOpt(aIds, i_rTitle, aHelpId, "Bool", &aVal, i_rControlOptions);
}
@@ -2029,8 +2026,7 @@ Any PrinterOptionsHelper::setChoiceListControlOpt(const OUString& i_rID,
PropertyValue aVal;
aVal.Name = i_rProperty;
aVal.Value = makeAny( i_nValue );
- Sequence< OUString > aIds(1);
- aIds[0] = i_rID;
+ Sequence< OUString > aIds { i_rID };
return setUIControlOpt(aIds, i_rTitle, i_rHelpId, "List", &aVal, aOpt);
}
@@ -2063,8 +2059,7 @@ Any PrinterOptionsHelper::setRangeControlOpt(const OUString& i_rID,
PropertyValue aVal;
aVal.Name = i_rProperty;
aVal.Value = makeAny( i_nValue );
- Sequence< OUString > aIds(1);
- aIds[0] = i_rID;
+ Sequence< OUString > aIds { i_rID };
return setUIControlOpt(aIds, i_rTitle, aHelpId, "Range", &aVal, aOpt);
}
@@ -2084,8 +2079,7 @@ Any PrinterOptionsHelper::setEditControlOpt(const OUString& i_rID,
PropertyValue aVal;
aVal.Name = i_rProperty;
aVal.Value = makeAny( i_rValue );
- Sequence< OUString > aIds(1);
- aIds[0] = i_rID;
+ Sequence< OUString > aIds { i_rID };
return setUIControlOpt(aIds, i_rTitle, aHelpId, "Edit", &aVal, i_rControlOptions);
}
diff --git a/vcl/unx/generic/dtrans/X11_service.cxx b/vcl/unx/generic/dtrans/X11_service.cxx
index 5a2d42bb20af..3dfacc22a9a8 100644
--- a/vcl/unx/generic/dtrans/X11_service.cxx
+++ b/vcl/unx/generic/dtrans/X11_service.cxx
@@ -36,22 +36,19 @@ using namespace x11;
Sequence< OUString > SAL_CALL x11::X11Clipboard_getSupportedServiceNames()
{
- Sequence< OUString > aRet(1);
- aRet[0] = "com.sun.star.datatransfer.clipboard.SystemClipboard";
+ Sequence< OUString > aRet { "com.sun.star.datatransfer.clipboard.SystemClipboard" };
return aRet;
}
Sequence< OUString > SAL_CALL x11::Xdnd_getSupportedServiceNames()
{
- Sequence< OUString > aRet(1);
- aRet[0] = "com.sun.star.datatransfer.dnd.X11DragSource";
+ Sequence< OUString > aRet { "com.sun.star.datatransfer.dnd.X11DragSource" };
return aRet;
}
Sequence< OUString > SAL_CALL x11::Xdnd_dropTarget_getSupportedServiceNames()
{
- Sequence< OUString > aRet(1);
- aRet[0] = "com.sun.star.datatransfer.dnd.X11DropTarget";
+ Sequence< OUString > aRet { "com.sun.star.datatransfer.dnd.X11DropTarget" };
return aRet;
}
diff --git a/vcl/unx/gtk3/app/gtk3gtkinst.cxx b/vcl/unx/gtk3/app/gtk3gtkinst.cxx
index 0b3d40517c14..8482ed43001a 100644
--- a/vcl/unx/gtk3/app/gtk3gtkinst.cxx
+++ b/vcl/unx/gtk3/app/gtk3gtkinst.cxx
@@ -350,8 +350,7 @@ OUString VclGtkClipboard::getImplementationName_static()
Sequence< OUString > VclGtkClipboard::getSupportedServiceNames_static()
{
- 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/winaccessibility/source/service/msaaservice_impl.cxx b/winaccessibility/source/service/msaaservice_impl.cxx
index 6493452128aa..d9bdba053641 100644
--- a/winaccessibility/source/service/msaaservice_impl.cxx
+++ b/winaccessibility/source/service/msaaservice_impl.cxx
@@ -47,8 +47,7 @@ namespace my_sc_impl
static Sequence< OUString > getSupportedServiceNames_MSAAServiceImpl()
{
- Sequence< OUString > seqNames(1);
- seqNames.getArray()[0] = "com.sun.star.accessibility.MSAAService";
+ Sequence< OUString > seqNames { "com.sun.star.accessibility.MSAAService" };
return seqNames;
}
diff --git a/xmlscript/source/xmlflat_imexp/xmlbas_export.cxx b/xmlscript/source/xmlflat_imexp/xmlbas_export.cxx
index 79d4255c0917..99b1b8001fa1 100644
--- a/xmlscript/source/xmlflat_imexp/xmlbas_export.cxx
+++ b/xmlscript/source/xmlflat_imexp/xmlbas_export.cxx
@@ -48,8 +48,7 @@ namespace xmlscript
Sequence< OUString > getSupportedServiceNames_XMLBasicExporter()
{
- Sequence< OUString > aNames(1);
- aNames.getArray()[0] = "com.sun.star.document.XMLBasicExporter";
+ Sequence< OUString > aNames { "com.sun.star.document.XMLBasicExporter" };
return aNames;
}
@@ -60,8 +59,7 @@ namespace xmlscript
Sequence< OUString > getSupportedServiceNames_XMLOasisBasicExporter()
{
- Sequence< OUString > aNames(1);
- aNames.getArray()[0] = "com.sun.star.document.XMLOasisBasicExporter";
+ Sequence< OUString > aNames { "com.sun.star.document.XMLOasisBasicExporter" };
return aNames;
}
diff --git a/xmlscript/source/xmlflat_imexp/xmlbas_import.cxx b/xmlscript/source/xmlflat_imexp/xmlbas_import.cxx
index c1cf9b7c5a00..8dae8df85c1e 100644
--- a/xmlscript/source/xmlflat_imexp/xmlbas_import.cxx
+++ b/xmlscript/source/xmlflat_imexp/xmlbas_import.cxx
@@ -506,8 +506,7 @@ void BasicImport::setDocumentLocator( const Reference< xml::sax::XLocator >& /*x
Sequence< OUString > getSupportedServiceNames_XMLBasicImporter()
{
- Sequence< OUString > aNames(1);
- aNames.getArray()[0] = "com.sun.star.document.XMLBasicImporter";
+ Sequence< OUString > aNames { "com.sun.star.document.XMLBasicImporter" };
return aNames;
}
@@ -518,8 +517,7 @@ void BasicImport::setDocumentLocator( const Reference< xml::sax::XLocator >& /*x
Sequence< OUString > getSupportedServiceNames_XMLOasisBasicImporter()
{
- Sequence< OUString > aNames(1);
- aNames.getArray()[0] = "com.sun.star.document.XMLOasisBasicImporter";
+ Sequence< OUString > aNames { "com.sun.star.document.XMLOasisBasicImporter" };
return aNames;
}
diff --git a/xmlsecurity/source/component/certificatecontainer.cxx b/xmlsecurity/source/component/certificatecontainer.cxx
index 70513b0017e4..619c76c9eeed 100644
--- a/xmlsecurity/source/component/certificatecontainer.cxx
+++ b/xmlsecurity/source/component/certificatecontainer.cxx
@@ -111,8 +111,7 @@ Sequence< OUString > SAL_CALL
CertificateContainer::impl_getStaticSupportedServiceNames( )
throw(::com::sun::star::uno::RuntimeException)
{
- Sequence< OUString > aRet(1);
- aRet[0] = "com.sun.star.security.CertificateContainer";
+ Sequence< OUString > aRet { "com.sun.star.security.CertificateContainer" };
return aRet;
}
diff --git a/xmlsecurity/source/xmlsec/serialnumberadapter.cxx b/xmlsecurity/source/xmlsec/serialnumberadapter.cxx
index 1abe1325a516..6f1848d8316c 100644
--- a/xmlsecurity/source/xmlsec/serialnumberadapter.cxx
+++ b/xmlsecurity/source/xmlsec/serialnumberadapter.cxx
@@ -91,8 +91,7 @@ css::uno::Sequence< OUString >
xml_security::serial_number_adapter::serviceNames()
throw (css::uno::RuntimeException)
{
- css::uno::Sequence< OUString > s(1);
- s[0] = "com.sun.star.security.SerialNumberAdapter";
+ css::uno::Sequence< OUString > s { "com.sun.star.security.SerialNumberAdapter" };
return s;
}