summaryrefslogtreecommitdiff
path: root/scaddins
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2019-08-17 21:02:20 +0200
committerJulien Nabet <serval2412@yahoo.fr>2019-08-17 22:16:38 +0200
commitc5be21da5072a78525ee07bb16dfcf391b8dbf32 (patch)
tree1fdeeee0c1075cce00137f92d161ce6c472dd1ab /scaddins
parentcc70a9dec7730661aacd5fe7ed62f0a29ebf1084 (diff)
tdf#88205 Adapt uses of css::uno::Sequence to use initializer_list ctor
in scaddins, scripting Change-Id: I92e6380f535aec12c1f1c5c51d8b544c8a7d9611 Reviewed-on: https://gerrit.libreoffice.org/77650 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'scaddins')
-rw-r--r--scaddins/source/analysis/analysis.cxx6
-rw-r--r--scaddins/source/datefunc/datefunc.cxx6
-rw-r--r--scaddins/source/pricing/pricing.cxx6
3 files changed, 3 insertions, 15 deletions
diff --git a/scaddins/source/analysis/analysis.cxx b/scaddins/source/analysis/analysis.cxx
index f9a398a8abb7..9e7cf05aa91c 100644
--- a/scaddins/source/analysis/analysis.cxx
+++ b/scaddins/source/analysis/analysis.cxx
@@ -148,11 +148,7 @@ OUString AnalysisAddIn::getImplementationName_Static()
uno::Sequence< OUString > AnalysisAddIn::getSupportedServiceNames_Static()
{
- uno::Sequence< OUString > aRet(2);
- OUString* pArray = aRet.getArray();
- pArray[0] = ADDIN_SERVICE;
- pArray[1] = MY_SERVICE;
- return aRet;
+ return { ADDIN_SERVICE, MY_SERVICE };
}
uno::Reference< uno::XInterface > AnalysisAddIn_CreateInstance(
diff --git a/scaddins/source/datefunc/datefunc.cxx b/scaddins/source/datefunc/datefunc.cxx
index 32c785643470..8f3832869266 100644
--- a/scaddins/source/datefunc/datefunc.cxx
+++ b/scaddins/source/datefunc/datefunc.cxx
@@ -177,11 +177,7 @@ OUString ScaDateAddIn::getImplementationName_Static()
uno::Sequence< OUString > ScaDateAddIn::getSupportedServiceNames_Static()
{
- uno::Sequence< OUString > aRet( 2 );
- OUString* pArray = aRet.getArray();
- pArray[0] = ADDIN_SERVICE;
- pArray[1] = MY_SERVICE;
- return aRet;
+ return { ADDIN_SERVICE, MY_SERVICE };
}
// XServiceName
diff --git a/scaddins/source/pricing/pricing.cxx b/scaddins/source/pricing/pricing.cxx
index 6c3a6449b0d1..1d0fb69a1011 100644
--- a/scaddins/source/pricing/pricing.cxx
+++ b/scaddins/source/pricing/pricing.cxx
@@ -177,11 +177,7 @@ OUString ScaPricingAddIn::getImplementationName_Static()
uno::Sequence< OUString > ScaPricingAddIn::getSupportedServiceNames_Static()
{
- uno::Sequence< OUString > aRet( 2 );
- OUString* pArray = aRet.getArray();
- pArray[0] = ADDIN_SERVICE;
- pArray[1] = MY_SERVICE;
- return aRet;
+ return { ADDIN_SERVICE, MY_SERVICE };
}
// XServiceName