[Libreoffice-commits] core.git: dbaccess/source
Julien Nabet (via logerrit)
logerrit at kemper.freedesktop.org
Sun Aug 18 11:34:37 UTC 2019
dbaccess/source/inc/apitools.hxx | 14 +++++---------
1 file changed, 5 insertions(+), 9 deletions(-)
New commits:
commit 9717d79beb5cb474717c111a5e7211b008e3031d
Author: Julien Nabet <serval2412 at yahoo.fr>
AuthorDate: Sun Aug 18 11:28:43 2019 +0200
Commit: Julien Nabet <serval2412 at yahoo.fr>
CommitDate: Sun Aug 18 13:33:38 2019 +0200
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 at yahoo.fr>
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 }; \
} \
More information about the Libreoffice-commits
mailing list