tdf#88205: Adapt uses of css::uno::Sequence to use initializer_list ctor

Change-Id: Id4034a57580f37fd71f841deec9edfe9b7c26a67
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108286
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
This commit is contained in:
Bayram Çiçek 2020-12-25 17:00:30 +00:00 committed by Julien Nabet
parent 6204c94aee
commit ea14c98aab
6 changed files with 7 additions and 7 deletions

View File

@ -610,7 +610,7 @@ sal_Bool Model::supportsService(OUString const & ServiceName)
css::uno::Sequence<OUString> Model::getSupportedServiceNames() css::uno::Sequence<OUString> Model::getSupportedServiceNames()
{ {
return css::uno::Sequence<OUString>{"com.sun.star.xforms.Model"}; return {"com.sun.star.xforms.Model"};
} }
extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*

View File

@ -43,7 +43,7 @@ class Implementation:
css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() override css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() override
{ {
return css::uno::Sequence<OUString>{"com.sun.star.xforms.XForms"}; return {"com.sun.star.xforms.XForms"};
} }
}; };

View File

@ -70,7 +70,7 @@ sal_Bool SlideRenderer::supportsService(OUString const & ServiceName)
css::uno::Sequence<OUString> SlideRenderer::getSupportedServiceNames() css::uno::Sequence<OUString> SlideRenderer::getSupportedServiceNames()
{ {
return css::uno::Sequence<OUString>{"com.sun.star.drawing.SlideRenderer"}; return {"com.sun.star.drawing.SlideRenderer"};
} }
//----- XSlideRenderer -------------------------------------------------------- //----- XSlideRenderer --------------------------------------------------------

View File

@ -396,7 +396,7 @@ sal_Bool PDFDetector::supportsService(OUString const & ServiceName)
css::uno::Sequence<OUString> PDFDetector::getSupportedServiceNames() css::uno::Sequence<OUString> PDFDetector::getSupportedServiceNames()
{ {
return css::uno::Sequence<OUString>{"com.sun.star.document.ImportFilter"}; return {"com.sun.star.document.ImportFilter"};
} }
bool checkDocChecksum( const OUString& rInPDFFileURL, bool checkDocChecksum( const OUString& rInPDFFileURL,

View File

@ -201,7 +201,7 @@ sal_Bool PDFIHybridAdaptor::supportsService(OUString const & ServiceName)
css::uno::Sequence<OUString> PDFIHybridAdaptor::getSupportedServiceNames() css::uno::Sequence<OUString> PDFIHybridAdaptor::getSupportedServiceNames()
{ {
return css::uno::Sequence<OUString>{"com.sun.star.document.ImportFilter"}; return {"com.sun.star.document.ImportFilter"};
} }
PDFIRawAdaptor::PDFIRawAdaptor( OUString const & implementationName, const uno::Reference< uno::XComponentContext >& xContext ) : PDFIRawAdaptor::PDFIRawAdaptor( OUString const & implementationName, const uno::Reference< uno::XComponentContext >& xContext ) :
@ -323,7 +323,7 @@ sal_Bool PDFIRawAdaptor::supportsService(OUString const & ServiceName)
css::uno::Sequence<OUString> PDFIRawAdaptor::getSupportedServiceNames() css::uno::Sequence<OUString> PDFIRawAdaptor::getSupportedServiceNames()
{ {
return css::uno::Sequence<OUString>{"com.sun.star.document.ImportFilter"}; return {"com.sun.star.document.ImportFilter"};
} }

View File

@ -74,7 +74,7 @@ public:
{ return cppu::supportsService(this, ServiceName); } { return cppu::supportsService(this, ServiceName); }
css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() override css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() override
{ return css::uno::Sequence<OUString>{"com.sun.star.ui.UIElementFactory"}; } { return {"com.sun.star.ui.UIElementFactory"}; }
}; };
SwPanelFactory::SwPanelFactory() SwPanelFactory::SwPanelFactory()