summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYusuf Keten <ketenyusuf@gmail.com>2020-01-11 19:01:20 +0300
committerStephan Bergmann <sbergman@redhat.com>2020-01-12 17:09:42 +0100
commit1be03e47df4281a2a855a61b71f006dea0e212ff (patch)
treef40448af87cfca8ddc0f97565451018e0ad1c791
parenttdf#88205 Adapt uses of css::uno::Sequence to use initializer_list ctor (diff)
downloadcore-1be03e47df4281a2a855a61b71f006dea0e212ff.tar.gz
core-1be03e47df4281a2a855a61b71f006dea0e212ff.zip
tdf88205 Adapt uses of css::uno::Sequence to use initializer_list ctor
Change-Id: I5eb9c58f511a6ded473eb3fb998fd21584c227d8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86607 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
-rw-r--r--dbaccess/source/filter/xml/xmlfilter.cxx3
-rw-r--r--dbaccess/source/ui/browser/unodatbr.cxx3
-rw-r--r--package/source/zippackage/ZipPackage.cxx3
-rw-r--r--sc/source/ui/sidebar/ScPanelFactory.cxx3
-rw-r--r--sc/source/ui/unoobj/appluno.cxx3
-rw-r--r--sc/source/ui/unoobj/miscuno.cxx3
-rw-r--r--sc/source/ui/unoobj/pageuno.cxx3
-rw-r--r--sc/source/ui/unoobj/scdetect.cxx3
-rw-r--r--sccomp/source/solver/SwarmSolver.cxx3
-rw-r--r--svx/source/tbxctrls/tbunocontroller.cxx3
10 files changed, 10 insertions, 20 deletions
diff --git a/dbaccess/source/filter/xml/xmlfilter.cxx b/dbaccess/source/filter/xml/xmlfilter.cxx
index d0b93e21f80d..9aba80c73801 100644
--- a/dbaccess/source/filter/xml/xmlfilter.cxx
+++ b/dbaccess/source/filter/xml/xmlfilter.cxx
@@ -218,8 +218,7 @@ OUString ODBFilter::getImplementationName_Static()
css::uno::Sequence<OUString> ODBFilter::getSupportedServiceNames_Static()
{
- css::uno::Sequence<OUString> s { "com.sun.star.document.ImportFilter" };
- return s;
+ return { "com.sun.star.document.ImportFilter" };
}
diff --git a/dbaccess/source/ui/browser/unodatbr.cxx b/dbaccess/source/ui/browser/unodatbr.cxx
index e5c095e185e9..02c1e734ac6c 100644
--- a/dbaccess/source/ui/browser/unodatbr.cxx
+++ b/dbaccess/source/ui/browser/unodatbr.cxx
@@ -198,8 +198,7 @@ OUString SbaTableQueryBrowser::getImplementationName_Static()
css::uno::Sequence<OUString> SbaTableQueryBrowser::getSupportedServiceNames_Static()
{
- css::uno::Sequence<OUString> aSupported { "com.sun.star.sdb.DataSourceBrowser" };
- return aSupported;
+ return { "com.sun.star.sdb.DataSourceBrowser" };
}
Reference< XInterface > SbaTableQueryBrowser::Create(const Reference<XMultiServiceFactory >& _rxFactory)
diff --git a/package/source/zippackage/ZipPackage.cxx b/package/source/zippackage/ZipPackage.cxx
index 7a0b8c1934ec..9f5d9f632cf7 100644
--- a/package/source/zippackage/ZipPackage.cxx
+++ b/package/source/zippackage/ZipPackage.cxx
@@ -1683,8 +1683,7 @@ OUString ZipPackage::static_getImplementationName()
Sequence< OUString > ZipPackage::static_getSupportedServiceNames()
{
- uno::Sequence<OUString> aNames { "com.sun.star.packages.Package" };
- return aNames;
+ return { "com.sun.star.packages.Package" };
}
OUString ZipPackage::getImplementationName()
diff --git a/sc/source/ui/sidebar/ScPanelFactory.cxx b/sc/source/ui/sidebar/ScPanelFactory.cxx
index 7257b5b07972..b3f69e7b0e08 100644
--- a/sc/source/ui/sidebar/ScPanelFactory.cxx
+++ b/sc/source/ui/sidebar/ScPanelFactory.cxx
@@ -128,8 +128,7 @@ sal_Bool ScPanelFactory::supportsService(OUString const & ServiceName)
css::uno::Sequence<OUString> ScPanelFactory::getSupportedServiceNames()
{
- css::uno::Sequence<OUString> aServiceNames { "com.sun.star.ui.UIElementFactory" };
- return aServiceNames;
+ return { "com.sun.star.ui.UIElementFactory" };
}
} } // end of namespace sc::sidebar
diff --git a/sc/source/ui/unoobj/appluno.cxx b/sc/source/ui/unoobj/appluno.cxx
index 683714501a15..4eebb81d8ff9 100644
--- a/sc/source/ui/unoobj/appluno.cxx
+++ b/sc/source/ui/unoobj/appluno.cxx
@@ -191,8 +191,7 @@ OUString ScSpreadsheetSettings::getImplementationName_Static()
uno::Sequence<OUString> ScSpreadsheetSettings::getSupportedServiceNames_Static()
{
- uno::Sequence<OUString> aRet { SCSPREADSHEETSETTINGS_SERVICE };
- return aRet;
+ return { SCSPREADSHEETSETTINGS_SERVICE };
}
bool ScSpreadsheetSettings::getPropertyBool(const OUString& aPropertyName)
diff --git a/sc/source/ui/unoobj/miscuno.cxx b/sc/source/ui/unoobj/miscuno.cxx
index c8ccfa464295..9a74f7291c72 100644
--- a/sc/source/ui/unoobj/miscuno.cxx
+++ b/sc/source/ui/unoobj/miscuno.cxx
@@ -228,8 +228,7 @@ sal_Bool SAL_CALL ScIndexEnumeration::supportsService( const OUString& ServiceNa
css::uno::Sequence< OUString >
SAL_CALL ScIndexEnumeration::getSupportedServiceNames()
{
- css::uno::Sequence<OUString> aRet { sServiceName };
- return aRet;
+ return { sServiceName };
}
ScNameToIndexAccess::ScNameToIndexAccess( const css::uno::Reference<
diff --git a/sc/source/ui/unoobj/pageuno.cxx b/sc/source/ui/unoobj/pageuno.cxx
index 3455537ff149..5de45a583953 100644
--- a/sc/source/ui/unoobj/pageuno.cxx
+++ b/sc/source/ui/unoobj/pageuno.cxx
@@ -54,8 +54,7 @@ sal_Bool SAL_CALL ScPageObj::supportsService( const OUString& rServiceName )
uno::Sequence<OUString> SAL_CALL ScPageObj::getSupportedServiceNames()
{
- uno::Sequence<OUString> aRet { "com.sun.star.sheet.SpreadsheetDrawPage" };
- return aRet;
+ return { "com.sun.star.sheet.SpreadsheetDrawPage" };
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sc/source/ui/unoobj/scdetect.cxx b/sc/source/ui/unoobj/scdetect.cxx
index 711457f791f1..b9ca1180c7df 100644
--- a/sc/source/ui/unoobj/scdetect.cxx
+++ b/sc/source/ui/unoobj/scdetect.cxx
@@ -340,8 +340,7 @@ sal_Bool ScFilterDetect::supportsService( const OUString& sServiceName )
css::uno::Sequence<OUString> ScFilterDetect::getSupportedServiceNames()
{
- uno::Sequence<OUString> seqServiceNames { "com.sun.star.frame.ExtendedTypeDetection" };
- return seqServiceNames;
+ return { "com.sun.star.frame.ExtendedTypeDetection" };
}
extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
diff --git a/sccomp/source/solver/SwarmSolver.cxx b/sccomp/source/solver/SwarmSolver.cxx
index a3f2bbec518a..dc310c64986e 100644
--- a/sccomp/source/solver/SwarmSolver.cxx
+++ b/sccomp/source/solver/SwarmSolver.cxx
@@ -265,8 +265,7 @@ public:
uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() override
{
- uno::Sequence<OUString> aServiceNames{ "com.sun.star.sheet.Solver" };
- return aServiceNames;
+ return { "com.sun.star.sheet.Solver" };
}
private:
diff --git a/svx/source/tbxctrls/tbunocontroller.cxx b/svx/source/tbxctrls/tbunocontroller.cxx
index 11f5cc2f2fce..ca264c232de4 100644
--- a/svx/source/tbxctrls/tbunocontroller.cxx
+++ b/svx/source/tbxctrls/tbunocontroller.cxx
@@ -343,8 +343,7 @@ OUString SAL_CALL FontHeightToolBoxControl::getImplementationName()
uno::Sequence< OUString > SAL_CALL FontHeightToolBoxControl::getSupportedServiceNames( )
{
- uno::Sequence<OUString> aSNS { "com.sun.star.frame.ToolbarController" };
- return aSNS;
+ return { "com.sun.star.frame.ToolbarController" };
}
// XComponent