summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBayram Çiçek <mail@bayramcicek.com.tr>2020-12-25 17:00:30 +0000
committerJulien Nabet <serval2412@yahoo.fr>2020-12-26 17:15:18 +0100
commitea14c98aaba550ecde4c4736d1a3abdc0fd451ef (patch)
treecc6f0256d5461769f4349dd7c4d92ee7713fe55c
parent6204c94aeec9f65244c487edecf03a78c5740fbc (diff)
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>
-rw-r--r--forms/source/xforms/model.cxx2
-rw-r--r--forms/source/xforms/xforms_services.cxx2
-rw-r--r--sd/source/ui/presenter/SlideRenderer.cxx2
-rw-r--r--sdext/source/pdfimport/filterdet.cxx2
-rw-r--r--sdext/source/pdfimport/pdfiadaptor.cxx4
-rw-r--r--sw/source/uibase/sidebar/SwPanelFactory.cxx2
6 files changed, 7 insertions, 7 deletions
diff --git a/forms/source/xforms/model.cxx b/forms/source/xforms/model.cxx
index 5075222e1459..6eed4d7d06ed 100644
--- a/forms/source/xforms/model.cxx
+++ b/forms/source/xforms/model.cxx
@@ -610,7 +610,7 @@ sal_Bool Model::supportsService(OUString const & ServiceName)
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*
diff --git a/forms/source/xforms/xforms_services.cxx b/forms/source/xforms/xforms_services.cxx
index 383afbaeb802..23a1ee400ffb 100644
--- a/forms/source/xforms/xforms_services.cxx
+++ b/forms/source/xforms/xforms_services.cxx
@@ -43,7 +43,7 @@ class Implementation:
css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() override
{
- return css::uno::Sequence<OUString>{"com.sun.star.xforms.XForms"};
+ return {"com.sun.star.xforms.XForms"};
}
};
diff --git a/sd/source/ui/presenter/SlideRenderer.cxx b/sd/source/ui/presenter/SlideRenderer.cxx
index f8281e6319bb..3db4c7355ca5 100644
--- a/sd/source/ui/presenter/SlideRenderer.cxx
+++ b/sd/source/ui/presenter/SlideRenderer.cxx
@@ -70,7 +70,7 @@ sal_Bool SlideRenderer::supportsService(OUString const & ServiceName)
css::uno::Sequence<OUString> SlideRenderer::getSupportedServiceNames()
{
- return css::uno::Sequence<OUString>{"com.sun.star.drawing.SlideRenderer"};
+ return {"com.sun.star.drawing.SlideRenderer"};
}
//----- XSlideRenderer --------------------------------------------------------
diff --git a/sdext/source/pdfimport/filterdet.cxx b/sdext/source/pdfimport/filterdet.cxx
index 88f617ecea89..7e6e72f4d707 100644
--- a/sdext/source/pdfimport/filterdet.cxx
+++ b/sdext/source/pdfimport/filterdet.cxx
@@ -396,7 +396,7 @@ sal_Bool PDFDetector::supportsService(OUString const & ServiceName)
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,
diff --git a/sdext/source/pdfimport/pdfiadaptor.cxx b/sdext/source/pdfimport/pdfiadaptor.cxx
index 45f35320fe30..a8b045ca0ccc 100644
--- a/sdext/source/pdfimport/pdfiadaptor.cxx
+++ b/sdext/source/pdfimport/pdfiadaptor.cxx
@@ -201,7 +201,7 @@ sal_Bool PDFIHybridAdaptor::supportsService(OUString const & ServiceName)
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 ) :
@@ -323,7 +323,7 @@ sal_Bool PDFIRawAdaptor::supportsService(OUString const & ServiceName)
css::uno::Sequence<OUString> PDFIRawAdaptor::getSupportedServiceNames()
{
- return css::uno::Sequence<OUString>{"com.sun.star.document.ImportFilter"};
+ return {"com.sun.star.document.ImportFilter"};
}
diff --git a/sw/source/uibase/sidebar/SwPanelFactory.cxx b/sw/source/uibase/sidebar/SwPanelFactory.cxx
index db9e6f29458a..fcf297dc3100 100644
--- a/sw/source/uibase/sidebar/SwPanelFactory.cxx
+++ b/sw/source/uibase/sidebar/SwPanelFactory.cxx
@@ -74,7 +74,7 @@ public:
{ return cppu::supportsService(this, ServiceName); }
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()