[Libreoffice-commits] core.git: avmedia/source basctl/source basegfx/source chart2/source cppuhelper/qa cppuhelper/source cppuhelper/test cui/source dbaccess/source desktop/source extensions/source filter/source forms/source fpicker/source framework/source io/source linguistic/source mysqlc/source odk/examples oox/source sccomp/source scripting/source sc/source sdext/source sd/source sfx2/source shell/source svl/source svtools/source svx/source sw/source toolkit/source ucbhelper/source ucb/source writerperfect/source xmlhelp/source xmloff/source xmlsecurity/source

Noel Grandin noelgrandin at gmail.com
Sun Nov 15 04:21:06 PST 2015


 avmedia/source/gstreamer/gstmanager.cxx                                    |    3 -
 avmedia/source/gstreamer/gstplayer.cxx                                     |    3 -
 avmedia/source/gstreamer/gstwindow.cxx                                     |    3 -
 avmedia/source/quicktime/framegrabber.mm                                   |    3 -
 avmedia/source/quicktime/manager.mm                                        |    3 -
 avmedia/source/quicktime/player.mm                                         |    3 -
 avmedia/source/quicktime/window.mm                                         |    3 -
 avmedia/source/win/framegrabber.cxx                                        |    3 -
 avmedia/source/win/manager.cxx                                             |    3 -
 avmedia/source/win/player.cxx                                              |    3 -
 avmedia/source/win/window.cxx                                              |    3 -
 basctl/source/accessibility/accessibledialogcontrolshape.cxx               |    3 -
 basctl/source/accessibility/accessibledialogwindow.cxx                     |    3 -
 basegfx/source/tools/unopolypolygon.cxx                                    |    3 -
 chart2/source/controller/dialogs/dlg_ChartType_UNO.cxx                     |    3 -
 chart2/source/controller/dialogs/dlg_CreationWizard_UNO.cxx                |    3 -
 chart2/source/controller/main/ChartFrameloader.cxx                         |    3 -
 chart2/source/controller/main/ElementSelector.cxx                          |    3 -
 chart2/source/model/main/CartesianCoordinateSystem.cxx                     |    3 -
 chart2/source/model/main/PolarCoordinateSystem.cxx                         |    3 -
 chart2/source/tools/ConfigColorScheme.cxx                                  |    3 -
 chart2/source/tools/DataSource.cxx                                         |    3 -
 chart2/source/tools/InternalDataProvider.cxx                               |    3 -
 chart2/source/tools/LabeledDataSequence.cxx                                |    3 -
 chart2/source/tools/NameContainer.cxx                                      |    3 -
 chart2/source/view/main/ChartView.cxx                                      |    3 -
 cppuhelper/qa/propertysetmixin/comp_propertysetmixin.cxx                   |    3 -
 cppuhelper/source/typemanager.cxx                                          |    3 -
 cppuhelper/test/testcmp/TestComponent.cxx                                  |    3 -
 cui/source/customize/cfg.cxx                                               |   12 +----
 dbaccess/source/core/dataaccess/documentdefinition.cxx                     |    3 -
 desktop/source/deployment/inc/dp_ucb.h                                     |    3 -
 extensions/source/config/ldap/ldapuserprofilebe.cxx                        |    3 -
 extensions/source/propctrlr/eformspropertyhandler.cxx                      |    3 -
 extensions/source/propctrlr/submissionhandler.cxx                          |    3 -
 filter/source/flash/swfdialog.cxx                                          |    4 -
 filter/source/flash/swffilter.cxx                                          |    4 -
 filter/source/msfilter/mstoolbar.cxx                                       |    6 --
 filter/source/msfilter/msvbahelper.cxx                                     |    3 -
 filter/source/pdf/pdfdialog.cxx                                            |    4 -
 filter/source/pdf/pdffilter.cxx                                            |    4 -
 filter/source/pdf/pdfinteract.cxx                                          |    4 -
 filter/source/placeware/filter.cxx                                         |    4 -
 filter/source/t602/t602filter.cxx                                          |    4 -
 forms/source/component/FormComponent.cxx                                   |    3 -
 fpicker/source/office/OfficeFilePicker.cxx                                 |    8 ---
 framework/source/uielement/popuptoolbarcontroller.cxx                      |   12 +----
 io/source/stm/odata.cxx                                                    |    3 -
 linguistic/source/convdic.cxx                                              |    3 -
 mysqlc/source/mysqlc_connection.cxx                                        |    3 -
 mysqlc/source/mysqlc_driver.cxx                                            |    3 -
 mysqlc/source/mysqlc_preparedstatement.cxx                                 |    3 -
 mysqlc/source/mysqlc_statement.cxx                                         |    3 -
 odk/examples/DevelopersGuide/Database/DriverSkeleton/SDriver.cxx           |    3 -
 odk/examples/cpp/complextoolbarcontrols/exports.cxx                        |    6 --
 oox/source/core/fasttokenhandler.cxx                                       |    3 -
 oox/source/core/filterdetect.cxx                                           |    3 -
 oox/source/docprop/ooxmldocpropimport.cxx                                  |    3 -
 sc/source/ui/unoobj/appluno.cxx                                            |    4 -
 sc/source/ui/unoobj/miscuno.cxx                                            |    4 -
 sc/source/ui/unoobj/shapeuno.cxx                                           |    3 -
 sccomp/source/solver/SolverComponent.cxx                                   |    3 -
 scripting/source/provider/MasterScriptProvider.cxx                         |    3 -
 sd/source/ui/unoidl/sddetect.cxx                                           |    3 -
 sdext/source/minimizer/pppoptimizerdialog.cxx                              |    4 -
 sfx2/source/doc/SfxDocumentMetaData.cxx                                    |    3 -
 shell/source/backends/macbe/macbackend.mm                                  |    3 -
 svl/source/numbers/numfmuno.cxx                                            |   16 +-----
 svl/source/passwordcontainer/syscreds.cxx                                  |    6 --
 svtools/source/control/vclxaccessibleheaderbar.cxx                         |    3 -
 svtools/source/filter/SvFilterOptionsDialog.cxx                            |    4 -
 svtools/source/graphic/graphicunofactory.cxx                               |    4 -
 svtools/source/graphic/provider.cxx                                        |    3 -
 svtools/source/graphic/renderer.cxx                                        |    3 -
 svx/source/customshapes/EnhancedCustomShapeEngine.cxx                      |    4 -
 svx/source/form/formcontroller.cxx                                         |    3 -
 svx/source/gallery2/gallery1.cxx                                           |    3 -
 svx/source/gallery2/galtheme.cxx                                           |    3 -
 svx/source/unodialogs/textconversiondlgs/chinese_translation_unodialog.cxx |    3 -
 svx/source/unogallery/unogalthemeprovider.cxx                              |    3 -
 sw/source/core/unocore/unocoll.cxx                                         |   24 ++--------
 sw/source/core/unocore/unodraw.cxx                                         |    4 -
 sw/source/core/unocore/unofield.cxx                                        |   12 +----
 sw/source/core/unocore/unoobj.cxx                                          |    4 -
 sw/source/core/unocore/unoobj2.cxx                                         |    4 -
 sw/source/core/unocore/unoparagraph.cxx                                    |    4 -
 sw/source/core/unocore/unoport.cxx                                         |    4 -
 sw/source/core/unocore/unoportenum.cxx                                     |    4 -
 sw/source/core/unocore/unosett.cxx                                         |   20 ++------
 sw/source/core/unocore/unostyle.cxx                                        |    8 ---
 sw/source/uibase/uno/unoatxt.cxx                                           |    8 ---
 sw/source/uibase/uno/unomod.cxx                                            |    8 ---
 sw/source/uibase/uno/unotxdoc.cxx                                          |    4 -
 toolkit/source/controls/roadmapentry.cxx                                   |    4 -
 ucb/source/core/cmdenv.cxx                                                 |    3 -
 ucb/source/sorter/sortdynres.cxx                                           |    6 --
 ucb/source/sorter/sortresult.cxx                                           |    3 -
 ucb/source/ucp/cmis/cmis_content.cxx                                       |    3 -
 ucb/source/ucp/cmis/cmis_repo_content.cxx                                  |    3 -
 ucb/source/ucp/ftp/ftpcontent.cxx                                          |    3 -
 ucb/source/ucp/ftp/ftpcontentprovider.cxx                                  |    3 -
 ucb/source/ucp/gio/gio_content.cxx                                         |    3 -
 ucb/source/ucp/hierarchy/hierarchycontent.cxx                              |    3 -
 ucb/source/ucp/webdav-neon/webdavcontent.cxx                               |    6 --
 ucb/source/ucp/webdav/webdavcontent.cxx                                    |    6 --
 ucbhelper/source/client/content.cxx                                        |    6 --
 writerperfect/source/common/DirectoryStream.cxx                            |    3 -
 xmlhelp/source/cxxhelp/provider/content.cxx                                |    3 -
 xmloff/source/style/PageMasterImportContext.cxx                            |    3 -
 xmloff/source/text/txtstyli.cxx                                            |    3 -
 xmlsecurity/source/component/documentdigitalsignatures.cxx                 |    4 -
 xmlsecurity/source/framework/decryptorimpl.cxx                             |    4 -
 xmlsecurity/source/framework/encryptorimpl.cxx                             |    4 -
 xmlsecurity/source/framework/saxeventkeeperimpl.cxx                        |    4 -
 xmlsecurity/source/framework/signaturecreatorimpl.cxx                      |    4 -
 xmlsecurity/source/framework/signatureverifierimpl.cxx                     |    4 -
 xmlsecurity/source/framework/xmlencryptiontemplateimpl.cxx                 |    3 -
 xmlsecurity/source/framework/xmlsignaturetemplateimpl.cxx                  |    3 -
 xmlsecurity/source/xmlsec/mscrypt/securityenvironment_mscryptimpl.cxx      |    3 -
 xmlsecurity/source/xmlsec/mscrypt/seinitializer_mscryptimpl.cxx            |    4 -
 xmlsecurity/source/xmlsec/mscrypt/xmlencryption_mscryptimpl.cxx            |    3 -
 xmlsecurity/source/xmlsec/mscrypt/xmlsecuritycontext_mscryptimpl.cxx       |    3 -
 xmlsecurity/source/xmlsec/mscrypt/xmlsignature_mscryptimpl.cxx             |    3 -
 xmlsecurity/source/xmlsec/nss/nssinitializer.cxx                           |    4 -
 xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx              |    3 -
 xmlsecurity/source/xmlsec/nss/xmlencryption_nssimpl.cxx                    |    3 -
 xmlsecurity/source/xmlsec/nss/xmlsecuritycontext_nssimpl.cxx               |    3 -
 xmlsecurity/source/xmlsec/nss/xmlsignature_nssimpl.cxx                     |    3 -
 xmlsecurity/source/xmlsec/xmldocumentwrapper_xmlsecimpl.cxx                |    4 -
 xmlsecurity/source/xmlsec/xmlelementwrapper_xmlsecimpl.cxx                 |    4 -
 130 files changed, 160 insertions(+), 380 deletions(-)

New commits:
commit 96c26b0d9d10fa9bac3695222980d7145f0342d7
Author: Noel Grandin <noelgrandin at gmail.com>
Date:   Sun Nov 15 13:17:00 2015 +0200

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

diff --git a/avmedia/source/gstreamer/gstmanager.cxx b/avmedia/source/gstreamer/gstmanager.cxx
index 1f0bc61..d3617e5 100644
--- a/avmedia/source/gstreamer/gstmanager.cxx
+++ b/avmedia/source/gstreamer/gstmanager.cxx
@@ -92,8 +92,7 @@ sal_Bool SAL_CALL Manager::supportsService( const OUString& ServiceName )
 uno::Sequence< OUString > SAL_CALL Manager::getSupportedServiceNames(  )
     throw (uno::RuntimeException, std::exception)
 {
-    uno::Sequence< OUString > aRet(1);
-    aRet[0] = AVMEDIA_GST_MANAGER_SERVICENAME ;
+    uno::Sequence<OUString> aRet { AVMEDIA_GST_MANAGER_SERVICENAME };
 
     return aRet;
 }
diff --git a/avmedia/source/gstreamer/gstplayer.cxx b/avmedia/source/gstreamer/gstplayer.cxx
index ffac2987..6dd0f5c 100644
--- a/avmedia/source/gstreamer/gstplayer.cxx
+++ b/avmedia/source/gstreamer/gstplayer.cxx
@@ -947,8 +947,7 @@ sal_Bool SAL_CALL Player::supportsService( const OUString& ServiceName )
 uno::Sequence< OUString > SAL_CALL Player::getSupportedServiceNames()
     throw (uno::RuntimeException, std::exception)
 {
-    uno::Sequence< OUString > aRet(1);
-    aRet[0] = AVMEDIA_GST_PLAYER_SERVICENAME ;
+    uno::Sequence<OUString> aRet { AVMEDIA_GST_PLAYER_SERVICENAME };
 
     return aRet;
 }
diff --git a/avmedia/source/gstreamer/gstwindow.cxx b/avmedia/source/gstreamer/gstwindow.cxx
index bee5f0a..fc2a8ee 100644
--- a/avmedia/source/gstreamer/gstwindow.cxx
+++ b/avmedia/source/gstreamer/gstwindow.cxx
@@ -234,8 +234,7 @@ sal_Bool SAL_CALL Window::supportsService( const OUString& ServiceName )
 uno::Sequence< OUString > SAL_CALL Window::getSupportedServiceNames(  )
     throw (uno::RuntimeException, std::exception)
 {
-    uno::Sequence< OUString > aRet(1);
-    aRet[0] = AVMEDIA_GST_WINDOW_SERVICENAME ;
+    uno::Sequence<OUString> aRet { AVMEDIA_GST_WINDOW_SERVICENAME };
 
     return aRet;
 }
diff --git a/avmedia/source/quicktime/framegrabber.mm b/avmedia/source/quicktime/framegrabber.mm
index 401c17d..9166d86 100644
--- a/avmedia/source/quicktime/framegrabber.mm
+++ b/avmedia/source/quicktime/framegrabber.mm
@@ -128,8 +128,7 @@ sal_Bool SAL_CALL FrameGrabber::supportsService( const ::rtl::OUString& ServiceN
 uno::Sequence< ::rtl::OUString > SAL_CALL FrameGrabber::getSupportedServiceNames(  )
     throw (uno::RuntimeException)
 {
-    uno::Sequence< ::rtl::OUString > aRet(1);
-    aRet[0] = AVMEDIA_QUICKTIME_FRAMEGRABBER_SERVICENAME;
+    uno::Sequence<OUString> aRet { AVMEDIA_QUICKTIME_FRAMEGRABBER_SERVICENAME };
 
     return aRet;
 }
diff --git a/avmedia/source/quicktime/manager.mm b/avmedia/source/quicktime/manager.mm
index 25ae118..b708184 100644
--- a/avmedia/source/quicktime/manager.mm
+++ b/avmedia/source/quicktime/manager.mm
@@ -79,8 +79,7 @@ sal_Bool SAL_CALL Manager::supportsService( const ::rtl::OUString& ServiceName )
 uno::Sequence< ::rtl::OUString > SAL_CALL Manager::getSupportedServiceNames(  )
     throw (uno::RuntimeException)
 {
-    uno::Sequence< ::rtl::OUString > aRet(1);
-    aRet[0] = AVMEDIA_QUICKTIME_MANAGER_SERVICENAME;
+    uno::Sequence<OUString> aRet { AVMEDIA_QUICKTIME_MANAGER_SERVICENAME };
 
     return aRet;
 }
diff --git a/avmedia/source/quicktime/player.mm b/avmedia/source/quicktime/player.mm
index 9b84d96..5ef7568 100644
--- a/avmedia/source/quicktime/player.mm
+++ b/avmedia/source/quicktime/player.mm
@@ -391,8 +391,7 @@ sal_Bool SAL_CALL Player::supportsService( const ::rtl::OUString& ServiceName )
 uno::Sequence< ::rtl::OUString > SAL_CALL Player::getSupportedServiceNames(  )
     throw (uno::RuntimeException)
 {
-    uno::Sequence< ::rtl::OUString > aRet(1);
-    aRet[0] = AVMEDIA_QUICKTIME_PLAYER_SERVICENAME;
+    uno::Sequence<OUString> aRet { AVMEDIA_QUICKTIME_PLAYER_SERVICENAME };
 
     return aRet;
 }
diff --git a/avmedia/source/quicktime/window.mm b/avmedia/source/quicktime/window.mm
index 683610d..93b70c2 100644
--- a/avmedia/source/quicktime/window.mm
+++ b/avmedia/source/quicktime/window.mm
@@ -268,8 +268,7 @@ sal_Bool SAL_CALL Window::supportsService( const ::rtl::OUString& ServiceName )
 uno::Sequence< ::rtl::OUString > SAL_CALL Window::getSupportedServiceNames(  )
     throw (uno::RuntimeException)
 {
-    uno::Sequence< ::rtl::OUString > aRet(1);
-    aRet[0] = AVMEDIA_QUICKTIME_WINDOW_SERVICENAME;
+    uno::Sequence<OUString> aRet { AVMEDIA_QUICKTIME_WINDOW_SERVICENAME };
 
     return aRet;
 }
diff --git a/avmedia/source/win/framegrabber.cxx b/avmedia/source/win/framegrabber.cxx
index 9ef4047..4d6305c 100644
--- a/avmedia/source/win/framegrabber.cxx
+++ b/avmedia/source/win/framegrabber.cxx
@@ -213,8 +213,7 @@ sal_Bool SAL_CALL FrameGrabber::supportsService( const OUString& ServiceName )
 uno::Sequence< OUString > SAL_CALL FrameGrabber::getSupportedServiceNames(  )
     throw (uno::RuntimeException)
 {
-    uno::Sequence< OUString > aRet(1);
-    aRet[0] = AVMEDIA_WIN_FRAMEGRABBER_SERVICENAME ;
+    uno::Sequence<OUString> aRet { AVMEDIA_WIN_FRAMEGRABBER_SERVICENAME };
 
     return aRet;
 }
diff --git a/avmedia/source/win/manager.cxx b/avmedia/source/win/manager.cxx
index bab1b5b..d33c9c8 100644
--- a/avmedia/source/win/manager.cxx
+++ b/avmedia/source/win/manager.cxx
@@ -70,8 +70,7 @@ sal_Bool SAL_CALL Manager::supportsService( const OUString& ServiceName )
 uno::Sequence< OUString > SAL_CALL Manager::getSupportedServiceNames(  )
     throw (uno::RuntimeException)
 {
-    uno::Sequence< OUString > aRet(1);
-    aRet[0] = AVMEDIA_WIN_MANAGER_SERVICENAME ;
+    uno::Sequence<OUString> aRet { AVMEDIA_WIN_MANAGER_SERVICENAME };
 
     return aRet;
 }
diff --git a/avmedia/source/win/player.cxx b/avmedia/source/win/player.cxx
index b04eaf9..61b073d 100644
--- a/avmedia/source/win/player.cxx
+++ b/avmedia/source/win/player.cxx
@@ -476,8 +476,7 @@ sal_Bool SAL_CALL Player::supportsService( const OUString& ServiceName )
 uno::Sequence< OUString > SAL_CALL Player::getSupportedServiceNames(  )
     throw (uno::RuntimeException)
 {
-    uno::Sequence< OUString > aRet(1);
-    aRet[0] = AVMEDIA_WIN_PLAYER_SERVICENAME ;
+    uno::Sequence<OUString> aRet { AVMEDIA_WIN_PLAYER_SERVICENAME };
 
     return aRet;
 }
diff --git a/avmedia/source/win/window.cxx b/avmedia/source/win/window.cxx
index 1c1660c..341ea6a 100644
--- a/avmedia/source/win/window.cxx
+++ b/avmedia/source/win/window.cxx
@@ -597,8 +597,7 @@ sal_Bool SAL_CALL Window::supportsService( const OUString& ServiceName )
 uno::Sequence< OUString > SAL_CALL Window::getSupportedServiceNames(  )
     throw (uno::RuntimeException)
 {
-    uno::Sequence< OUString > aRet(1);
-    aRet[0] = AVMEDIA_WIN_WINDOW_SERVICENAME ;
+    uno::Sequence<OUString> aRet { AVMEDIA_WIN_WINDOW_SERVICENAME };
 
     return aRet;
 }
diff --git a/basctl/source/accessibility/accessibledialogcontrolshape.cxx b/basctl/source/accessibility/accessibledialogcontrolshape.cxx
index bb6175d..8f36275 100644
--- a/basctl/source/accessibility/accessibledialogcontrolshape.cxx
+++ b/basctl/source/accessibility/accessibledialogcontrolshape.cxx
@@ -312,8 +312,7 @@ sal_Bool AccessibleDialogControlShape::supportsService( const OUString& rService
 
 Sequence< OUString > AccessibleDialogControlShape::getSupportedServiceNames() throw (RuntimeException, std::exception)
 {
-    Sequence< OUString > aNames(1);
-    aNames[0] = "com.sun.star.drawing.AccessibleShape" ;
+    Sequence<OUString> aNames { "com.sun.star.drawing.AccessibleShape" };
     return aNames;
 }
 
diff --git a/basctl/source/accessibility/accessibledialogwindow.cxx b/basctl/source/accessibility/accessibledialogwindow.cxx
index 64b8475..e0a34ed 100644
--- a/basctl/source/accessibility/accessibledialogwindow.cxx
+++ b/basctl/source/accessibility/accessibledialogwindow.cxx
@@ -603,8 +603,7 @@ sal_Bool AccessibleDialogWindow::supportsService( const OUString& rServiceName )
 
 Sequence< OUString > AccessibleDialogWindow::getSupportedServiceNames() throw (RuntimeException, std::exception)
 {
-    Sequence< OUString > aNames(1);
-    aNames[0] = "com.sun.star.awt.AccessibleWindow" ;
+    Sequence<OUString> aNames { "com.sun.star.awt.AccessibleWindow" };
     return aNames;
 }
 
diff --git a/basegfx/source/tools/unopolypolygon.cxx b/basegfx/source/tools/unopolypolygon.cxx
index 4dae802..3639dee 100644
--- a/basegfx/source/tools/unopolypolygon.cxx
+++ b/basegfx/source/tools/unopolypolygon.cxx
@@ -448,8 +448,7 @@ namespace unotools
 
     uno::Sequence< OUString > SAL_CALL UnoPolyPolygon::getSupportedServiceNames()  throw( uno::RuntimeException, std::exception )
     {
-        uno::Sequence< OUString > aRet(1);
-        aRet[0] = SERVICE_NAME ;
+        uno::Sequence<OUString> aRet { SERVICE_NAME };
 
         return aRet;
     }
diff --git a/chart2/source/controller/dialogs/dlg_ChartType_UNO.cxx b/chart2/source/controller/dialogs/dlg_ChartType_UNO.cxx
index ee42cd0..d6dec7e 100644
--- a/chart2/source/controller/dialogs/dlg_ChartType_UNO.cxx
+++ b/chart2/source/controller/dialogs/dlg_ChartType_UNO.cxx
@@ -58,8 +58,7 @@ css::uno::Sequence<OUString> SAL_CALL ChartTypeUnoDlg::getSupportedServiceNames(
 
 uno::Sequence< OUString > ChartTypeUnoDlg::getSupportedServiceNames_Static()
 {
-    uno::Sequence< OUString > aSNS( 1 );
-    aSNS.getArray()[ 0 ] = CHART_TYPE_DIALOG_SERVICE_NAME;
+    uno::Sequence<OUString> aSNS { CHART_TYPE_DIALOG_SERVICE_NAME };
     return aSNS;
 }
 uno::Sequence< sal_Int8 > SAL_CALL ChartTypeUnoDlg::getImplementationId() throw( uno::RuntimeException, std::exception )
diff --git a/chart2/source/controller/dialogs/dlg_CreationWizard_UNO.cxx b/chart2/source/controller/dialogs/dlg_CreationWizard_UNO.cxx
index 2a6b79d..de804c4 100644
--- a/chart2/source/controller/dialogs/dlg_CreationWizard_UNO.cxx
+++ b/chart2/source/controller/dialogs/dlg_CreationWizard_UNO.cxx
@@ -82,8 +82,7 @@ css::uno::Sequence< OUString > SAL_CALL CreationWizardUnoDlg::getSupportedServic
 
 uno::Sequence< OUString > CreationWizardUnoDlg::getSupportedServiceNames_Static()
 {
-    uno::Sequence< OUString > aSNS( 1 );
-    aSNS.getArray()[ 0 ] = CHART_WIZARD_DIALOG_SERVICE_NAME;
+    uno::Sequence<OUString> aSNS { CHART_WIZARD_DIALOG_SERVICE_NAME };
     return aSNS;
 }
 
diff --git a/chart2/source/controller/main/ChartFrameloader.cxx b/chart2/source/controller/main/ChartFrameloader.cxx
index 8e8c7d5..adf74ee 100644
--- a/chart2/source/controller/main/ChartFrameloader.cxx
+++ b/chart2/source/controller/main/ChartFrameloader.cxx
@@ -81,8 +81,7 @@ css::uno::Sequence< OUString > SAL_CALL ChartFrameLoader::getSupportedServiceNam
 
 uno::Sequence< OUString > ChartFrameLoader::getSupportedServiceNames_Static()
 {
-    uno::Sequence< OUString > aSNS( 1 );
-    aSNS.getArray()[ 0 ] = CHART_FRAMELOADER_SERVICE_NAME;
+    uno::Sequence<OUString> aSNS { CHART_FRAMELOADER_SERVICE_NAME };
     return aSNS;
 }
 
diff --git a/chart2/source/controller/main/ElementSelector.cxx b/chart2/source/controller/main/ElementSelector.cxx
index 2da31d2..4d6e114 100644
--- a/chart2/source/controller/main/ElementSelector.cxx
+++ b/chart2/source/controller/main/ElementSelector.cxx
@@ -268,8 +268,7 @@ css::uno::Sequence< OUString > SAL_CALL ElementSelectorToolbarController::getSup
 
 Sequence< OUString > ElementSelectorToolbarController::getSupportedServiceNames_Static()
 {
-    Sequence< OUString > aServices(1);
-    aServices[ 0 ] = "com.sun.star.frame.ToolbarController";
+    Sequence<OUString> aServices { "com.sun.star.frame.ToolbarController" };
     return aServices;
 }
 ElementSelectorToolbarController::ElementSelectorToolbarController( const uno::Reference< uno::XComponentContext > & xContext )
diff --git a/chart2/source/model/main/CartesianCoordinateSystem.cxx b/chart2/source/model/main/CartesianCoordinateSystem.cxx
index 5d44bf1..4e1409f 100644
--- a/chart2/source/model/main/CartesianCoordinateSystem.cxx
+++ b/chart2/source/model/main/CartesianCoordinateSystem.cxx
@@ -83,8 +83,7 @@ uno::Reference< util::XCloneable > SAL_CALL CartesianCoordinateSystem::createClo
 // ____ XServiceInfo ____
 Sequence< OUString > CartesianCoordinateSystem::getSupportedServiceNames_Static()
 {
-    Sequence< OUString > aServices( 1 );
-    aServices[ 0 ] = CHART2_COOSYSTEM_CARTESIAN_SERVICE_NAME;
+    Sequence<OUString> aServices { CHART2_COOSYSTEM_CARTESIAN_SERVICE_NAME };
     return aServices;
 }
 
diff --git a/chart2/source/model/main/PolarCoordinateSystem.cxx b/chart2/source/model/main/PolarCoordinateSystem.cxx
index fe6e8c9..96c9bf2 100644
--- a/chart2/source/model/main/PolarCoordinateSystem.cxx
+++ b/chart2/source/model/main/PolarCoordinateSystem.cxx
@@ -83,8 +83,7 @@ uno::Reference< util::XCloneable > SAL_CALL PolarCoordinateSystem::createClone()
 // ____ XServiceInfo ____
 Sequence< OUString > PolarCoordinateSystem::getSupportedServiceNames_Static()
 {
-    Sequence< OUString > aServices( 1 );
-    aServices[ 0 ] = CHART2_COOSYSTEM_POLAR_SERVICE_NAME;
+    Sequence<OUString> aServices { CHART2_COOSYSTEM_POLAR_SERVICE_NAME };
     return aServices;
 }
 
diff --git a/chart2/source/tools/ConfigColorScheme.cxx b/chart2/source/tools/ConfigColorScheme.cxx
index 5288073..51fb7cd 100644
--- a/chart2/source/tools/ConfigColorScheme.cxx
+++ b/chart2/source/tools/ConfigColorScheme.cxx
@@ -168,8 +168,7 @@ void ConfigColorScheme::notify( const OUString & rPropertyName )
 
 Sequence< OUString > ConfigColorScheme::getSupportedServiceNames_Static()
 {
-    Sequence< OUString > aServices( 1 );
-    aServices[ 0 ] = "com.sun.star.chart2.ColorScheme";
+    Sequence<OUString> aServices { "com.sun.star.chart2.ColorScheme" };
     return aServices;
 }
 
diff --git a/chart2/source/tools/DataSource.cxx b/chart2/source/tools/DataSource.cxx
index 39c5b64..c2a03f9 100644
--- a/chart2/source/tools/DataSource.cxx
+++ b/chart2/source/tools/DataSource.cxx
@@ -65,8 +65,7 @@ void SAL_CALL DataSource::setData( const Sequence< Reference< chart2::data::XLab
 
 Sequence< OUString > DataSource::getSupportedServiceNames_Static()
 {
-    Sequence< OUString > aServices( 1 );
-    aServices[ 0 ] = "com.sun.star.chart2.data.DataSource";
+    Sequence<OUString> aServices { "com.sun.star.chart2.data.DataSource" };
     return aServices;
 }
 
diff --git a/chart2/source/tools/InternalDataProvider.cxx b/chart2/source/tools/InternalDataProvider.cxx
index 44b386c..7ff00f1 100644
--- a/chart2/source/tools/InternalDataProvider.cxx
+++ b/chart2/source/tools/InternalDataProvider.cxx
@@ -1545,8 +1545,7 @@ Reference< util::XCloneable > SAL_CALL InternalDataProvider::createClone()
 
 Sequence< OUString > InternalDataProvider::getSupportedServiceNames_Static()
 {
-    Sequence< OUString > aServices( 1 );
-    aServices[ 0 ] = "com.sun.star.chart2.data.DataProvider";
+    Sequence<OUString> aServices { "com.sun.star.chart2.data.DataProvider" };
     return aServices;
 }
 
diff --git a/chart2/source/tools/LabeledDataSequence.cxx b/chart2/source/tools/LabeledDataSequence.cxx
index 85fab94..7acb72b 100644
--- a/chart2/source/tools/LabeledDataSequence.cxx
+++ b/chart2/source/tools/LabeledDataSequence.cxx
@@ -152,8 +152,7 @@ void SAL_CALL LabeledDataSequence::removeModifyListener( const Reference< util::
 
 Sequence< OUString > LabeledDataSequence::getSupportedServiceNames_Static()
 {
-    Sequence< OUString > aServices( 1 );
-    aServices[ 0 ] = "com.sun.star.chart2.data.LabeledDataSequence";
+    Sequence<OUString> aServices { "com.sun.star.chart2.data.LabeledDataSequence" };
     return aServices;
 }
 
diff --git a/chart2/source/tools/NameContainer.cxx b/chart2/source/tools/NameContainer.cxx
index 8961dd7..107b289 100644
--- a/chart2/source/tools/NameContainer.cxx
+++ b/chart2/source/tools/NameContainer.cxx
@@ -73,8 +73,7 @@ sal_Bool SAL_CALL NameContainer::supportsService( const OUString& ServiceName )
 Sequence< OUString > SAL_CALL NameContainer::getSupportedServiceNames()
     throw( ::com::sun::star::uno::RuntimeException, std::exception )
 {
-    Sequence< OUString > aSNS( 1 );
-    aSNS.getArray()[ 0 ] = m_aServicename;
+    Sequence<OUString> aSNS { m_aServicename };
     return aSNS;
 }
 
diff --git a/chart2/source/view/main/ChartView.cxx b/chart2/source/view/main/ChartView.cxx
index 19f2521..9814f3c 100644
--- a/chart2/source/view/main/ChartView.cxx
+++ b/chart2/source/view/main/ChartView.cxx
@@ -1404,8 +1404,7 @@ css::uno::Sequence< OUString > SAL_CALL ChartView::getSupportedServiceNames()
 
 uno::Sequence< OUString > ChartView::getSupportedServiceNames_Static()
 {
-    uno::Sequence< OUString > aSNS( 1 );
-    aSNS.getArray()[ 0 ] = CHART_VIEW_SERVICE_NAME;
+    uno::Sequence<OUString> aSNS { CHART_VIEW_SERVICE_NAME };
     return aSNS;
 }
 
diff --git a/cppuhelper/qa/propertysetmixin/comp_propertysetmixin.cxx b/cppuhelper/qa/propertysetmixin/comp_propertysetmixin.cxx
index 0d6c36b..8e0e9bf 100644
--- a/cppuhelper/qa/propertysetmixin/comp_propertysetmixin.cxx
+++ b/cppuhelper/qa/propertysetmixin/comp_propertysetmixin.cxx
@@ -168,8 +168,7 @@ css::uno::Any Empty2::queryInterface(css::uno::Type const & type)
 }
 
 css::uno::Sequence< rtl::OUString > sequenceThird() {
-    css::uno::Sequence< rtl::OUString > s(1);
-    s[0] = rtl::OUString("Third");
+    css::uno::Sequence<OUString> s { rtl::OUString("Third") };
     return s;
 }
 
diff --git a/cppuhelper/source/typemanager.cxx b/cppuhelper/source/typemanager.cxx
index aa93761..12a88dc 100644
--- a/cppuhelper/source/typemanager.cxx
+++ b/cppuhelper/source/typemanager.cxx
@@ -1978,8 +1978,7 @@ css::uno::Sequence< rtl::OUString >
 cppuhelper::TypeManager::getSupportedServiceNames()
     throw (css::uno::RuntimeException, std::exception)
 {
-    css::uno::Sequence< rtl::OUString > names(1);
-    names[0] = "com.sun.star.reflection.TypeDescriptionManager"; //TODO
+    css::uno::Sequence<OUString> names { "com.sun.star.reflection.TypeDescriptionManager" }; //TODO
     return names;
 }
 
diff --git a/cppuhelper/test/testcmp/TestComponent.cxx b/cppuhelper/test/testcmp/TestComponent.cxx
index f3922b7..cca70c8 100644
--- a/cppuhelper/test/testcmp/TestComponent.cxx
+++ b/cppuhelper/test/testcmp/TestComponent.cxx
@@ -102,8 +102,7 @@ uno::Reference<uno::XInterface> SAL_CALL TestComponent::create(
 
 uno::Sequence<rtl::OUString> SAL_CALL TestComponent::getSupportedServiceNames_Static()
 {
-    uno::Sequence<rtl::OUString> serviceNames(1);
-    serviceNames[0] = rtl::OUString("com.sun.star.lang.ServiceInfo");
+    uno::Sequence<OUString> serviceNames { rtl::OUString("com.sun.star.lang.ServiceInfo") };
 
     return serviceNames;
 }
diff --git a/cui/source/customize/cfg.cxx b/cui/source/customize/cfg.cxx
index 71adb03..c7d4a01 100644
--- a/cui/source/customize/cfg.cxx
+++ b/cui/source/customize/cfg.cxx
@@ -3435,8 +3435,7 @@ IMPL_LINK_TYPED( SvxToolbarConfigPage, EntrySelectHdl, MenuButton *, pButton, vo
                 bNeedsApply = true;
             }
 
-            uno::Sequence< OUString > aURLSeq( 1 );
-            aURLSeq[ 0 ] = pEntry->GetCommand();
+            uno::Sequence<OUString> aURLSeq { pEntry->GetCommand() };
 
             try
             {
@@ -3534,8 +3533,7 @@ IMPL_LINK_TYPED( SvxToolbarConfigPage, EntrySelectHdl, MenuButton *, pButton, vo
                     uno::Sequence< uno::Reference< graphic::XGraphic > >
                         aGraphicSeq( 1 );
 
-                    uno::Sequence< OUString > aURLSeq( 1 );
-                    aURLSeq[ 0 ] = pEntry->GetCommand();
+                    uno::Sequence<OUString> aURLSeq { pEntry->GetCommand() };
 
                     if ( !pEntry->GetBackupGraphic().is() )
                     {
@@ -3604,8 +3602,7 @@ IMPL_LINK_TYPED( SvxToolbarConfigPage, EntrySelectHdl, MenuButton *, pButton, vo
                 aGraphicSeq( 1 );
             aGraphicSeq[ 0 ] = backup;
 
-            uno::Sequence< OUString > aURLSeq( 1 );
-            aURLSeq[ 0 ] = pEntry->GetCommand();
+            uno::Sequence<OUString> aURLSeq { pEntry->GetCommand() };
 
             try
             {
@@ -5494,8 +5491,7 @@ bool SvxIconSelectorDialog::ImportGraphic( const OUString& aURL )
 
                     pTbSymbol->SetItemData(
                         nId, static_cast< void * > ( xGraphic.get() ) );
-                    uno::Sequence< OUString > aImportURL( 1 );
-                    aImportURL[ 0 ] = aURL;
+                    uno::Sequence<OUString> aImportURL { aURL };
                     uno::Sequence< uno::Reference<graphic::XGraphic > > aImportGraph( 1 );
                     aImportGraph[ 0 ] = xGraphic;
                     m_xImportedImageManager->insertImages( GetImageType(), aImportURL, aImportGraph );
diff --git a/dbaccess/source/core/dataaccess/documentdefinition.cxx b/dbaccess/source/core/dataaccess/documentdefinition.cxx
index 5147559..c2c496d 100644
--- a/dbaccess/source/core/dataaccess/documentdefinition.cxx
+++ b/dbaccess/source/core/dataaccess/documentdefinition.cxx
@@ -1165,8 +1165,7 @@ void ODocumentDefinition::onCommandInsert( const OUString& _sURL, const Referenc
     {
         OSL_FAIL( "Content::onCommandInsert - property value missing!" );
 
-        Sequence< OUString > aProps( 1 );
-        aProps[ 0 ] = PROPERTY_URL;
+        Sequence<OUString> aProps { PROPERTY_URL };
         ucbhelper::cancelCommandExecution(
             makeAny( MissingPropertiesException(
                                 OUString(),
diff --git a/desktop/source/deployment/inc/dp_ucb.h b/desktop/source/deployment/inc/dp_ucb.h
index ee68c63..324e398 100644
--- a/desktop/source/deployment/inc/dp_ucb.h
+++ b/desktop/source/deployment/inc/dp_ucb.h
@@ -39,8 +39,7 @@ struct DESKTOP_DEPLOYMENTMISC_DLLPUBLIC StrTitle
 {
     static css::uno::Sequence< OUString > getTitleSequence()
     {
-        css::uno::Sequence< OUString > aSeq( 1 );
-        aSeq[ 0 ] = "Title";
+        css::uno::Sequence<OUString> aSeq { "Title" };
         return aSeq;
     }
     static OUString getTitle( ::ucbhelper::Content &rContent )
diff --git a/extensions/source/config/ldap/ldapuserprofilebe.cxx b/extensions/source/config/ldap/ldapuserprofilebe.cxx
index f86cb8b..daabc23 100644
--- a/extensions/source/config/ldap/ldapuserprofilebe.cxx
+++ b/extensions/source/config/ldap/ldapuserprofilebe.cxx
@@ -226,8 +226,7 @@ OUString SAL_CALL LdapUserProfileBe::getImplementationName()
 
 uno::Sequence<OUString> SAL_CALL LdapUserProfileBe::getLdapUserProfileBeServiceNames()
 {
-    uno::Sequence<OUString> aServices(1) ;
-    aServices[0] = "com.sun.star.configuration.backend.LdapUserProfileBe";
+    uno::Sequence<OUString> aServices { "com.sun.star.configuration.backend.LdapUserProfileBe" };
     return aServices ;
 }
 
diff --git a/extensions/source/propctrlr/eformspropertyhandler.cxx b/extensions/source/propctrlr/eformspropertyhandler.cxx
index 8d8e514..d4870a4 100644
--- a/extensions/source/propctrlr/eformspropertyhandler.cxx
+++ b/extensions/source/propctrlr/eformspropertyhandler.cxx
@@ -398,8 +398,7 @@ namespace pcr
         if ( !m_pHelper.get() )
             return Sequence< OUString >();
 
-        Sequence< OUString > aReturn( 1 );
-        aReturn[ 0 ] = PROPERTY_INPUT_REQUIRED;
+        Sequence<OUString> aReturn { PROPERTY_INPUT_REQUIRED };
         return aReturn;
     }
 
diff --git a/extensions/source/propctrlr/submissionhandler.cxx b/extensions/source/propctrlr/submissionhandler.cxx
index 3c37ad0..f523cc7 100644
--- a/extensions/source/propctrlr/submissionhandler.cxx
+++ b/extensions/source/propctrlr/submissionhandler.cxx
@@ -215,8 +215,7 @@ namespace pcr
         if ( !m_pHelper.get() )
             return Sequence< OUString >();
 
-        Sequence< OUString > aReturn( 1 );
-        aReturn[ 0 ] = PROPERTY_XFORMS_BUTTONTYPE;
+        Sequence<OUString> aReturn { PROPERTY_XFORMS_BUTTONTYPE };
         return aReturn;
     }
 
diff --git a/filter/source/flash/swfdialog.cxx b/filter/source/flash/swfdialog.cxx
index ec79ca4..5d8f269 100644
--- a/filter/source/flash/swfdialog.cxx
+++ b/filter/source/flash/swfdialog.cxx
@@ -55,9 +55,7 @@ OUString SWFDialog_getImplementationName ()
 Sequence< OUString > SAL_CALL SWFDialog_getSupportedServiceNames()
     throw (RuntimeException)
 {
-    Sequence < OUString > aRet(1);
-    OUString* pArray = aRet.getArray();
-    pArray[0] = SERVICE_NAME;
+    Sequence<OUString> aRet { SERVICE_NAME };
     return aRet;
 }
 
diff --git a/filter/source/flash/swffilter.cxx b/filter/source/flash/swffilter.cxx
index 2975e08..37b9a30 100644
--- a/filter/source/flash/swffilter.cxx
+++ b/filter/source/flash/swffilter.cxx
@@ -506,9 +506,7 @@ OUString FlashExportFilter_getImplementationName ()
 Sequence< OUString > SAL_CALL FlashExportFilter_getSupportedServiceNames(  )
     throw (RuntimeException)
 {
-    Sequence < OUString > aRet(1);
-    OUString* pArray = aRet.getArray();
-    pArray[0] =  "com.sun.star.document.ExportFilter";
+    Sequence<OUString> aRet { "com.sun.star.document.ExportFilter" };
     return aRet;
 }
 
diff --git a/filter/source/msfilter/mstoolbar.cxx b/filter/source/msfilter/mstoolbar.cxx
index be74c01..f0e6fd2 100644
--- a/filter/source/msfilter/mstoolbar.cxx
+++ b/filter/source/msfilter/mstoolbar.cxx
@@ -52,8 +52,7 @@ void CustomToolBarImportHelper::applyIcons()
 {
     for ( std::vector< iconcontrolitem >::iterator it = iconcommands.begin(); it != iconcommands.end(); ++it )
     {
-        uno::Sequence< OUString > commands(1);
-        commands[ 0 ] = it->sCommand;
+        uno::Sequence<OUString> commands { it->sCommand };
         uno::Sequence< uno::Reference< graphic::XGraphic > > images(1);
         images[ 0 ] = it->image;
 
@@ -314,8 +313,7 @@ bool TBCData::ImportToolBarControl( CustomToolBarImportHelper& helper, std::vect
                 OUString sBuiltInCmd = helper.MSOTCIDToOOCommand(  *pSpecificInfo->getBtnFace() );
                 if ( !sBuiltInCmd.isEmpty() )
                 {
-                    uno::Sequence< OUString> sCmds(1);
-                    sCmds[ 0 ] = sBuiltInCmd;
+                    uno::Sequence<OUString> sCmds { sBuiltInCmd };
                     uno::Reference< ui::XImageManager > xImageManager( helper.getAppCfgManager()->getImageManager(), uno::UNO_QUERY_THROW );
                     // 0 = default image size
                     uno::Sequence< uno::Reference< graphic::XGraphic > > sImages = xImageManager->getImages( 0, sCmds );
diff --git a/filter/source/msfilter/msvbahelper.cxx b/filter/source/msfilter/msvbahelper.cxx
index b55eadd..278112b 100644
--- a/filter/source/msfilter/msvbahelper.cxx
+++ b/filter/source/msfilter/msvbahelper.cxx
@@ -509,8 +509,7 @@ bool executeMacro( SfxObjectShell* pShell, const OUString& sMacroName, uno::Sequ
 
 uno::Sequence< OUString > VBAMacroResolver_getSupportedServiceNames()
 {
-    uno::Sequence< OUString > aServiceNames( 1 );
-    aServiceNames[ 0 ] = "com.sun.star.script.vba.VBAMacroResolver";
+    uno::Sequence<OUString> aServiceNames { "com.sun.star.script.vba.VBAMacroResolver" };
     return aServiceNames;
 }
 
diff --git a/filter/source/pdf/pdfdialog.cxx b/filter/source/pdf/pdfdialog.cxx
index febe61f..4c517cd 100644
--- a/filter/source/pdf/pdfdialog.cxx
+++ b/filter/source/pdf/pdfdialog.cxx
@@ -47,9 +47,7 @@ OUString PDFDialog_getImplementationName ()
 Sequence< OUString > SAL_CALL PDFDialog_getSupportedServiceNames()
     throw (RuntimeException)
 {
-    Sequence < OUString > aRet(1);
-    OUString* pArray = aRet.getArray();
-    pArray[0] = SERVICE_NAME;
+    Sequence<OUString> aRet { SERVICE_NAME };
     return aRet;
 }
 
diff --git a/filter/source/pdf/pdffilter.cxx b/filter/source/pdf/pdffilter.cxx
index 86af0bb..6d24356 100644
--- a/filter/source/pdf/pdffilter.cxx
+++ b/filter/source/pdf/pdffilter.cxx
@@ -199,9 +199,7 @@ OUString PDFFilter_getImplementationName ()
 
 Sequence< OUString > SAL_CALL PDFFilter_getSupportedServiceNames(  ) throw (RuntimeException)
 {
-    Sequence < OUString > aRet(1);
-    OUString* pArray = aRet.getArray();
-    pArray[0] = "com.sun.star.document.PDFFilter";
+    Sequence<OUString> aRet { "com.sun.star.document.PDFFilter" };
     return aRet;
 }
 
diff --git a/filter/source/pdf/pdfinteract.cxx b/filter/source/pdf/pdfinteract.cxx
index bb01fc6..bae82a8 100644
--- a/filter/source/pdf/pdfinteract.cxx
+++ b/filter/source/pdf/pdfinteract.cxx
@@ -68,9 +68,7 @@ OUString PDFInteractionHandler_getImplementationName ()
 
 Sequence< OUString > SAL_CALL PDFInteractionHandler_getSupportedServiceNames(  ) throw (RuntimeException)
 {
-    Sequence < OUString > aRet(1);
-    OUString* pArray = aRet.getArray();
-    pArray[0] = "com.sun.star.filter.pdfexport.PDFExportInteractionHandler";
+    Sequence<OUString> aRet { "com.sun.star.filter.pdfexport.PDFExportInteractionHandler" };
     return aRet;
 }
 
diff --git a/filter/source/placeware/filter.cxx b/filter/source/placeware/filter.cxx
index 78caa2f..2c257f1 100644
--- a/filter/source/placeware/filter.cxx
+++ b/filter/source/placeware/filter.cxx
@@ -151,9 +151,7 @@ OUString PlaceWareExportFilter_getImplementationName ()
 Sequence< OUString > SAL_CALL PlaceWareExportFilter_getSupportedServiceNames(  )
     throw (RuntimeException)
 {
-    Sequence < OUString > aRet(1);
-    OUString* pArray = aRet.getArray();
-    pArray[0] =  "com.sun.star.document.ExportFilter";
+    Sequence<OUString> aRet { "com.sun.star.document.ExportFilter" };
     return aRet;
 }
 
diff --git a/filter/source/t602/t602filter.cxx b/filter/source/t602/t602filter.cxx
index 715dc91..86ff3a5 100644
--- a/filter/source/t602/t602filter.cxx
+++ b/filter/source/t602/t602filter.cxx
@@ -1188,9 +1188,7 @@ OUString T602ImportFilterDialog_getImplementationName ()
 Sequence< OUString > SAL_CALL T602ImportFilterDialog_getSupportedServiceNames(  )
     throw (RuntimeException)
 {
-    Sequence < OUString > aRet(1);
-    OUString* pArray = aRet.getArray();
-    pArray[0] =  "com.sun.star.ui.dialogs.FilterOptionsDialog";
+    Sequence<OUString> aRet { "com.sun.star.ui.dialogs.FilterOptionsDialog" };
     return aRet;
 }
 
diff --git a/forms/source/component/FormComponent.cxx b/forms/source/component/FormComponent.cxx
index 5bcf79e..d3cbc30 100644
--- a/forms/source/component/FormComponent.cxx
+++ b/forms/source/component/FormComponent.cxx
@@ -1535,8 +1535,7 @@ css::uno::Sequence<OUString> SAL_CALL OBoundControlModel::getSupportedServiceNam
 
 Sequence< OUString > SAL_CALL OBoundControlModel::getSupportedServiceNames_Static() throw( RuntimeException )
 {
-    Sequence< OUString > aOwnServiceNames( 1 );
-    aOwnServiceNames[ 0 ] = "com.sun.star.form.DataAwareControlModel";
+    Sequence<OUString> aOwnServiceNames { "com.sun.star.form.DataAwareControlModel" };
     return ::comphelper::concatSequences(
         OControlModel::getSupportedServiceNames_Static(),
         aOwnServiceNames
diff --git a/fpicker/source/office/OfficeFilePicker.cxx b/fpicker/source/office/OfficeFilePicker.cxx
index 19b4030..938e2a8 100644
--- a/fpicker/source/office/OfficeFilePicker.cxx
+++ b/fpicker/source/office/OfficeFilePicker.cxx
@@ -1135,9 +1135,7 @@ Sequence< OUString > SAL_CALL SvtFilePicker::getSupportedServiceNames() throw( R
 /* Helper for XServiceInfo */
 Sequence< OUString > SvtFilePicker::impl_getStaticSupportedServiceNames()
 {
-    Sequence< OUString > seqServiceNames( 1 );
-    OUString* pArray = seqServiceNames.getArray();
-    pArray[0] = "com.sun.star.ui.dialogs.OfficeFilePicker";
+    Sequence<OUString> seqServiceNames { "com.sun.star.ui.dialogs.OfficeFilePicker" };
     return seqServiceNames ;
 }
 
@@ -1204,9 +1202,7 @@ Sequence< OUString > SAL_CALL SvtRemoteFilePicker::getSupportedServiceNames() th
 /* Helper for XServiceInfo */
 Sequence< OUString > SvtRemoteFilePicker::impl_getStaticSupportedServiceNames()
 {
-    Sequence< OUString > seqServiceNames( 1 );
-    OUString* pArray = seqServiceNames.getArray();
-    pArray[0] = "com.sun.star.ui.dialogs.RemoteFilePicker";
+    Sequence<OUString> seqServiceNames { "com.sun.star.ui.dialogs.RemoteFilePicker" };
     return seqServiceNames ;
 }
 
diff --git a/framework/source/uielement/popuptoolbarcontroller.cxx b/framework/source/uielement/popuptoolbarcontroller.cxx
index 7b36967..cdf07a1 100644
--- a/framework/source/uielement/popuptoolbarcontroller.cxx
+++ b/framework/source/uielement/popuptoolbarcontroller.cxx
@@ -284,9 +284,7 @@ sal_Bool WizardsToolbarController::supportsService(OUString const & rServiceName
 css::uno::Sequence<OUString> WizardsToolbarController::getSupportedServiceNames()
     throw (css::uno::RuntimeException)
 {
-    css::uno::Sequence< OUString > aRet(1);
-    OUString* pArray = aRet.getArray();
-    pArray[0] = "com.sun.star.frame.ToolbarController";
+    css::uno::Sequence<OUString> aRet { "com.sun.star.frame.ToolbarController" };
     return aRet;
 }
 
@@ -329,9 +327,7 @@ sal_Bool OpenToolbarController::supportsService(OUString const & rServiceName)
 css::uno::Sequence<OUString> OpenToolbarController::getSupportedServiceNames()
     throw (css::uno::RuntimeException)
 {
-    css::uno::Sequence< OUString > aRet(1);
-    OUString* pArray = aRet.getArray();
-    pArray[0] = "com.sun.star.frame.ToolbarController";
+    css::uno::Sequence<OUString> aRet { "com.sun.star.frame.ToolbarController" };
     return aRet;
 }
 
@@ -381,9 +377,7 @@ sal_Bool NewToolbarController::supportsService(OUString const & rServiceName)
 css::uno::Sequence<OUString> NewToolbarController::getSupportedServiceNames()
     throw (css::uno::RuntimeException)
 {
-    css::uno::Sequence< OUString > aRet(1);
-    OUString* pArray = aRet.getArray();
-    pArray[0] = "com.sun.star.frame.ToolbarController";
+    css::uno::Sequence<OUString> aRet { "com.sun.star.frame.ToolbarController" };
     return aRet;
 }
 
diff --git a/io/source/stm/odata.cxx b/io/source/stm/odata.cxx
index d8ac930..56b15f4 100644
--- a/io/source/stm/odata.cxx
+++ b/io/source/stm/odata.cxx
@@ -875,8 +875,7 @@ OUString ODataOutputStream_getImplementationName()
 
 Sequence<OUString> ODataOutputStream_getSupportedServiceNames()
 {
-    Sequence<OUString> aRet(1);
-    aRet.getArray()[0] =  "com.sun.star.io.DataOutputStream";
+    Sequence<OUString> aRet { "com.sun.star.io.DataOutputStream" };
     return aRet;
 }
 
diff --git a/linguistic/source/convdic.cxx b/linguistic/source/convdic.cxx
index 2be418d..aa60ac3 100644
--- a/linguistic/source/convdic.cxx
+++ b/linguistic/source/convdic.cxx
@@ -672,8 +672,7 @@ uno::Sequence< OUString > SAL_CALL ConvDic::getSupportedServiceNames(  )
 uno::Sequence< OUString > ConvDic::getSupportedServiceNames_Static()
     throw()
 {
-    uno::Sequence< OUString > aSNS( 1 );
-    aSNS.getArray()[0] = SN_CONV_DICTIONARY ;
+    uno::Sequence<OUString> aSNS { SN_CONV_DICTIONARY };
     return aSNS;
 }
 
diff --git a/mysqlc/source/mysqlc_connection.cxx b/mysqlc/source/mysqlc_connection.cxx
index 5c3fd7c..44cee42 100644
--- a/mysqlc/source/mysqlc_connection.cxx
+++ b/mysqlc/source/mysqlc_connection.cxx
@@ -219,8 +219,7 @@ rtl::OUString OConnection::getImplementationName() throw (css::uno::RuntimeExcep
 css::uno::Sequence<rtl::OUString> OConnection::getSupportedServiceNames()
     throw (css::uno::RuntimeException, std::exception)
 {
-    css::uno::Sequence<rtl::OUString> s(1);
-    s[0] = "com.sun.star.sdbc.Connection";
+    css::uno::Sequence<OUString> s { "com.sun.star.sdbc.Connection" };
     return s;
 }
 
diff --git a/mysqlc/source/mysqlc_driver.cxx b/mysqlc/source/mysqlc_driver.cxx
index 3a31685..ce2c363 100644
--- a/mysqlc/source/mysqlc_driver.cxx
+++ b/mysqlc/source/mysqlc_driver.cxx
@@ -85,8 +85,7 @@ Sequence< rtl::OUString > MysqlCDriver::getSupportedServiceNames_Static()
     OSL_TRACE("MysqlCDriver::getSupportedServiceNames_Static");
     // which service is supported
     // for more information @see com.sun.star.sdbc.Driver
-    Sequence< rtl::OUString > aSNS(1);
-    aSNS[0] = "com.sun.star.sdbc.Driver";
+    Sequence<OUString> aSNS { "com.sun.star.sdbc.Driver" };
     return aSNS;
 }
 
diff --git a/mysqlc/source/mysqlc_preparedstatement.cxx b/mysqlc/source/mysqlc_preparedstatement.cxx
index 96d756f..cfc3042 100644
--- a/mysqlc/source/mysqlc_preparedstatement.cxx
+++ b/mysqlc/source/mysqlc_preparedstatement.cxx
@@ -66,8 +66,7 @@ rtl::OUString OPreparedStatement::getImplementationName()
 css::uno::Sequence<rtl::OUString> OPreparedStatement::getSupportedServiceNames()
     throw (css::uno::RuntimeException, std::exception)
 {
-    css::uno::Sequence<rtl::OUString> s(1);
-    s[0] = "com.sun.star.sdbc.PreparedStatement";
+    css::uno::Sequence<OUString> s { "com.sun.star.sdbc.PreparedStatement" };
     return s;
 }
 
diff --git a/mysqlc/source/mysqlc_statement.cxx b/mysqlc/source/mysqlc_statement.cxx
index 859f7a9..d9e58b0 100644
--- a/mysqlc/source/mysqlc_statement.cxx
+++ b/mysqlc/source/mysqlc_statement.cxx
@@ -392,8 +392,7 @@ rtl::OUString OStatement::getImplementationName() throw (css::uno::RuntimeExcept
 css::uno::Sequence<rtl::OUString> OStatement::getSupportedServiceNames()
     throw (css::uno::RuntimeException, std::exception)
 {
-    css::uno::Sequence<rtl::OUString> s(1);
-    s[0] = "com.sun.star.sdbc.Statement";
+    css::uno::Sequence<OUString> s { "com.sun.star.sdbc.Statement" };
     return s;
 }
 
diff --git a/odk/examples/DevelopersGuide/Database/DriverSkeleton/SDriver.cxx b/odk/examples/DevelopersGuide/Database/DriverSkeleton/SDriver.cxx
index a1950a4..671fbd2 100644
--- a/odk/examples/DevelopersGuide/Database/DriverSkeleton/SDriver.cxx
+++ b/odk/examples/DevelopersGuide/Database/DriverSkeleton/SDriver.cxx
@@ -88,8 +88,7 @@ Sequence< ::rtl::OUString > SkeletonDriver::getSupportedServiceNames_Static(  )
 {
     /// which service is supported
     /// for more information @see com.sun.star.sdbc.Driver
-    Sequence< ::rtl::OUString > aSNS( 1 );
-    aSNS[0] = ::rtl::OUString("com.sun.star.sdbc.Driver");
+    Sequence<OUString> aSNS { ::rtl::OUString("com.sun.star.sdbc.Driver") };
     return aSNS;
 }
 
diff --git a/odk/examples/cpp/complextoolbarcontrols/exports.cxx b/odk/examples/cpp/complextoolbarcontrols/exports.cxx
index 35a4f39..f66191e 100644
--- a/odk/examples/cpp/complextoolbarcontrols/exports.cxx
+++ b/odk/examples/cpp/complextoolbarcontrols/exports.cxx
@@ -39,14 +39,12 @@ SAL_DLLPUBLIC_EXPORT void* SAL_CALL component_getFactory(const sal_Char* pImplNa
 
     if (sImplName == MYLISTENER_IMPLEMENTATIONNAME)
     {
-        css::uno::Sequence< ::rtl::OUString > lNames(1);
-        lNames[0] = MYLISTENER_IMPLEMENTATIONNAME;
+        css::uno::Sequence<OUString> lNames { MYLISTENER_IMPLEMENTATIONNAME };
         xFactory = ::cppu::createSingleFactory(xSMGR, sImplName, MyListener::st_createInstance, lNames);
     }
     else if (sImplName == MYPROTOCOLHANDLER_IMPLEMENTATIONNAME)
     {
-        css::uno::Sequence< ::rtl::OUString > lNames(1);
-        lNames[0] = MYPROTOCOLHANDLER_SERVICENAME;
+        css::uno::Sequence<OUString> lNames { MYPROTOCOLHANDLER_SERVICENAME };
         xFactory = ::cppu::createSingleComponentFactory(MyProtocolHandler_createInstance, sImplName, lNames);
     }
 
diff --git a/oox/source/core/fasttokenhandler.cxx b/oox/source/core/fasttokenhandler.cxx
index 3fe24ef..3885440 100644
--- a/oox/source/core/fasttokenhandler.cxx
+++ b/oox/source/core/fasttokenhandler.cxx
@@ -38,8 +38,7 @@ OUString SAL_CALL FastTokenHandler_getImplementationName()
 
 Sequence< OUString > SAL_CALL FastTokenHandler_getSupportedServiceNames()
 {
-    Sequence< OUString > aServiceNames( 1 );
-    aServiceNames[ 0 ] = "com.sun.star.xml.sax.FastTokenHandler";
+    Sequence<OUString> aServiceNames { "com.sun.star.xml.sax.FastTokenHandler" };
     return aServiceNames;
 }
 
diff --git a/oox/source/core/filterdetect.cxx b/oox/source/core/filterdetect.cxx
index 13f195d..ede7849 100644
--- a/oox/source/core/filterdetect.cxx
+++ b/oox/source/core/filterdetect.cxx
@@ -228,8 +228,7 @@ void FilterDetectDocHandler::parseContentTypesOverride( const AttributeList& rAt
 /* Helper for XServiceInfo */
 Sequence< OUString > FilterDetect_getSupportedServiceNames()
 {
-    Sequence< OUString > aServiceNames( 1 );
-    aServiceNames[ 0 ] = "com.sun.star.frame.ExtendedTypeDetection";
+    Sequence<OUString> aServiceNames { "com.sun.star.frame.ExtendedTypeDetection" };
     return aServiceNames;
 }
 
diff --git a/oox/source/docprop/ooxmldocpropimport.cxx b/oox/source/docprop/ooxmldocpropimport.cxx
index 646c09c..5f2199f 100644
--- a/oox/source/docprop/ooxmldocpropimport.cxx
+++ b/oox/source/docprop/ooxmldocpropimport.cxx
@@ -51,8 +51,7 @@ OUString SAL_CALL DocumentPropertiesImport_getImplementationName()
 
 Sequence< OUString > SAL_CALL DocumentPropertiesImport_getSupportedServiceNames()
 {
-    Sequence< OUString > aServices( 1 );
-    aServices[ 0 ] = "com.sun.star.document.OOXMLDocumentPropertiesImporter";
+    Sequence<OUString> aServices { "com.sun.star.document.OOXMLDocumentPropertiesImporter" };
     return aServices;
 }
 
diff --git a/sc/source/ui/unoobj/appluno.cxx b/sc/source/ui/unoobj/appluno.cxx
index c0e61a7..c1d847d 100644
--- a/sc/source/ui/unoobj/appluno.cxx
+++ b/sc/source/ui/unoobj/appluno.cxx
@@ -195,9 +195,7 @@ OUString ScSpreadsheetSettings::getImplementationName_Static()
 
 uno::Sequence<OUString> ScSpreadsheetSettings::getSupportedServiceNames_Static()
 {
-    uno::Sequence<OUString> aRet(1);
-    OUString* pArray = aRet.getArray();
-    pArray[0] = SCSPREADSHEETSETTINGS_SERVICE;
+    uno::Sequence<OUString> aRet { SCSPREADSHEETSETTINGS_SERVICE };
     return aRet;
 }
 
diff --git a/sc/source/ui/unoobj/miscuno.cxx b/sc/source/ui/unoobj/miscuno.cxx
index a1149ac..848ec7b6 100644
--- a/sc/source/ui/unoobj/miscuno.cxx
+++ b/sc/source/ui/unoobj/miscuno.cxx
@@ -233,9 +233,7 @@ css::uno::Sequence< OUString >
     SAL_CALL ScIndexEnumeration::getSupportedServiceNames()
     throw(css::uno::RuntimeException, std::exception)
 {
-    css::uno::Sequence< OUString > aRet(1);
-    OUString* pArray = aRet.getArray();
-    pArray[0] = sServiceName;
+    css::uno::Sequence<OUString> aRet { sServiceName };
     return aRet;
 }
 
diff --git a/sc/source/ui/unoobj/shapeuno.cxx b/sc/source/ui/unoobj/shapeuno.cxx
index 019f576..7b68557 100644
--- a/sc/source/ui/unoobj/shapeuno.cxx
+++ b/sc/source/ui/unoobj/shapeuno.cxx
@@ -1444,8 +1444,7 @@ public:
 
     virtual uno::Sequence< OUString > SAL_CALL getElementNames() throw(uno::RuntimeException, std::exception) override
     {
-        uno::Sequence< OUString > aSeq( 1 );
-        aSeq[ 0 ] = SC_EVENTACC_ONCLICK;
+        uno::Sequence<OUString> aSeq { SC_EVENTACC_ONCLICK };
         return aSeq;
     }
 
diff --git a/sccomp/source/solver/SolverComponent.cxx b/sccomp/source/solver/SolverComponent.cxx
index b7df95b..4f4778c 100644
--- a/sccomp/source/solver/SolverComponent.cxx
+++ b/sccomp/source/solver/SolverComponent.cxx
@@ -257,8 +257,7 @@ sal_Bool SAL_CALL SolverComponent::supportsService( const OUString& rServiceName
 
 uno::Sequence<OUString> SAL_CALL SolverComponent::getSupportedServiceNames() throw(uno::RuntimeException, std::exception)
 {
-    uno::Sequence< OUString > aServiceNames( 1 );
-    aServiceNames[ 0 ] = "com.sun.star.sheet.Solver";
+    uno::Sequence<OUString> aServiceNames { "com.sun.star.sheet.Solver" };
     return aServiceNames;
 }
 
diff --git a/scripting/source/provider/MasterScriptProvider.cxx b/scripting/source/provider/MasterScriptProvider.cxx
index e979c42..e63236f 100644
--- a/scripting/source/provider/MasterScriptProvider.cxx
+++ b/scripting/source/provider/MasterScriptProvider.cxx
@@ -371,8 +371,7 @@ MasterScriptProvider::providerCache()
         if ( !m_pPCache )
         {
             OUString serviceName1 = "com.sun.star.script.provider.ScriptProviderForBasic";
-            Sequence< OUString > blacklist(1);
-            blacklist[ 0 ] = serviceName1;
+            Sequence<OUString> blacklist { serviceName1 };
 
             if ( !m_bIsPkgMSP )
             {
diff --git a/sd/source/ui/unoidl/sddetect.cxx b/sd/source/ui/unoidl/sddetect.cxx
index 61b36c2..4eff4b1 100644
--- a/sd/source/ui/unoidl/sddetect.cxx
+++ b/sd/source/ui/unoidl/sddetect.cxx
@@ -147,8 +147,7 @@ sal_Bool SAL_CALL SdFilterDetect::supportsService( const OUString& sServiceName
 // XServiceInfo
 Sequence< OUString > SAL_CALL SdFilterDetect::getSupportedServiceNames() throw( RuntimeException, std::exception )
 {
-    Sequence< OUString > seqServiceNames( 1 );
-    seqServiceNames.getArray() [0] = "com.sun.star.frame.ExtendedTypeDetection"  ;
+    Sequence<OUString> seqServiceNames { "com.sun.star.frame.ExtendedTypeDetection" };
     return seqServiceNames ;
 }
 
diff --git a/sdext/source/minimizer/pppoptimizerdialog.cxx b/sdext/source/minimizer/pppoptimizerdialog.cxx
index ed8162a..64efae2 100644
--- a/sdext/source/minimizer/pppoptimizerdialog.cxx
+++ b/sdext/source/minimizer/pppoptimizerdialog.cxx
@@ -162,9 +162,7 @@ OUString PPPOptimizerDialog_getImplementationName()
 
 Sequence< OUString > PPPOptimizerDialog_getSupportedServiceNames()
 {
-    Sequence < OUString > aRet(1);
-    OUString* pArray = aRet.getArray();
-    pArray[0] = SERVICE_NAME;
+    Sequence<OUString> aRet { SERVICE_NAME };
     return aRet;
 }
 
diff --git a/sfx2/source/doc/SfxDocumentMetaData.cxx b/sfx2/source/doc/SfxDocumentMetaData.cxx
index 08bed4e..98776d2 100644
--- a/sfx2/source/doc/SfxDocumentMetaData.cxx
+++ b/sfx2/source/doc/SfxDocumentMetaData.cxx
@@ -386,8 +386,7 @@ public:
 
     virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames(  ) throw (css::uno::RuntimeException, std::exception) override
     {
-        css::uno::Sequence< OUString > aServiceNames(1);
-        aServiceNames[ 0 ] = "com.sun.star.writer.DocumentProperties";
+        css::uno::Sequence<OUString> aServiceNames { "com.sun.star.writer.DocumentProperties" };
         return aServiceNames;
     }
 };
diff --git a/shell/source/backends/macbe/macbackend.mm b/shell/source/backends/macbe/macbackend.mm
index 6832d66..4cfd060 100644
--- a/shell/source/backends/macbe/macbackend.mm
+++ b/shell/source/backends/macbe/macbackend.mm
@@ -451,8 +451,7 @@ rtl::OUString SAL_CALL MacOSXBackend::getImplementationName(void)
 
 uno::Sequence<rtl::OUString> SAL_CALL MacOSXBackend::getBackendServiceNames(void)
 {
-    uno::Sequence<rtl::OUString> aServiceNameList(1);
-    aServiceNameList[0] = "com.sun.star.configuration.backend.MacOSXBackend";
+    uno::Sequence<OUString> aServiceNameList { "com.sun.star.configuration.backend.MacOSXBackend" };
 
     return aServiceNameList;
 }
diff --git a/svl/source/numbers/numfmuno.cxx b/svl/source/numbers/numfmuno.cxx
index 60bbbfd..52070c2 100644
--- a/svl/source/numbers/numfmuno.cxx
+++ b/svl/source/numbers/numfmuno.cxx
@@ -379,9 +379,7 @@ sal_Bool SAL_CALL SvNumberFormatterServiceObj::supportsService( const OUString&
 uno::Sequence<OUString> SAL_CALL SvNumberFormatterServiceObj::getSupportedServiceNames()
     throw(uno::RuntimeException, std::exception)
 {
-    uno::Sequence<OUString> aRet(1);
-    OUString* pArray = aRet.getArray();
-    pArray[0] = "com.sun.star.util.NumberFormatter";
+    uno::Sequence<OUString> aRet { "com.sun.star.util.NumberFormatter" };
     return aRet;
 }
 
@@ -670,9 +668,7 @@ sal_Bool SAL_CALL SvNumberFormatsObj::supportsService( const OUString& ServiceNa
 uno::Sequence<OUString> SAL_CALL SvNumberFormatsObj::getSupportedServiceNames()
     throw(uno::RuntimeException, std::exception)
 {
-    uno::Sequence<OUString> aRet(1);
-    OUString* pArray = aRet.getArray();
-    pArray[0] = "com.sun.star.util.NumberFormats";
+    uno::Sequence<OUString> aRet { "com.sun.star.util.NumberFormats" };
     return aRet;
 }
 
@@ -927,9 +923,7 @@ sal_Bool SAL_CALL SvNumberFormatObj::supportsService( const OUString& ServiceNam
 uno::Sequence<OUString> SAL_CALL SvNumberFormatObj::getSupportedServiceNames()
     throw(uno::RuntimeException, std::exception)
 {
-    uno::Sequence<OUString> aRet(1);
-    OUString* pArray = aRet.getArray();
-    pArray[0] = "com.sun.star.util.NumberFormatProperties";
+    uno::Sequence<OUString> aRet { "com.sun.star.util.NumberFormatProperties" };
     return aRet;
 }
 
@@ -1083,9 +1077,7 @@ sal_Bool SAL_CALL SvNumberFormatSettingsObj::supportsService( const OUString& Se
 uno::Sequence<OUString> SAL_CALL SvNumberFormatSettingsObj::getSupportedServiceNames()
     throw(uno::RuntimeException, std::exception)
 {
-    uno::Sequence<OUString> aRet(1);
-    OUString* pArray = aRet.getArray();
-    pArray[0] = "com.sun.star.util.NumberFormatSettings";
+    uno::Sequence<OUString> aRet { "com.sun.star.util.NumberFormatSettings" };
     return aRet;
 }
 
diff --git a/svl/source/passwordcontainer/syscreds.cxx b/svl/source/passwordcontainer/syscreds.cxx
index adb9eb2..bd1722a 100644
--- a/svl/source/passwordcontainer/syscreds.cxx
+++ b/svl/source/passwordcontainer/syscreds.cxx
@@ -30,8 +30,7 @@ SysCredentialsConfigItem::SysCredentialsConfigItem(
   m_bInited( false ),
   m_pOwner( pOwner )
 {
-    uno::Sequence< OUString > aNode( 1 );
-    aNode[ 0 ] = "Office.Common/Passwords/AuthenticateUsingSystemCredentials";
+    uno::Sequence<OUString> aNode { "Office.Common/Passwords/AuthenticateUsingSystemCredentials" };
     EnableNotification( aNode );
 }
 
@@ -60,8 +59,7 @@ SysCredentialsConfigItem::getSystemCredentialsURLs()
     if ( !m_bInited )
     {
         // read config item
-        uno::Sequence< OUString > aPropNames( 1 );
-        aPropNames[ 0 ] = "AuthenticateUsingSystemCredentials";
+        uno::Sequence<OUString> aPropNames { "AuthenticateUsingSystemCredentials" };
         uno::Sequence< uno::Any > aAnyValues(
             utl::ConfigItem::GetProperties( aPropNames ) );
 
diff --git a/svtools/source/control/vclxaccessibleheaderbar.cxx b/svtools/source/control/vclxaccessibleheaderbar.cxx
index 7430cbd..9bd9272 100644
--- a/svtools/source/control/vclxaccessibleheaderbar.cxx
+++ b/svtools/source/control/vclxaccessibleheaderbar.cxx
@@ -91,8 +91,7 @@ void VCLXAccessibleHeaderBar::FillAccessibleStateSet( utl::AccessibleStateSetHel
 
 Sequence< ::rtl::OUString > VCLXAccessibleHeaderBar::getSupportedServiceNames() throw (RuntimeException, std::exception)
 {
-    Sequence< ::rtl::OUString > aNames(1);
-    aNames[0] = "com.sun.star.awt.AccessibleHeaderBar";
+    Sequence<OUString> aNames { "com.sun.star.awt.AccessibleHeaderBar" };
     return aNames;
 }
 
diff --git a/svtools/source/filter/SvFilterOptionsDialog.cxx b/svtools/source/filter/SvFilterOptionsDialog.cxx
index e1083e2..c7e2323 100644
--- a/svtools/source/filter/SvFilterOptionsDialog.cxx
+++ b/svtools/source/filter/SvFilterOptionsDialog.cxx
@@ -162,9 +162,7 @@ sal_Bool SAL_CALL SvFilterOptionsDialog::supportsService( const OUString& rServi
 uno::Sequence< OUString > SAL_CALL SvFilterOptionsDialog::getSupportedServiceNames()
     throw ( uno::RuntimeException, std::exception )
 {
-    uno::Sequence< OUString > aRet(1);
-    OUString* pArray = aRet.getArray();
-    pArray[0] = "com.sun.star.ui.dialogs.FilterOptionsDialog";
+    uno::Sequence<OUString> aRet { "com.sun.star.ui.dialogs.FilterOptionsDialog" };
     return aRet;
 }
 
diff --git a/svtools/source/graphic/graphicunofactory.cxx b/svtools/source/graphic/graphicunofactory.cxx
index 3d50e86..eb8b753 100644
--- a/svtools/source/graphic/graphicunofactory.cxx
+++ b/svtools/source/graphic/graphicunofactory.cxx
@@ -61,9 +61,7 @@ public:
     virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
         throw (css::uno::RuntimeException, std::exception) override
     {
-        uno::Sequence< OUString > aRet(1);
-        OUString* pArray = aRet.getArray();
-        pArray[0] = "com.sun.star.graphic.GraphicObject";
+        uno::Sequence<OUString> aRet { "com.sun.star.graphic.GraphicObject" };
         return aRet;
     }
 };
diff --git a/svtools/source/graphic/provider.cxx b/svtools/source/graphic/provider.cxx
index d13cae8..cce56d1 100644
--- a/svtools/source/graphic/provider.cxx
+++ b/svtools/source/graphic/provider.cxx
@@ -76,8 +76,7 @@ sal_Bool SAL_CALL GraphicProvider::supportsService( const OUString& ServiceName
 uno::Sequence< OUString > SAL_CALL GraphicProvider::getSupportedServiceNames()
     throw( uno::RuntimeException, std::exception )
 {
-    uno::Sequence< OUString > aSeq( 1 );
-    aSeq.getArray()[ 0 ] = "com.sun.star.graphic.GraphicProvider";
+    uno::Sequence<OUString> aSeq { "com.sun.star.graphic.GraphicProvider" };
     return aSeq;
 }
 
diff --git a/svtools/source/graphic/renderer.cxx b/svtools/source/graphic/renderer.cxx
index 593f8e1..d717522 100644
--- a/svtools/source/graphic/renderer.cxx
+++ b/svtools/source/graphic/renderer.cxx
@@ -123,8 +123,7 @@ sal_Bool SAL_CALL GraphicRendererVCL::supportsService( const OUString& ServiceNa
 uno::Sequence< OUString > SAL_CALL GraphicRendererVCL::getSupportedServiceNames()
     throw( uno::RuntimeException, std::exception )
 {
-    uno::Sequence< OUString > aSeq( 1 );
-    aSeq.getArray()[ 0 ] = "com.sun.star.graphic.GraphicRendererVCL";
+    uno::Sequence<OUString> aSeq { "com.sun.star.graphic.GraphicRendererVCL" };
     return aSeq;
 }
 
diff --git a/svx/source/customshapes/EnhancedCustomShapeEngine.cxx b/svx/source/customshapes/EnhancedCustomShapeEngine.cxx
index 5cb4076..692e08e 100644
--- a/svx/source/customshapes/EnhancedCustomShapeEngine.cxx
+++ b/svx/source/customshapes/EnhancedCustomShapeEngine.cxx
@@ -158,9 +158,7 @@ sal_Bool SAL_CALL EnhancedCustomShapeEngine::supportsService( const OUString& rS
 Sequence< OUString > SAL_CALL EnhancedCustomShapeEngine::getSupportedServiceNames()
     throw ( RuntimeException, std::exception )
 {
-    Sequence< OUString > aRet(1);
-    OUString* pArray = aRet.getArray();
-    pArray[0] = "com.sun.star.drawing.CustomShapeEngine";
+    Sequence<OUString> aRet { "com.sun.star.drawing.CustomShapeEngine" };
     return aRet;
 }
 
diff --git a/svx/source/form/formcontroller.cxx b/svx/source/form/formcontroller.cxx
index e905f75..b988371 100644
--- a/svx/source/form/formcontroller.cxx
+++ b/svx/source/form/formcontroller.cxx
@@ -669,8 +669,7 @@ Sequence< OUString> SAL_CALL FormController::getSupportedServiceNames() throw( R
 {
     // service names which are supported only, but cannot be used to created an
     // instance at a service factory
-    Sequence< OUString > aNonCreatableServiceNames( 1 );
-    aNonCreatableServiceNames[ 0 ] = "com.sun.star.form.FormControllerDispatcher";
+    Sequence<OUString> aNonCreatableServiceNames { "com.sun.star.form.FormControllerDispatcher" };
 
     // services which can be used to created an instance at a service factory
     Sequence< OUString > aCreatableServiceNames( getSupportedServiceNames_Static() );
diff --git a/svx/source/gallery2/gallery1.cxx b/svx/source/gallery2/gallery1.cxx
index eb847b8..fb81325 100644
--- a/svx/source/gallery2/gallery1.cxx
+++ b/svx/source/gallery2/gallery1.cxx
@@ -239,8 +239,7 @@ void Gallery::ImplLoadSubDirs( const INetURLObject& rBaseURL, bool& rbDirIsReadO
         uno::Reference< ucb::XCommandEnvironment > xEnv;
         ::ucbhelper::Content                       aCnt( rBaseURL.GetMainURL( INetURLObject::NO_DECODE ), xEnv, comphelper::getProcessComponentContext() );
 
-        uno::Sequence< OUString > aProps( 1 );
-        aProps.getArray()[ 0 ] = "Url";
+        uno::Sequence<OUString> aProps { "Url" };
 
         uno::Reference< sdbc::XResultSet > xResultSet( aCnt.createCursor( aProps, ::ucbhelper::INCLUDE_DOCUMENTS_ONLY ) );
 
diff --git a/svx/source/gallery2/galtheme.cxx b/svx/source/gallery2/galtheme.cxx
index a2ca383..a54d30e 100644
--- a/svx/source/gallery2/galtheme.cxx
+++ b/svx/source/gallery2/galtheme.cxx
@@ -1141,8 +1141,7 @@ bool GalleryTheme::InsertFileOrDirURL( const INetURLObject& rFileOrDirURL, sal_u
 
         if( bFolder )
         {
-            uno::Sequence< OUString > aProps( 1 );
-            aProps[ 0 ] = "Url";
+            uno::Sequence<OUString> aProps { "Url" };
             uno::Reference< sdbc::XResultSet > xResultSet( aCnt.createCursor( aProps, ::ucbhelper::INCLUDE_DOCUMENTS_ONLY ) );
             uno::Reference< ucb::XContentAccess > xContentAccess( xResultSet, uno::UNO_QUERY );
             if( xContentAccess.is() )
diff --git a/svx/source/unodialogs/textconversiondlgs/chinese_translation_unodialog.cxx b/svx/source/unodialogs/textconversiondlgs/chinese_translation_unodialog.cxx
index bd26f43..050a385 100644
--- a/svx/source/unodialogs/textconversiondlgs/chinese_translation_unodialog.cxx
+++ b/svx/source/unodialogs/textconversiondlgs/chinese_translation_unodialog.cxx
@@ -85,8 +85,7 @@ uno::Sequence< OUString > SAL_CALL ChineseTranslation_UnoDialog::getSupportedSer
 
 uno::Sequence< OUString > ChineseTranslation_UnoDialog::getSupportedServiceNames_Static()
 {
-    uno::Sequence< OUString > aSNS( 1 );
-    aSNS[ 0 ] = "com.sun.star.linguistic2.ChineseTranslationDialog";
+    uno::Sequence<OUString> aSNS { "com.sun.star.linguistic2.ChineseTranslationDialog" };
     return aSNS;
 }
 
diff --git a/svx/source/unogallery/unogalthemeprovider.cxx b/svx/source/unogallery/unogalthemeprovider.cxx
index 7dca671..ed6ad41 100644
--- a/svx/source/unogallery/unogalthemeprovider.cxx
+++ b/svx/source/unogallery/unogalthemeprovider.cxx
@@ -60,8 +60,7 @@ sal_Bool SAL_CALL GalleryThemeProvider::supportsService( const OUString& Service
 uno::Sequence< OUString > SAL_CALL GalleryThemeProvider::getSupportedServiceNames()
     throw( uno::RuntimeException, std::exception )
 {
-    uno::Sequence< OUString > aSeq( 1 );
-    aSeq.getArray()[ 0 ] = "com.sun.star.gallery.GalleryThemeProvider";
+    uno::Sequence<OUString> aSeq { "com.sun.star.gallery.GalleryThemeProvider" };
     return aSeq;
 }
 
diff --git a/sw/source/core/unocore/unocoll.cxx b/sw/source/core/unocore/unocoll.cxx
index acc29c6..107a1f1 100644
--- a/sw/source/core/unocore/unocoll.cxx
+++ b/sw/source/core/unocore/unocoll.cxx
@@ -1306,9 +1306,7 @@ sal_Bool SwXTextFrames::supportsService(const OUString& rServiceName) throw( Run
 
 Sequence< OUString > SwXTextFrames::getSupportedServiceNames() throw( RuntimeException, std::exception )
 {
-    Sequence< OUString > aRet(1);
-    OUString* pArray = aRet.getArray();
-    pArray[0] = "com.sun.star.text.TextFrames";
+    Sequence<OUString> aRet { "com.sun.star.text.TextFrames" };
     return aRet;
 }
 
@@ -1333,9 +1331,7 @@ sal_Bool SwXTextGraphicObjects::supportsService(const OUString& rServiceName) th
 
 Sequence< OUString > SwXTextGraphicObjects::getSupportedServiceNames() throw( RuntimeException, std::exception )
 {
-    Sequence< OUString > aRet(1);
-    OUString* pArray = aRet.getArray();
-    pArray[0] = "com.sun.star.text.TextGraphicObjects";
+    Sequence<OUString> aRet { "com.sun.star.text.TextGraphicObjects" };
     return aRet;
 }
 
@@ -1360,9 +1356,7 @@ sal_Bool SwXTextEmbeddedObjects::supportsService(const OUString& rServiceName) t
 
 Sequence< OUString > SwXTextEmbeddedObjects::getSupportedServiceNames() throw( RuntimeException, std::exception )
 {
-    Sequence< OUString > aRet(1);
-    OUString* pArray = aRet.getArray();
-    pArray[0] = "com.sun.star.text.TextEmbeddedObjects";
+    Sequence<OUString> aRet { "com.sun.star.text.TextEmbeddedObjects" };
     return aRet;
 }
 
@@ -1387,9 +1381,7 @@ sal_Bool SwXTextSections::supportsService(const OUString& rServiceName) throw( R
 
 Sequence< OUString > SwXTextSections::getSupportedServiceNames() throw( RuntimeException, std::exception )
 {
-    Sequence< OUString > aRet(1);
-    OUString* pArray = aRet.getArray();
-    pArray[0] = "com.sun.star.text.TextSections";
+    Sequence<OUString> aRet { "com.sun.star.text.TextSections" };
     return aRet;
 }
 
@@ -1782,9 +1774,7 @@ sal_Bool SwXFootnotes::supportsService(const OUString& rServiceName) throw( Runt
 
 Sequence< OUString > SwXFootnotes::getSupportedServiceNames() throw( RuntimeException, std::exception )
 {
-    Sequence< OUString > aRet(1);
-    OUString* pArray = aRet.getArray();
-    pArray[0] = "com.sun.star.text.Footnotes";
+    Sequence<OUString> aRet { "com.sun.star.text.Footnotes" };
     return aRet;
 }
 
@@ -1882,9 +1872,7 @@ sal_Bool SwXReferenceMarks::supportsService(const OUString& rServiceName) throw(
 
 Sequence< OUString > SwXReferenceMarks::getSupportedServiceNames() throw( RuntimeException, std::exception )
 {
-    Sequence< OUString > aRet(1);
-    OUString* pArray = aRet.getArray();
-    pArray[0] = "com.sun.star.text.ReferenceMarks";
+    Sequence<OUString> aRet { "com.sun.star.text.ReferenceMarks" };
     return aRet;
 }
 
diff --git a/sw/source/core/unocore/unodraw.cxx b/sw/source/core/unocore/unodraw.cxx
index c2e8b5f..11ce3dc 100644
--- a/sw/source/core/unocore/unodraw.cxx
+++ b/sw/source/core/unocore/unodraw.cxx
@@ -458,9 +458,7 @@ sal_Bool SwXDrawPage::supportsService(const OUString& rServiceName) throw( uno::
 
 uno::Sequence< OUString > SwXDrawPage::getSupportedServiceNames() throw( uno::RuntimeException, std::exception )
 {
-    uno::Sequence< OUString > aRet(1);
-    OUString* pArray = aRet.getArray();
-    pArray[0] = "com.sun.star.drawing.GenericDrawPage";
+    uno::Sequence<OUString> aRet { "com.sun.star.drawing.GenericDrawPage" };
     return aRet;
 }
 
diff --git a/sw/source/core/unocore/unofield.cxx b/sw/source/core/unocore/unofield.cxx
index 258b4f1..cbf3d98 100644
--- a/sw/source/core/unocore/unofield.cxx
+++ b/sw/source/core/unocore/unofield.cxx
@@ -2680,9 +2680,7 @@ sal_Bool SwXTextFieldMasters::supportsService(const OUString& rServiceName) thro
 
 uno::Sequence< OUString > SwXTextFieldMasters::getSupportedServiceNames() throw( uno::RuntimeException, std::exception )
 {
-    uno::Sequence< OUString > aRet(1);
-    OUString* pArray = aRet.getArray();
-    pArray[0] = "com.sun.star.text.TextFieldMasters";
+    uno::Sequence<OUString> aRet { "com.sun.star.text.TextFieldMasters" };
     return aRet;
 }
 
@@ -2891,9 +2889,7 @@ sal_Bool SwXTextFieldTypes::supportsService(const OUString& rServiceName) throw(
 
 uno::Sequence< OUString > SwXTextFieldTypes::getSupportedServiceNames() throw( uno::RuntimeException, std::exception )
 {
-    uno::Sequence< OUString > aRet(1);
-    OUString* pArray = aRet.getArray();
-    pArray[0] = "com.sun.star.text.TextFields";
+    uno::Sequence<OUString> aRet { "com.sun.star.text.TextFields" };
     return aRet;
 }
 
@@ -3004,9 +3000,7 @@ throw (uno::RuntimeException, std::exception)
 uno::Sequence< OUString > SAL_CALL
 SwXFieldEnumeration::getSupportedServiceNames() throw (uno::RuntimeException, std::exception)
 {
-    uno::Sequence< OUString > aRet(1);
-    OUString* pArray = aRet.getArray();
-    pArray[0] = "com.sun.star.text.FieldEnumeration";
+    uno::Sequence<OUString> aRet { "com.sun.star.text.FieldEnumeration" };
     return aRet;
 }
 
diff --git a/sw/source/core/unocore/unoobj.cxx b/sw/source/core/unocore/unoobj.cxx
index 76f85dc..24447de 100644
--- a/sw/source/core/unocore/unoobj.cxx
+++ b/sw/source/core/unocore/unoobj.cxx
@@ -2992,9 +2992,7 @@ sal_Bool SAL_CALL SwXTextCursor::hasElements() throw (uno::RuntimeException, std
 uno::Sequence< OUString > SAL_CALL
 SwXTextCursor::getAvailableServiceNames() throw (uno::RuntimeException, std::exception)
 {
-    uno::Sequence< OUString > aRet(1);
-    OUString* pArray = aRet.getArray();
-    pArray[0] = "com.sun.star.text.TextContent";
+    uno::Sequence<OUString> aRet { "com.sun.star.text.TextContent" };
     return aRet;
 }
 
diff --git a/sw/source/core/unocore/unoobj2.cxx b/sw/source/core/unocore/unoobj2.cxx
index a80c428..5e35fa3 100644
--- a/sw/source/core/unocore/unoobj2.cxx
+++ b/sw/source/core/unocore/unoobj2.cxx
@@ -1299,9 +1299,7 @@ sal_Bool SAL_CALL SwXTextRange::hasElements() throw (uno::RuntimeException, std:
 uno::Sequence< OUString > SAL_CALL
 SwXTextRange::getAvailableServiceNames() throw (uno::RuntimeException, std::exception)
 {
-    uno::Sequence< OUString > aRet(1);
-    OUString* pArray = aRet.getArray();
-    pArray[0] = "com.sun.star.text.TextContent";
+    uno::Sequence<OUString> aRet { "com.sun.star.text.TextContent" };
     return aRet;
 }
 
diff --git a/sw/source/core/unocore/unoparagraph.cxx b/sw/source/core/unocore/unoparagraph.cxx
index 6845a9a..c76943b 100644
--- a/sw/source/core/unocore/unoparagraph.cxx
+++ b/sw/source/core/unocore/unoparagraph.cxx
@@ -1442,9 +1442,7 @@ throw (uno::RuntimeException, std::exception)
 uno::Sequence< OUString > SAL_CALL
 SwXParagraph::getAvailableServiceNames() throw (uno::RuntimeException, std::exception)
 {
-    uno::Sequence< OUString > aRet(1);
-    OUString* pArray = aRet.getArray();
-    pArray[0] = "com.sun.star.text.TextContent";
+    uno::Sequence<OUString> aRet { "com.sun.star.text.TextContent" };
     return aRet;
 }
 
diff --git a/sw/source/core/unocore/unoport.cxx b/sw/source/core/unocore/unoport.cxx
index 6e1de3d..8af5203 100644
--- a/sw/source/core/unocore/unoport.cxx
+++ b/sw/source/core/unocore/unoport.cxx
@@ -855,9 +855,7 @@ uno::Sequence< OUString > SwXTextPortion::getAvailableServiceNames()
 throw( uno::RuntimeException, std::exception )
 {
     SolarMutexGuard aGuard;
-    uno::Sequence< OUString > aRet(1);
-    OUString* pArray = aRet.getArray();
-    pArray[0] = "com.sun.star.text.TextContent";
+    uno::Sequence<OUString> aRet { "com.sun.star.text.TextContent" };
     return aRet;
 }
 
diff --git a/sw/source/core/unocore/unoportenum.cxx b/sw/source/core/unocore/unoportenum.cxx
index 890f4d5..cd6d413 100644
--- a/sw/source/core/unocore/unoportenum.cxx
+++ b/sw/source/core/unocore/unoportenum.cxx
@@ -350,9 +350,7 @@ throw( RuntimeException, std::exception )
 Sequence< OUString > SwXTextPortionEnumeration::getSupportedServiceNames()
 throw( RuntimeException, std::exception )
 {
-    Sequence< OUString > aRet(1);
-    OUString* pArray = aRet.getArray();
-    pArray[0] = "com.sun.star.text.TextPortionEnumeration";
+    Sequence<OUString> aRet { "com.sun.star.text.TextPortionEnumeration" };
     return aRet;
 }
 
diff --git a/sw/source/core/unocore/unosett.cxx b/sw/source/core/unocore/unosett.cxx
index 903e470..e34c0d2 100644
--- a/sw/source/core/unocore/unosett.cxx
+++ b/sw/source/core/unocore/unosett.cxx
@@ -269,9 +269,7 @@ sal_Bool SwXFootnoteProperties::supportsService(const OUString& rServiceName) th
 
 Sequence< OUString > SwXFootnoteProperties::getSupportedServiceNames() throw( RuntimeException, std::exception )
 {
-    Sequence< OUString > aRet(1);
-    OUString* pArray = aRet.getArray();
-    pArray[0] = "com.sun.star.text.FootnoteSettings";
+    Sequence<OUString> aRet { "com.sun.star.text.FootnoteSettings" };
     return aRet;
 }
 
@@ -573,9 +571,7 @@ sal_Bool SwXEndnoteProperties::supportsService(const OUString& rServiceName) thr
 
 Sequence< OUString > SwXEndnoteProperties::getSupportedServiceNames() throw( RuntimeException, std::exception )
 {
-    Sequence< OUString > aRet(1);
-    OUString* pArray = aRet.getArray();
-    pArray[0] = "com.sun.star.text.FootnoteSettings";
+    Sequence<OUString> aRet { "com.sun.star.text.FootnoteSettings" };
     return aRet;
 }
 
@@ -799,9 +795,7 @@ sal_Bool SwXLineNumberingProperties::supportsService(const OUString& rServiceNam
 
 Sequence< OUString > SwXLineNumberingProperties::getSupportedServiceNames() throw( RuntimeException, std::exception )
 {
-    Sequence< OUString > aRet(1);
-    OUString* pArray = aRet.getArray();
-    pArray[0] = "com.sun.star.text.LineNumberingProperties";
+    Sequence<OUString> aRet { "com.sun.star.text.LineNumberingProperties" };
     return aRet;
 }
 
@@ -1095,9 +1089,7 @@ sal_Bool SwXNumberingRules::supportsService(const OUString& rServiceName) throw(
 
 Sequence< OUString > SwXNumberingRules::getSupportedServiceNames() throw( RuntimeException, std::exception )
 {
-    Sequence< OUString > aRet(1);
-    OUString* pArray = aRet.getArray();
-    pArray[0] = "com.sun.star.text.NumberingRules";
+    Sequence<OUString> aRet { "com.sun.star.text.NumberingRules" };
     return aRet;
 }
 
@@ -2309,9 +2301,7 @@ sal_Bool SwXTextColumns::supportsService(const OUString& rServiceName) throw( Ru
 
 Sequence< OUString > SwXTextColumns::getSupportedServiceNames() throw( RuntimeException, std::exception )
 {
-    Sequence< OUString > aRet(1);
-    OUString* pArray = aRet.getArray();
-    pArray[0] = "com.sun.star.text.TextColumns";
+    Sequence<OUString> aRet { "com.sun.star.text.TextColumns" };
     return aRet;
 }
 
diff --git a/sw/source/core/unocore/unostyle.cxx b/sw/source/core/unocore/unostyle.cxx
index 16dfb09..7b284c3 100644
--- a/sw/source/core/unocore/unostyle.cxx
+++ b/sw/source/core/unocore/unostyle.cxx
@@ -158,9 +158,7 @@ sal_Bool SwXStyleFamilies::supportsService(const OUString& rServiceName) throw(
 
 uno::Sequence< OUString > SwXStyleFamilies::getSupportedServiceNames() throw( uno::RuntimeException, std::exception )
 {
-    uno::Sequence< OUString > aRet(1);
-    OUString* pArray = aRet.getArray();
-    pArray[0] = "com.sun.star.style.StyleFamilies";
+    uno::Sequence<OUString> aRet { "com.sun.star.style.StyleFamilies" };
     return aRet;
 }
 
@@ -391,9 +389,7 @@ sal_Bool SwXStyleFamily::supportsService(const OUString& rServiceName) throw( un
 
 uno::Sequence< OUString > SwXStyleFamily::getSupportedServiceNames() throw( uno::RuntimeException, std::exception )
 {
-    uno::Sequence< OUString > aRet(1);
-    OUString* pArray = aRet.getArray();
-    pArray[0] = "com.sun.star.style.StyleFamily";
+    uno::Sequence<OUString> aRet { "com.sun.star.style.StyleFamily" };
     return aRet;
 }
 
diff --git a/sw/source/uibase/uno/unoatxt.cxx b/sw/source/uibase/uno/unoatxt.cxx
index ddba705..e9d2fe5 100644
--- a/sw/source/uibase/uno/unoatxt.cxx
+++ b/sw/source/uibase/uno/unoatxt.cxx
@@ -691,9 +691,7 @@ sal_Bool SwXAutoTextGroup::supportsService(const OUString& rServiceName) throw(
 
 uno::Sequence< OUString > SwXAutoTextGroup::getSupportedServiceNames() throw( uno::RuntimeException, std::exception )
 {
-    uno::Sequence< OUString > aRet(1);
-    OUString* pArray = aRet.getArray();
-    pArray[0] = "com.sun.star.text.AutoTextGroup";
+    uno::Sequence<OUString> aRet { "com.sun.star.text.AutoTextGroup" };
     return aRet;
 }
 
@@ -974,9 +972,7 @@ sal_Bool SwXAutoTextEntry::supportsService(const OUString& rServiceName) throw(
 
 uno::Sequence< OUString > SwXAutoTextEntry::getSupportedServiceNames() throw( uno::RuntimeException, std::exception )
 {
-    uno::Sequence< OUString > aRet(1);
-    OUString* pArray = aRet.getArray();
-    pArray[0] = "com.sun.star.text.AutoTextEntry";
+    uno::Sequence<OUString> aRet { "com.sun.star.text.AutoTextEntry" };
     return aRet;
 }
 
diff --git a/sw/source/uibase/uno/unomod.cxx b/sw/source/uibase/uno/unomod.cxx
index 31114c7..33281ba 100644
--- a/sw/source/uibase/uno/unomod.cxx
+++ b/sw/source/uibase/uno/unomod.cxx
@@ -533,9 +533,7 @@ sal_Bool SwXPrintSettings::supportsService(const OUString& rServiceName) throw(
 
 Sequence< OUString > SwXPrintSettings::getSupportedServiceNames() throw( RuntimeException, std::exception )
 {
-    Sequence< OUString > aRet(1);
-    OUString* pArray = aRet.getArray();
-    pArray[0] = "com.sun.star.text.PrintSettings";
+    Sequence<OUString> aRet { "com.sun.star.text.PrintSettings" };
     return aRet;
 }
 
@@ -997,9 +995,7 @@ sal_Bool SwXViewSettings::supportsService(const OUString& rServiceName) throw( R
 
 Sequence< OUString > SwXViewSettings::getSupportedServiceNames() throw( RuntimeException, std::exception )
 {
-    Sequence< OUString > aRet(1);
-    OUString* pArray = aRet.getArray();
-    pArray[0] = "com.sun.star.text.ViewSettings";
+    Sequence<OUString> aRet { "com.sun.star.text.ViewSettings" };
     return aRet;
 }
 
diff --git a/sw/source/uibase/uno/unotxdoc.cxx b/sw/source/uibase/uno/unotxdoc.cxx
index 094e374..546d3c4 100644
--- a/sw/source/uibase/uno/unotxdoc.cxx
+++ b/sw/source/uibase/uno/unotxdoc.cxx
@@ -4136,9 +4136,7 @@ sal_Bool SwXOutlineTarget::supportsService(const OUString& ServiceName) throw( R
 
 Sequence< OUString > SwXOutlineTarget::getSupportedServiceNames() throw( RuntimeException, std::exception )
 {
-    Sequence < OUString > aRet(1);
-    OUString* pArray = aRet.getArray();
-    pArray[0] = "com.sun.star.document.LinkTarget";
+    Sequence<OUString> aRet { "com.sun.star.document.LinkTarget" };
 
     return aRet;
 }
diff --git a/toolkit/source/controls/roadmapentry.cxx b/toolkit/source/controls/roadmapentry.cxx
index d8734a0..1bfb456 100644
--- a/toolkit/source/controls/roadmapentry.cxx
+++ b/toolkit/source/controls/roadmapentry.cxx
@@ -90,9 +90,7 @@ sal_Bool SAL_CALL ORoadmapEntry::supportsService( const OUString& ServiceName )
 
 css::uno::Sequence< OUString > SAL_CALL ORoadmapEntry::getSupportedServiceNames(  ) throw (css::uno::RuntimeException, std::exception)
 {
-    css::uno::Sequence< OUString > aRet(1);
-    OUString* pArray = aRet.getArray();
-    pArray[0] = "com.sun.star.awt.RoadmapItem";
+    css::uno::Sequence<OUString> aRet { "com.sun.star.awt.RoadmapItem" };
     return aRet;
 }
 
diff --git a/ucb/source/core/cmdenv.cxx b/ucb/source/core/cmdenv.cxx
index e0f53fc..f412435 100644
--- a/ucb/source/core/cmdenv.cxx
+++ b/ucb/source/core/cmdenv.cxx
@@ -113,8 +113,7 @@ OUString UcbCommandEnvironment::getImplementationName_Static()
 uno::Sequence< OUString >
 UcbCommandEnvironment::getSupportedServiceNames_Static()
 {
-    uno::Sequence< OUString > aSNS( 1 );
-    aSNS.getArray()[ 0 ] = "com.sun.star.ucb.CommandEnvironment";
+    uno::Sequence<OUString> aSNS { "com.sun.star.ucb.CommandEnvironment" };
     return aSNS;
 }
 
diff --git a/ucb/source/sorter/sortdynres.cxx b/ucb/source/sorter/sortdynres.cxx
index 0030cdc..4487e97 100644
--- a/ucb/source/sorter/sortdynres.cxx
+++ b/ucb/source/sorter/sortdynres.cxx
@@ -123,8 +123,7 @@ css::uno::Sequence< OUString > SAL_CALL SortedDynamicResultSet::getSupportedServ
 
 css::uno::Sequence< OUString > SortedDynamicResultSet::getSupportedServiceNames_Static()
 {
-    css::uno::Sequence< OUString > aSNS( 1 );
-    aSNS.getArray()[ 0 ] = DYNAMIC_RESULTSET_SERVICE_NAME;
+    css::uno::Sequence<OUString> aSNS { DYNAMIC_RESULTSET_SERVICE_NAME };
     return aSNS;
 }
 
@@ -501,8 +500,7 @@ SortedDynamicResultSetFactory_CreateInstance( const css::uno::Reference<
 
 css::uno::Sequence< OUString > SortedDynamicResultSetFactory::getSupportedServiceNames_Static()
 {
-    css::uno::Sequence< OUString > aSNS( 1 );
-    aSNS.getArray()[ 0 ] = DYNAMIC_RESULTSET_FACTORY_NAME;
+    css::uno::Sequence<OUString> aSNS { DYNAMIC_RESULTSET_FACTORY_NAME };
     return aSNS;
 }
 
diff --git a/ucb/source/sorter/sortresult.cxx b/ucb/source/sorter/sortresult.cxx
index 1a4707e..945fee5 100644
--- a/ucb/source/sorter/sortresult.cxx
+++ b/ucb/source/sorter/sortresult.cxx
@@ -192,8 +192,7 @@ css::uno::Sequence< OUString > SAL_CALL SortedResultSet::getSupportedServiceName
 
 css::uno::Sequence< OUString >SortedResultSet::getSupportedServiceNames_Static()
 {
-    css::uno::Sequence< OUString > aSNS( 1 );
-    aSNS.getArray()[ 0 ] = RESULTSET_SERVICE_NAME;
+    css::uno::Sequence<OUString> aSNS { RESULTSET_SERVICE_NAME };
     return aSNS;
 }
 
diff --git a/ucb/source/ucp/cmis/cmis_content.cxx b/ucb/source/ucp/cmis/cmis_content.cxx
index 6cf2f19..44dba89 100644
--- a/ucb/source/ucp/cmis/cmis_content.cxx
+++ b/ucb/source/ucp/cmis/cmis_content.cxx
@@ -1706,8 +1706,7 @@ namespace cmis
     uno::Sequence< OUString > SAL_CALL Content::getSupportedServiceNames()
            throw( uno::RuntimeException, std::exception )
     {
-           uno::Sequence< OUString > aSNS( 1 );
-           aSNS.getArray()[ 0 ] = "com.sun.star.ucb.CmisContent";
+           uno::Sequence<OUString> aSNS { "com.sun.star.ucb.CmisContent" };
            return aSNS;
     }
 
diff --git a/ucb/source/ucp/cmis/cmis_repo_content.cxx b/ucb/source/ucp/cmis/cmis_repo_content.cxx
index 644c5c2..0073108 100644
--- a/ucb/source/ucp/cmis/cmis_repo_content.cxx
+++ b/ucb/source/ucp/cmis/cmis_repo_content.cxx
@@ -330,8 +330,7 @@ namespace cmis
     uno::Sequence< OUString > SAL_CALL RepoContent::getSupportedServiceNames()
            throw( uno::RuntimeException, std::exception )
     {
-       uno::Sequence< OUString > aSNS( 1 );
-       aSNS.getArray()[ 0 ] = "com.sun.star.ucb.Content";
+       uno::Sequence<OUString> aSNS { "com.sun.star.ucb.Content" };
        return aSNS;
     }
 
diff --git a/ucb/source/ucp/ftp/ftpcontent.cxx b/ucb/source/ucp/ftp/ftpcontent.cxx
index 37468de..cac9bdb 100644
--- a/ucb/source/ucp/ftp/ftpcontent.cxx
+++ b/ucb/source/ucp/ftp/ftpcontent.cxx
@@ -201,8 +201,7 @@ css::uno::Sequence< OUString > SAL_CALL FTPContent::getSupportedServiceNames()
 
 css::uno::Sequence< OUString > FTPContent::getSupportedServiceNames_Static()
 {
-    css::uno::Sequence< OUString > aSNS( 1 );
-    aSNS.getArray()[ 0 ] = "com.sun.star.ucb.FTPContent";
+    css::uno::Sequence<OUString> aSNS { "com.sun.star.ucb.FTPContent" };
     return aSNS;
 }
 
diff --git a/ucb/source/ucp/ftp/ftpcontentprovider.cxx b/ucb/source/ucp/ftp/ftpcontentprovider.cxx
index f85f0a3..c6bc270 100644
--- a/ucb/source/ucp/ftp/ftpcontentprovider.cxx
+++ b/ucb/source/ucp/ftp/ftpcontentprovider.cxx
@@ -147,8 +147,7 @@ FTPContentProvider_CreateInstance( const css::uno::Reference<
 
 css::uno::Sequence< OUString > FTPContentProvider::getSupportedServiceNames_Static()
 {
-    css::uno::Sequence< OUString > aSNS( 1 );
-    aSNS.getArray()[ 0 ] = FTP_CONTENT_PROVIDER_SERVICE_NAME;
+    css::uno::Sequence<OUString> aSNS { FTP_CONTENT_PROVIDER_SERVICE_NAME };
     return aSNS;
 }
 
diff --git a/ucb/source/ucp/gio/gio_content.cxx b/ucb/source/ucp/gio/gio_content.cxx
index b02e33e..10b24e7 100644
--- a/ucb/source/ucp/gio/gio_content.cxx
+++ b/ucb/source/ucp/gio/gio_content.cxx
@@ -1353,8 +1353,7 @@ OUString SAL_CALL Content::getImplementationName() throw( uno::RuntimeException,
 uno::Sequence< OUString > SAL_CALL Content::getSupportedServiceNames()
        throw( uno::RuntimeException, std::exception )
 {
-       uno::Sequence< OUString > aSNS( 1 );
-       aSNS.getArray()[ 0 ] = "com.sun.star.ucb.GIOContent";
+       uno::Sequence<OUString> aSNS { "com.sun.star.ucb.GIOContent" };
        return aSNS;
 }
 
diff --git a/ucb/source/ucp/hierarchy/hierarchycontent.cxx b/ucb/source/ucp/hierarchy/hierarchycontent.cxx
index 7978064..4260e7f 100644
--- a/ucb/source/ucp/hierarchy/hierarchycontent.cxx
+++ b/ucb/source/ucp/hierarchy/hierarchycontent.cxx
@@ -1398,8 +1398,7 @@ void HierarchyContent::insert( sal_Int32 nNameClashResolve,
     // Check, if all required properties were set.
     if ( m_aProps.getTitle().isEmpty() )
     {
-        uno::Sequence< OUString > aProps( 1 );
-        aProps[ 0 ] = "Title";
+        uno::Sequence<OUString> aProps { "Title" };
         ucbhelper::cancelCommandExecution(
             uno::makeAny( ucb::MissingPropertiesException(
                                 OUString(),
diff --git a/ucb/source/ucp/webdav-neon/webdavcontent.cxx b/ucb/source/ucp/webdav-neon/webdavcontent.cxx
index e843b51..33c2686 100644
--- a/ucb/source/ucp/webdav-neon/webdavcontent.cxx
+++ b/ucb/source/ucp/webdav-neon/webdavcontent.cxx
@@ -345,8 +345,7 @@ OUString SAL_CALL Content::getImplementationName()
 uno::Sequence< OUString > SAL_CALL Content::getSupportedServiceNames()
     throw( uno::RuntimeException, std::exception )
 {
-    uno::Sequence< OUString > aSNS( 1 );
-    aSNS[ 0 ] = WEBDAV_CONTENT_SERVICE_NAME;
+    uno::Sequence<OUString> aSNS { WEBDAV_CONTENT_SERVICE_NAME };
     return aSNS;
 }
 
@@ -2269,8 +2268,7 @@ void Content::insert(
     {
         OSL_FAIL( "Content::insert - Title missing!" );
 
-        uno::Sequence< OUString > aProps( 1 );
-        aProps[ 0 ] = "Title";
+        uno::Sequence<OUString> aProps { "Title" };
         ucbhelper::cancelCommandExecution(
             uno::makeAny( ucb::MissingPropertiesException(
                                 OUString(),
diff --git a/ucb/source/ucp/webdav/webdavcontent.cxx b/ucb/source/ucp/webdav/webdavcontent.cxx
index 1fb3547..f35c3d9 100644
--- a/ucb/source/ucp/webdav/webdavcontent.cxx
+++ b/ucb/source/ucp/webdav/webdavcontent.cxx
@@ -450,8 +450,7 @@ OUString SAL_CALL Content::getImplementationName()
 uno::Sequence< OUString > SAL_CALL Content::getSupportedServiceNames()
     throw( uno::RuntimeException )
 {
-    uno::Sequence< OUString > aSNS( 1 );
-    aSNS.getArray()[ 0 ] = WEBDAV_CONTENT_SERVICE_NAME;
+    uno::Sequence<OUString> aSNS { WEBDAV_CONTENT_SERVICE_NAME };
     return aSNS;
 }
 
@@ -2409,8 +2408,7 @@ void Content::insert(
     {
         SAL_WARN( "ucb.ucp.webdav", "Content::insert - Title missing!" );
 
-        uno::Sequence< OUString > aProps( 1 );
-        aProps[ 0 ] = "Title";
+        uno::Sequence<OUString> aProps { "Title" };
         ucbhelper::cancelCommandExecution(
             uno::makeAny( ucb::MissingPropertiesException(
                                 OUString(),
diff --git a/ucbhelper/source/client/content.cxx b/ucbhelper/source/client/content.cxx
index 5962255..6a5b09f 100644
--- a/ucbhelper/source/client/content.cxx
+++ b/ucbhelper/source/client/content.cxx
@@ -448,8 +448,7 @@ Reference< XPropertySetInfo > Content::getProperties()
 Any Content::getPropertyValue( const OUString& rPropertyName )
     throw( CommandAbortedException, RuntimeException, Exception )
 {
-    Sequence< OUString > aNames( 1 );
-    aNames.getArray()[ 0 ] = rPropertyName;
+    Sequence<OUString> aNames { rPropertyName };
 
     Sequence< Any > aRet = getPropertyValues( aNames );
     return aRet.getConstArray()[ 0 ];
@@ -460,8 +459,7 @@ Any Content::setPropertyValue( const OUString& rName,
                                 const Any& rValue )
     throw( CommandAbortedException, RuntimeException, Exception )
 {
-    Sequence< OUString > aNames( 1 );
-    aNames.getArray()[ 0 ] = rName;
+    Sequence<OUString> aNames { rName };
 
     Sequence< Any > aValues( 1 );
     aValues.getArray()[ 0 ] = rValue;
diff --git a/writerperfect/source/common/DirectoryStream.cxx b/writerperfect/source/common/DirectoryStream.cxx
index 0f57a66..cfbb043 100644
--- a/writerperfect/source/common/DirectoryStream.cxx
+++ b/writerperfect/source/common/DirectoryStream.cxx
@@ -55,8 +55,7 @@ uno::Reference<io::XInputStream> findStream(ucbhelper::Content &rContent, const
 {
     uno::Reference<io::XInputStream> xInputStream;
 
-    uno::Sequence<rtl::OUString> lPropNames(1);
-    lPropNames[0] = "Title";
+    uno::Sequence<OUString> lPropNames { "Title" };
     try
     {
         const uno::Reference<sdbc::XResultSet> xResultSet(
diff --git a/xmlhelp/source/cxxhelp/provider/content.cxx b/xmlhelp/source/cxxhelp/provider/content.cxx
index d036ab9..24019cd 100644
--- a/xmlhelp/source/cxxhelp/provider/content.cxx
+++ b/xmlhelp/source/cxxhelp/provider/content.cxx
@@ -139,8 +139,7 @@ OUString SAL_CALL Content::getImplementationName()
 uno::Sequence< OUString > SAL_CALL Content::getSupportedServiceNames()
     throw( uno::RuntimeException, std::exception )
 {
-    uno::Sequence< OUString > aSNS( 1 );
-    aSNS.getArray()[ 0 ] = "com.sun.star.ucb.CHelpContent";
+    uno::Sequence<OUString> aSNS { "com.sun.star.ucb.CHelpContent" };
 
     return aSNS;
 }
diff --git a/xmloff/source/style/PageMasterImportContext.cxx b/xmloff/source/style/PageMasterImportContext.cxx
index 5c93fe6..b8b0f93 100644
--- a/xmloff/source/style/PageMasterImportContext.cxx
+++ b/xmloff/source/style/PageMasterImportContext.cxx
@@ -280,8 +280,7 @@ void PageStyleContext::FillPropertySet(const uno::Reference<beans::XPropertySet
                         }
                         catch(::com::sun::star::lang::IllegalArgumentException& e)
                         {
-                            Sequence< rtl::OUString > aSeq(1);
-                            aSeq[0] = sStyleName;
+                            Sequence<OUString> aSeq { sStyleName };
                             GetImport().SetError(
                                 XMLERROR_STYLE_PROP_VALUE | XMLERROR_FLAG_WARNING,
                                 aSeq,e.Message,nullptr);
diff --git a/xmloff/source/text/txtstyli.cxx b/xmloff/source/text/txtstyli.cxx
index 9e2f8a9..17a4b0c 100644
--- a/xmloff/source/text/txtstyli.cxx
+++ b/xmloff/source/text/txtstyli.cxx
@@ -590,8 +590,7 @@ void XMLTextStyleContext::FillPropertySet(
                         }
                         catch(::com::sun::star::lang::IllegalArgumentException& e)
                         {
-                            Sequence< rtl::OUString > aSeq(1);
-                            aSeq[0] = sStyleName;
+                            Sequence<OUString> aSeq { sStyleName };
                             GetImport().SetError(XMLERROR_STYLE_PROP_VALUE | XMLERROR_FLAG_WARNING, aSeq, e.Message, nullptr);
                         }
                         break;
diff --git a/xmlsecurity/source/component/documentdigitalsignatures.cxx b/xmlsecurity/source/component/documentdigitalsignatures.cxx
index a0cee49..3ee458f 100644
--- a/xmlsecurity/source/component/documentdigitalsignatures.cxx
+++ b/xmlsecurity/source/component/documentdigitalsignatures.cxx
@@ -502,9 +502,7 @@ OUString DocumentDigitalSignatures::GetImplementationName() throw (RuntimeExcept
 
 Sequence< OUString > DocumentDigitalSignatures::GetSupportedServiceNames() throw (css::uno::RuntimeException)
 {
-    Sequence < OUString > aRet(1);
-    OUString* pArray = aRet.getArray();
-    pArray[0] = "com.sun.star.security.DocumentDigitalSignatures";
+    Sequence<OUString> aRet { "com.sun.star.security.DocumentDigitalSignatures" };
     return aRet;
 }
 
diff --git a/xmlsecurity/source/framework/decryptorimpl.cxx b/xmlsecurity/source/framework/decryptorimpl.cxx
index 03e15f6..13577cf 100644
--- a/xmlsecurity/source/framework/decryptorimpl.cxx
+++ b/xmlsecurity/source/framework/decryptorimpl.cxx
@@ -187,9 +187,7 @@ OUString DecryptorImpl_getImplementationName ()
 cssu::Sequence< OUString > SAL_CALL DecryptorImpl_getSupportedServiceNames(  )
     throw (cssu::RuntimeException)
 {
-    cssu::Sequence < OUString > aRet(1);
-    OUString* pArray = aRet.getArray();
-    pArray[0] = "com.sun.star.xml.crypto.sax.Decryptor";
+    cssu::Sequence<OUString> aRet { "com.sun.star.xml.crypto.sax.Decryptor" };
     return aRet;
 }
 
diff --git a/xmlsecurity/source/framework/encryptorimpl.cxx b/xmlsecurity/source/framework/encryptorimpl.cxx
index 52652c9..03823e5 100644
--- a/xmlsecurity/source/framework/encryptorimpl.cxx
+++ b/xmlsecurity/source/framework/encryptorimpl.cxx
@@ -221,9 +221,7 @@ OUString EncryptorImpl_getImplementationName ()
 Sequence< OUString > SAL_CALL EncryptorImpl_getSupportedServiceNames(  )
     throw (RuntimeException)
 {
-    Sequence < OUString > aRet(1);
-    OUString* pArray = aRet.getArray();
-    pArray[0] = "com.sun.star.xml.crypto.sax.Encryptor";
+    Sequence<OUString> aRet { "com.sun.star.xml.crypto.sax.Encryptor" };
     return aRet;
 }
 
diff --git a/xmlsecurity/source/framework/saxeventkeeperimpl.cxx b/xmlsecurity/source/framework/saxeventkeeperimpl.cxx
index 583aeb7..c226edf 100644
--- a/xmlsecurity/source/framework/saxeventkeeperimpl.cxx
+++ b/xmlsecurity/source/framework/saxeventkeeperimpl.cxx
@@ -1357,9 +1357,7 @@ OUString SAXEventKeeperImpl_getImplementationName ()
 cssu::Sequence< OUString > SAL_CALL SAXEventKeeperImpl_getSupportedServiceNames(  )
     throw (cssu::RuntimeException)
 {
-    cssu::Sequence < OUString > aRet(1);
-    OUString* pArray = aRet.getArray();
-    pArray[0] = "com.sun.star.xml.crypto.sax.SAXEventKeeper";
+    cssu::Sequence<OUString> aRet { "com.sun.star.xml.crypto.sax.SAXEventKeeper" };
     return aRet;
 }
 
diff --git a/xmlsecurity/source/framework/signaturecreatorimpl.cxx b/xmlsecurity/source/framework/signaturecreatorimpl.cxx
index b9e3b69..ee90642 100644
--- a/xmlsecurity/source/framework/signaturecreatorimpl.cxx
+++ b/xmlsecurity/source/framework/signaturecreatorimpl.cxx
@@ -235,9 +235,7 @@ OUString SignatureCreatorImpl_getImplementationName ()
 cssu::Sequence< OUString > SAL_CALL SignatureCreatorImpl_getSupportedServiceNames(  )
     throw (cssu::RuntimeException)
 {
-    cssu::Sequence < OUString > aRet(1);
-    OUString* pArray = aRet.getArray();
-    pArray[0] = "com.sun.star.xml.crypto.sax.SignatureCreator";
+    cssu::Sequence<OUString> aRet { "com.sun.star.xml.crypto.sax.SignatureCreator" };
     return aRet;
 }
 
diff --git a/xmlsecurity/source/framework/signatureverifierimpl.cxx b/xmlsecurity/source/framework/signatureverifierimpl.cxx
index 9cad609..6d3f0ef 100644
--- a/xmlsecurity/source/framework/signatureverifierimpl.cxx
+++ b/xmlsecurity/source/framework/signatureverifierimpl.cxx
@@ -181,9 +181,7 @@ OUString SignatureVerifierImpl_getImplementationName ()
 cssu::Sequence< OUString > SAL_CALL SignatureVerifierImpl_getSupportedServiceNames(  )
     throw (cssu::RuntimeException)
 {
-    cssu::Sequence < OUString > aRet(1);
-    OUString* pArray = aRet.getArray();
-    pArray[0] = "com.sun.star.xml.crypto.sax.SignatureVerifier";
+    cssu::Sequence<OUString> aRet { "com.sun.star.xml.crypto.sax.SignatureVerifier" };
     return aRet;
 }
 
diff --git a/xmlsecurity/source/framework/xmlencryptiontemplateimpl.cxx b/xmlsecurity/source/framework/xmlencryptiontemplateimpl.cxx
index b5cd81f..fc90a1d 100644
--- a/xmlsecurity/source/framework/xmlencryptiontemplateimpl.cxx
+++ b/xmlsecurity/source/framework/xmlencryptiontemplateimpl.cxx
@@ -102,8 +102,7 @@ Sequence< OUString > SAL_CALL XMLEncryptionTemplateImpl::getSupportedServiceName
 //Helper for XServiceInfo
 Sequence< OUString > XMLEncryptionTemplateImpl::impl_getSupportedServiceNames() {
     ::osl::Guard< ::osl::Mutex > aGuard( ::osl::Mutex::getGlobalMutex() ) ;
-    Sequence< OUString > seqServiceNames( 1 ) ;
-    seqServiceNames[0] = "com.sun.star.xml.crypto.XMLEncryptionTemplate";
+    Sequence<OUString> seqServiceNames { "com.sun.star.xml.crypto.XMLEncryptionTemplate" };
     return seqServiceNames;
 }
 
diff --git a/xmlsecurity/source/framework/xmlsignaturetemplateimpl.cxx b/xmlsecurity/source/framework/xmlsignaturetemplateimpl.cxx
index b7dac40..9532e12 100644
--- a/xmlsecurity/source/framework/xmlsignaturetemplateimpl.cxx
+++ b/xmlsecurity/source/framework/xmlsignaturetemplateimpl.cxx
@@ -128,8 +128,7 @@ Sequence< OUString > SAL_CALL XMLSignatureTemplateImpl::getSupportedServiceNames
 //Helper for XServiceInfo
 Sequence< OUString > XMLSignatureTemplateImpl::impl_getSupportedServiceNames() {
     ::osl::Guard< ::osl::Mutex > aGuard( ::osl::Mutex::getGlobalMutex() ) ;
-    Sequence< OUString > seqServiceNames( 1 ) ;
-    seqServiceNames[0] = "com.sun.star.xml.crypto.XMLSignatureTemplate";
+    Sequence<OUString> seqServiceNames { "com.sun.star.xml.crypto.XMLSignatureTemplate" };
     return seqServiceNames ;
 }
 
diff --git a/xmlsecurity/source/xmlsec/mscrypt/securityenvironment_mscryptimpl.cxx b/xmlsecurity/source/xmlsec/mscrypt/securityenvironment_mscryptimpl.cxx
index ab794e8..7c99df8 100644
--- a/xmlsecurity/source/xmlsec/mscrypt/securityenvironment_mscryptimpl.cxx
+++ b/xmlsecurity/source/xmlsec/mscrypt/securityenvironment_mscryptimpl.cxx
@@ -195,8 +195,7 @@ Sequence< OUString > SAL_CALL SecurityEnvironment_MSCryptImpl::getSupportedServi
 //Helper for XServiceInfo
 Sequence< OUString > SecurityEnvironment_MSCryptImpl::impl_getSupportedServiceNames() {
     ::osl::Guard< ::osl::Mutex > aGuard( ::osl::Mutex::getGlobalMutex() ) ;
-    Sequence< OUString > seqServiceNames( 1 ) ;
-    seqServiceNames[0] = "com.sun.star.xml.crypto.SecurityEnvironment";
+    Sequence<OUString> seqServiceNames { "com.sun.star.xml.crypto.SecurityEnvironment" };
     return seqServiceNames ;
 }
 
diff --git a/xmlsecurity/source/xmlsec/mscrypt/seinitializer_mscryptimpl.cxx b/xmlsecurity/source/xmlsec/mscrypt/seinitializer_mscryptimpl.cxx
index 8ca0d7d..985dc2c 100644
--- a/xmlsecurity/source/xmlsec/mscrypt/seinitializer_mscryptimpl.cxx
+++ b/xmlsecurity/source/xmlsec/mscrypt/seinitializer_mscryptimpl.cxx
@@ -156,9 +156,7 @@ OUString SEInitializer_MSCryptImpl_getImplementationName()
 cssu::Sequence< OUString > SAL_CALL SEInitializer_MSCryptImpl_getSupportedServiceNames()
     throw (cssu::RuntimeException)
 {
-    cssu::Sequence < OUString > aRet(1);
-    OUString* pArray = aRet.getArray();
-    pArray[0] = "com.sun.star.xml.crypto.SEInitializer";
+    cssu::Sequence<OUString> aRet { "com.sun.star.xml.crypto.SEInitializer" };
     return aRet;
 }
 
diff --git a/xmlsecurity/source/xmlsec/mscrypt/xmlencryption_mscryptimpl.cxx b/xmlsecurity/source/xmlsec/mscrypt/xmlencryption_mscryptimpl.cxx
index 93c20b8..3d59737 100644
--- a/xmlsecurity/source/xmlsec/mscrypt/xmlencryption_mscryptimpl.cxx
+++ b/xmlsecurity/source/xmlsec/mscrypt/xmlencryption_mscryptimpl.cxx
@@ -343,8 +343,7 @@ Sequence< OUString > SAL_CALL XMLEncryption_MSCryptImpl::getSupportedServiceName
 //Helper for XServiceInfo
 Sequence< OUString > XMLEncryption_MSCryptImpl::impl_getSupportedServiceNames() {
     ::osl::Guard< ::osl::Mutex > aGuard( ::osl::Mutex::getGlobalMutex() ) ;
-    Sequence< OUString > seqServiceNames( 1 ) ;
-    seqServiceNames[0] = "com.sun.star.xml.crypto.XMLEncryption";
+    Sequence<OUString> seqServiceNames { "com.sun.star.xml.crypto.XMLEncryption" };
     return seqServiceNames ;
 }
 
diff --git a/xmlsecurity/source/xmlsec/mscrypt/xmlsecuritycontext_mscryptimpl.cxx b/xmlsecurity/source/xmlsec/mscrypt/xmlsecuritycontext_mscryptimpl.cxx
index 018c003..39fa1e2 100644
--- a/xmlsecurity/source/xmlsec/mscrypt/xmlsecuritycontext_mscryptimpl.cxx
+++ b/xmlsecurity/source/xmlsec/mscrypt/xmlsecuritycontext_mscryptimpl.cxx
@@ -139,8 +139,7 @@ Sequence< OUString > SAL_CALL XMLSecurityContext_MSCryptImpl::getSupportedServic
 //Helper for XServiceInfo
 Sequence< OUString > XMLSecurityContext_MSCryptImpl::impl_getSupportedServiceNames() {
     ::osl::Guard< ::osl::Mutex > aGuard( ::osl::Mutex::getGlobalMutex() ) ;
-    Sequence< OUString > seqServiceNames( 1 ) ;
-    seqServiceNames[0] = "com.sun.star.xml.crypto.XMLSecurityContext";
+    Sequence<OUString> seqServiceNames { "com.sun.star.xml.crypto.XMLSecurityContext" };
     return seqServiceNames ;
 }
 
diff --git a/xmlsecurity/source/xmlsec/mscrypt/xmlsignature_mscryptimpl.cxx b/xmlsecurity/source/xmlsec/mscrypt/xmlsignature_mscryptimpl.cxx
index 9dbaac4..98ba662 100644
--- a/xmlsecurity/source/xmlsec/mscrypt/xmlsignature_mscryptimpl.cxx
+++ b/xmlsecurity/source/xmlsec/mscrypt/xmlsignature_mscryptimpl.cxx
@@ -272,8 +272,7 @@ Sequence< OUString > SAL_CALL XMLSignature_MSCryptImpl::getSupportedServiceNames
 //Helper for XServiceInfo
 Sequence< OUString > XMLSignature_MSCryptImpl::impl_getSupportedServiceNames() {
     ::osl::Guard< ::osl::Mutex > aGuard( ::osl::Mutex::getGlobalMutex() ) ;
-    Sequence< OUString > seqServiceNames( 1 ) ;
-    seqServiceNames[0] = "com.sun.star.xml.crypto.XMLSignature";
+    Sequence<OUString> seqServiceNames { "com.sun.star.xml.crypto.XMLSignature" };
     return seqServiceNames ;
 }
 
diff --git a/xmlsecurity/source/xmlsec/nss/nssinitializer.cxx b/xmlsecurity/source/xmlsec/nss/nssinitializer.cxx
index dff7cd7..b727668 100644
--- a/xmlsecurity/source/xmlsec/nss/nssinitializer.cxx
+++ b/xmlsecurity/source/xmlsec/nss/nssinitializer.cxx
@@ -471,9 +471,7 @@ OUString ONSSInitializer_getImplementationName ()
 cssu::Sequence< OUString > SAL_CALL ONSSInitializer_getSupportedServiceNames(  )
     throw (cssu::RuntimeException)
 {
-    cssu::Sequence < OUString > aRet(1);
-    OUString* pArray = aRet.getArray();
-    pArray[0] = NSS_SERVICE_NAME;
+    cssu::Sequence<OUString> aRet { NSS_SERVICE_NAME };
     return aRet;
 }
 
diff --git a/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx b/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx
index ff08ce6..8d367b7 100644
--- a/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx
+++ b/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx
@@ -166,8 +166,7 @@ Sequence< OUString > SAL_CALL SecurityEnvironment_NssImpl::getSupportedServiceNa
 //Helper for XServiceInfo
 Sequence< OUString > SecurityEnvironment_NssImpl::impl_getSupportedServiceNames() {
     ::osl::Guard< ::osl::Mutex > aGuard( ::osl::Mutex::getGlobalMutex() ) ;
-    Sequence< OUString > seqServiceNames( 1 ) ;
-    seqServiceNames[0] = "com.sun.star.xml.crypto.SecurityEnvironment";
+    Sequence<OUString> seqServiceNames { "com.sun.star.xml.crypto.SecurityEnvironment" };
     return seqServiceNames ;
 }
 
diff --git a/xmlsecurity/source/xmlsec/nss/xmlencryption_nssimpl.cxx b/xmlsecurity/source/xmlsec/nss/xmlencryption_nssimpl.cxx
index 921178f..176d56f 100644
--- a/xmlsecurity/source/xmlsec/nss/xmlencryption_nssimpl.cxx
+++ b/xmlsecurity/source/xmlsec/nss/xmlencryption_nssimpl.cxx
@@ -333,8 +333,7 @@ Sequence< OUString > SAL_CALL XMLEncryption_NssImpl::getSupportedServiceNames()
 //Helper for XServiceInfo
 Sequence< OUString > XMLEncryption_NssImpl::impl_getSupportedServiceNames() {
     ::osl::Guard< ::osl::Mutex > aGuard( ::osl::Mutex::getGlobalMutex() ) ;
-    Sequence< OUString > seqServiceNames( 1 ) ;
-    seqServiceNames[0] = "com.sun.star.xml.crypto.XMLEncryption";
+    Sequence<OUString> seqServiceNames { "com.sun.star.xml.crypto.XMLEncryption" };
     return seqServiceNames ;
 }
 
diff --git a/xmlsecurity/source/xmlsec/nss/xmlsecuritycontext_nssimpl.cxx b/xmlsecurity/source/xmlsec/nss/xmlsecuritycontext_nssimpl.cxx
index 967a50a..7cd8ba5 100644
--- a/xmlsecurity/source/xmlsec/nss/xmlsecuritycontext_nssimpl.cxx
+++ b/xmlsecurity/source/xmlsec/nss/xmlsecuritycontext_nssimpl.cxx
@@ -146,8 +146,7 @@ Sequence< OUString > SAL_CALL XMLSecurityContext_NssImpl::getSupportedServiceNam
 //Helper for XServiceInfo
 Sequence< OUString > XMLSecurityContext_NssImpl::impl_getSupportedServiceNames() {
     ::osl::Guard< ::osl::Mutex > aGuard( ::osl::Mutex::getGlobalMutex() ) ;
-    Sequence< OUString > seqServiceNames( 1 ) ;
-    seqServiceNames[0] = "com.sun.star.xml.crypto.XMLSecurityContext";
+    Sequence<OUString> seqServiceNames { "com.sun.star.xml.crypto.XMLSecurityContext" };
     return seqServiceNames ;
 }
 
diff --git a/xmlsecurity/source/xmlsec/nss/xmlsignature_nssimpl.cxx b/xmlsecurity/source/xmlsec/nss/xmlsignature_nssimpl.cxx
index 5d30bf7..9607753 100644
--- a/xmlsecurity/source/xmlsec/nss/xmlsignature_nssimpl.cxx
+++ b/xmlsecurity/source/xmlsec/nss/xmlsignature_nssimpl.cxx
@@ -296,8 +296,7 @@ Sequence< OUString > SAL_CALL XMLSignature_NssImpl::getSupportedServiceNames() t
 //Helper for XServiceInfo
 Sequence< OUString > XMLSignature_NssImpl::impl_getSupportedServiceNames() {
     ::osl::Guard< ::osl::Mutex > aGuard( ::osl::Mutex::getGlobalMutex() ) ;
-    Sequence< OUString > seqServiceNames( 1 ) ;
-    seqServiceNames[0] = "com.sun.star.xml.crypto.XMLSignature";
+    Sequence<OUString> seqServiceNames { "com.sun.star.xml.crypto.XMLSignature" };
     return seqServiceNames ;
 }
 
diff --git a/xmlsecurity/source/xmlsec/xmldocumentwrapper_xmlsecimpl.cxx b/xmlsecurity/source/xmlsec/xmldocumentwrapper_xmlsecimpl.cxx
index 5af8716..af7543b 100644
--- a/xmlsecurity/source/xmlsec/xmldocumentwrapper_xmlsecimpl.cxx
+++ b/xmlsecurity/source/xmlsec/xmldocumentwrapper_xmlsecimpl.cxx
@@ -1064,9 +1064,7 @@ OUString XMLDocumentWrapper_XmlSecImpl_getImplementationName ()
 cssu::Sequence< OUString > SAL_CALL XMLDocumentWrapper_XmlSecImpl_getSupportedServiceNames(  )
     throw (cssu::RuntimeException)
 {
-    cssu::Sequence < OUString > aRet(1);
-    OUString* pArray = aRet.getArray();
-    pArray[0] = "com.sun.star.xml.wrapper.XMLDocumentWrapper";
+    cssu::Sequence<OUString> aRet { "com.sun.star.xml.wrapper.XMLDocumentWrapper" };
     return aRet;
 }
 
diff --git a/xmlsecurity/source/xmlsec/xmlelementwrapper_xmlsecimpl.cxx b/xmlsecurity/source/xmlsec/xmlelementwrapper_xmlsecimpl.cxx
index 14e6ff3..a9ce4ed 100644
--- a/xmlsecurity/source/xmlsec/xmlelementwrapper_xmlsecimpl.cxx
+++ b/xmlsecurity/source/xmlsec/xmlelementwrapper_xmlsecimpl.cxx
@@ -80,9 +80,7 @@ OUString XMLElementWrapper_XmlSecImpl_getImplementationName ()

... etc. - the rest is truncated


More information about the Libreoffice-commits mailing list