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:
parent
6204c94aee
commit
ea14c98aab
@ -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*
|
||||||
|
@ -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"};
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -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 --------------------------------------------------------
|
||||||
|
@ -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,
|
||||||
|
@ -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"};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user