summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2019-08-18 11:28:43 +0200
committerJulien Nabet <serval2412@yahoo.fr>2019-08-18 13:33:38 +0200
commit9717d79beb5cb474717c111a5e7211b008e3031d (patch)
treea060abcd45fdbeb21ebe112ee1440cd7cf6704d3 /dbaccess
parent25cce7cd249379f0a98fddc63327b38bd2e48882 (diff)
Simplify Sequence uses in dbaccess/source/inc/apitools.hxx
Change-Id: Iad57f019f020b1d37ff768d636322e2d0b32c695 Reviewed-on: https://gerrit.libreoffice.org/77662 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/inc/apitools.hxx14
1 files changed, 5 insertions, 9 deletions
diff --git a/dbaccess/source/inc/apitools.hxx b/dbaccess/source/inc/apitools.hxx
index a3e4228f9913..3271c35f6fba 100644
--- a/dbaccess/source/inc/apitools.hxx
+++ b/dbaccess/source/inc/apitools.hxx
@@ -95,8 +95,7 @@ public:
} \
css::uno::Sequence< OUString > classname::getSupportedServiceNames_Static( ) \
{ \
- css::uno::Sequence< OUString > aSupported { serviceasciiname }; \
- return aSupported; \
+ return { serviceasciiname }; \
} \
#define IMPLEMENT_SERVICE_INFO_GETSUPPORTED2_STATIC(classname, serviceasciiname1, serviceasciiname2) \
@@ -106,10 +105,7 @@ public:
} \
css::uno::Sequence< OUString > classname::getSupportedServiceNames_Static( ) \
{ \
- css::uno::Sequence< OUString > aSupported(2); \
- aSupported[0] = serviceasciiname1; \
- aSupported[1] = serviceasciiname2; \
- return aSupported; \
+ return { serviceasciiname1, serviceasciiname2 }; \
} \
#define IMPLEMENT_SERVICE_INFO1(classname, implasciiname, serviceasciiname) \
@@ -117,7 +113,7 @@ public:
IMPLEMENT_SERVICE_INFO_SUPPORTS(classname) \
css::uno::Sequence< OUString > SAL_CALL classname::getSupportedServiceNames( ) \
{ \
- return css::uno::Sequence< OUString > { serviceasciiname }; \
+ return { serviceasciiname }; \
} \
@@ -126,7 +122,7 @@ public:
IMPLEMENT_SERVICE_INFO_SUPPORTS(classname) \
css::uno::Sequence< OUString > SAL_CALL classname::getSupportedServiceNames( ) \
{ \
- return css::uno::Sequence< OUString > { serviceasciiname1, serviceasciiname2 }; \
+ return { serviceasciiname1, serviceasciiname2 }; \
}
@@ -146,7 +142,7 @@ public:
IMPLEMENT_SERVICE_INFO_SUPPORTS(classname) \
css::uno::Sequence< OUString > SAL_CALL classname::getSupportedServiceNames( ) \
{ \
- return css::uno::Sequence< OUString > { serviceasciiname1, serviceasciiname2, serviceasciiname3 }; \
+ return { serviceasciiname1, serviceasciiname2, serviceasciiname3 }; \
} \