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>
This commit is contained in:
Yusuf Keten
2020-01-12 17:09:42 +01:00
committed by Stephan Bergmann
parent dd3e75758f
commit 1be03e47df
10 changed files with 10 additions and 20 deletions
+1 -2
View File
@@ -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" };
}
+1 -2
View File
@@ -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)
+1 -2
View File
@@ -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()
+1 -2
View File
@@ -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
+1 -2
View File
@@ -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)
+1 -2
View File
@@ -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<
+1 -2
View File
@@ -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: */
+1 -2
View File
@@ -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*
+1 -2
View File
@@ -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:
+1 -2
View File
@@ -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