[Libreoffice-commits] core.git: accessibility/source connectivity/source i18npool/source sax/source sd/source stoc/source svl/source svtools/source svx/source

Mesut Çifci (via logerrit) logerrit at kemper.freedesktop.org
Wed Jan 15 13:52:36 UTC 2020


 accessibility/source/standard/vclxaccessibleheaderbar.cxx         |    3 +--
 connectivity/source/drivers/firebird/Column.cxx                   |    4 +---
 i18npool/source/ordinalsuffix/ordinalsuffix.cxx                   |    3 +--
 sax/source/fastparser/legacyfastparser.cxx                        |    3 +--
 sd/source/ui/unoidl/sddetect.cxx                                  |    3 +--
 sd/source/ui/unoidl/unomodule.cxx                                 |    3 +--
 stoc/source/security/file_policy.cxx                              |    3 +--
 stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTexpand.cxx |    3 +--
 stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTscript.cxx |    3 +--
 svl/source/numbers/supservs.cxx                                   |    3 +--
 svtools/source/uno/addrtempuno.cxx                                |    3 +--
 svx/source/customshapes/EnhancedCustomShapeEngine.cxx             |    3 +--
 svx/source/tbxctrls/fontworkgallery.cxx                           |    3 +--
 13 files changed, 13 insertions(+), 27 deletions(-)

New commits:
commit 15abfe9ae976a0d940725cdd570facc372981393
Author:     Mesut Çifci <mesutcifci97 at gmail.com>
AuthorDate: Tue Jan 14 14:35:40 2020 +0300
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Wed Jan 15 14:52:04 2020 +0100

    tdf#88205 Adapt uses of css::uno::Sequence to use initializer_list ctor
    
    Change-Id: Ice7c0ecc8ee05a5c3b0af458ceeee8191bdde322
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86752
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/accessibility/source/standard/vclxaccessibleheaderbar.cxx b/accessibility/source/standard/vclxaccessibleheaderbar.cxx
index 65558bf26630..9eb46e5fea05 100644
--- a/accessibility/source/standard/vclxaccessibleheaderbar.cxx
+++ b/accessibility/source/standard/vclxaccessibleheaderbar.cxx
@@ -57,8 +57,7 @@ OUString VCLXAccessibleHeaderBar::getImplementationName()
 
 Sequence< OUString > VCLXAccessibleHeaderBar::getSupportedServiceNames()
 {
-    Sequence<OUString> aNames { "com.sun.star.awt.AccessibleHeaderBar" };
-    return aNames;
+    return { "com.sun.star.awt.AccessibleHeaderBar" };
 }
 
 // =======XAccessibleContext=======
diff --git a/connectivity/source/drivers/firebird/Column.cxx b/connectivity/source/drivers/firebird/Column.cxx
index 31767bf9c4b5..aa8abf9bb75c 100644
--- a/connectivity/source/drivers/firebird/Column.cxx
+++ b/connectivity/source/drivers/firebird/Column.cxx
@@ -45,9 +45,7 @@ void Column::construct()
 
 css::uno::Sequence< OUString > SAL_CALL Column::getSupportedServiceNames(  )
 {
-    css::uno::Sequence< OUString > aSupported { "com.sun.star.sdbc.Firebird" };
-
-    return aSupported;
+    return { "com.sun.star.sdbc.Firebird" };
 }
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/i18npool/source/ordinalsuffix/ordinalsuffix.cxx b/i18npool/source/ordinalsuffix/ordinalsuffix.cxx
index 69cf0cad795e..6f7f966cbe01 100644
--- a/i18npool/source/ordinalsuffix/ordinalsuffix.cxx
+++ b/i18npool/source/ordinalsuffix/ordinalsuffix.cxx
@@ -148,8 +148,7 @@ sal_Bool SAL_CALL OrdinalSuffixService::supportsService( const OUString& rServic
 
 Sequence< OUString > SAL_CALL OrdinalSuffixService::getSupportedServiceNames()
 {
-    Sequence< OUString > aRet { cOrdinalSuffix };
-    return aRet;
+    return { cOrdinalSuffix };
 }
 
 }
diff --git a/sax/source/fastparser/legacyfastparser.cxx b/sax/source/fastparser/legacyfastparser.cxx
index 6399e5069a44..6b11fbb3754a 100644
--- a/sax/source/fastparser/legacyfastparser.cxx
+++ b/sax/source/fastparser/legacyfastparser.cxx
@@ -362,8 +362,7 @@ sal_Bool SaxLegacyFastParser::supportsService(const OUString& ServiceName)
 
 Sequence< OUString > SaxLegacyFastParser::getSupportedServiceNames()
 {
-    Sequence<OUString> seq { "com.sun.star.xml.sax.LegacyFastParser" };
-    return seq;
+    return { "com.sun.star.xml.sax.LegacyFastParser" };
 }
 
 } //namespace
diff --git a/sd/source/ui/unoidl/sddetect.cxx b/sd/source/ui/unoidl/sddetect.cxx
index 5a7ed99dcc8b..fb66f4fabc59 100644
--- a/sd/source/ui/unoidl/sddetect.cxx
+++ b/sd/source/ui/unoidl/sddetect.cxx
@@ -146,8 +146,7 @@ sal_Bool SAL_CALL SdFilterDetect::supportsService( const OUString& sServiceName
 // XServiceInfo
 Sequence< OUString > SAL_CALL SdFilterDetect::getSupportedServiceNames()
 {
-    Sequence<OUString> seqServiceNames { "com.sun.star.frame.ExtendedTypeDetection" };
-    return seqServiceNames ;
+    return { "com.sun.star.frame.ExtendedTypeDetection" };
 }
 
 
diff --git a/sd/source/ui/unoidl/unomodule.cxx b/sd/source/ui/unoidl/unomodule.cxx
index 813bfcdb2aff..0ea5527b3548 100644
--- a/sd/source/ui/unoidl/unomodule.cxx
+++ b/sd/source/ui/unoidl/unomodule.cxx
@@ -115,8 +115,7 @@ sal_Bool SAL_CALL SdUnoModule::supportsService( const OUString& sServiceName )
 
 uno::Sequence< OUString > SAL_CALL SdUnoModule::getSupportedServiceNames(  )
 {
-    uno::Sequence<OUString> aSeq { "com.sun.star.drawing.ModuleDispatcher" };
-    return aSeq;
+    return { "com.sun.star.drawing.ModuleDispatcher" };
 }
 
 
diff --git a/stoc/source/security/file_policy.cxx b/stoc/source/security/file_policy.cxx
index 05cbddbfc4ab..97b0496a9c6b 100644
--- a/stoc/source/security/file_policy.cxx
+++ b/stoc/source/security/file_policy.cxx
@@ -479,8 +479,7 @@ sal_Bool FilePolicy::supportsService( OUString const & serviceName )
 
 Sequence< OUString > FilePolicy::getSupportedServiceNames()
 {
-    Sequence<OUString> aSNS { "com.sun.star.security.Policy" };
-    return aSNS;
+    return { "com.sun.star.security.Policy" };
 }
 
 } // namespace
diff --git a/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTexpand.cxx b/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTexpand.cxx
index 1b73543bc5fb..dde6fcb0605f 100644
--- a/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTexpand.cxx
+++ b/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTexpand.cxx
@@ -173,8 +173,7 @@ sal_Bool Parser::supportsService(OUString const & serviceName)
 
 css::uno::Sequence< OUString > Parser::getSupportedServiceNames()
 {
-    css::uno::Sequence< OUString > s { "com.sun.star.uri.UriSchemeParser_vndDOTsunDOTstarDOTexpand" };
-    return s;
+    return { "com.sun.star.uri.UriSchemeParser_vndDOTsunDOTstarDOTexpand" };
 }
 
 css::uno::Reference< css::uri::XUriReference > Parser::parse(
diff --git a/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTscript.cxx b/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTscript.cxx
index 224d273fafb1..6f8624d270fb 100644
--- a/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTscript.cxx
+++ b/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTscript.cxx
@@ -384,8 +384,7 @@ sal_Bool Parser::supportsService(OUString const & serviceName)
 
 css::uno::Sequence< OUString > Parser::getSupportedServiceNames()
 {
-    css::uno::Sequence< OUString > s { "com.sun.star.uri.UriSchemeParser_vndDOTsunDOTstarDOTscript" };
-    return s;
+    return { "com.sun.star.uri.UriSchemeParser_vndDOTsunDOTstarDOTscript" };
 }
 
 css::uno::Reference< css::uri::XUriReference >
diff --git a/svl/source/numbers/supservs.cxx b/svl/source/numbers/supservs.cxx
index 307dbd11cbb2..30001d02966a 100644
--- a/svl/source/numbers/supservs.cxx
+++ b/svl/source/numbers/supservs.cxx
@@ -108,8 +108,7 @@ sal_Bool SAL_CALL SvNumberFormatsSupplierServiceObject::supportsService( const O
 
 Sequence< OUString > SAL_CALL SvNumberFormatsSupplierServiceObject::getSupportedServiceNames(  )
 {
-    Sequence< OUString > aSupported { "com.sun.star.util.NumberFormatsSupplier" };
-    return aSupported;
+    return { "com.sun.star.util.NumberFormatsSupplier" };
 }
 
 Reference< XPropertySet > SAL_CALL SvNumberFormatsSupplierServiceObject::getNumberFormatSettings()
diff --git a/svtools/source/uno/addrtempuno.cxx b/svtools/source/uno/addrtempuno.cxx
index 7af43f88e95c..3d3a8c4a11e6 100644
--- a/svtools/source/uno/addrtempuno.cxx
+++ b/svtools/source/uno/addrtempuno.cxx
@@ -101,8 +101,7 @@ namespace {
 
     css::uno::Sequence<OUString> SAL_CALL OAddressBookSourceDialogUno::getSupportedServiceNames()
     {
-        css::uno::Sequence<OUString> aSupported { "com.sun.star.ui.AddressBookSourceDialog" };
-        return aSupported;
+        return { "com.sun.star.ui.AddressBookSourceDialog" };
     }
 
 
diff --git a/svx/source/customshapes/EnhancedCustomShapeEngine.cxx b/svx/source/customshapes/EnhancedCustomShapeEngine.cxx
index a7b08f99afc4..4eafe4712d7a 100644
--- a/svx/source/customshapes/EnhancedCustomShapeEngine.cxx
+++ b/svx/source/customshapes/EnhancedCustomShapeEngine.cxx
@@ -143,8 +143,7 @@ sal_Bool SAL_CALL EnhancedCustomShapeEngine::supportsService( const OUString& rS
 }
 Sequence< OUString > SAL_CALL EnhancedCustomShapeEngine::getSupportedServiceNames()
 {
-    Sequence<OUString> aRet { "com.sun.star.drawing.CustomShapeEngine" };
-    return aRet;
+    return { "com.sun.star.drawing.CustomShapeEngine" };
 }
 
 // XCustomShapeEngine
diff --git a/svx/source/tbxctrls/fontworkgallery.cxx b/svx/source/tbxctrls/fontworkgallery.cxx
index 3d22213ca065..10b29b7f29d4 100644
--- a/svx/source/tbxctrls/fontworkgallery.cxx
+++ b/svx/source/tbxctrls/fontworkgallery.cxx
@@ -406,8 +406,7 @@ OUString FontworkAlignmentControl::getImplementationName()
 
 Sequence< OUString > FontworkAlignmentControl::getSupportedServiceNames()
 {
-    Sequence<OUString> aSNS { "com.sun.star.frame.ToolbarController" };
-    return aSNS;
+    return { "com.sun.star.frame.ToolbarController" };
 }
 
 


More information about the Libreoffice-commits mailing list