diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2019-08-18 09:29:27 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2019-08-18 10:17:36 +0200 |
commit | b49f189d9bfb0b5dca5ac259e6f56b49c2d0d08f (patch) | |
tree | 3c7635acbf2d0f98fd88833f2b4745bd23fe9ef8 /vcl/source/uitest | |
parent | a8df5fbaa478fd7f01b2f04a82b4eb63d0dbcc15 (diff) |
tdf#88205 Adapt uses of css::uno::Sequence to use initializer_list ctor
in vcl
Change-Id: Ibd66e5ed9064612b73d08fac179ee46dc5b0a4b6
Reviewed-on: https://gerrit.libreoffice.org/77656
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'vcl/source/uitest')
-rw-r--r-- | vcl/source/uitest/uno/uiobject_uno.cxx | 4 | ||||
-rw-r--r-- | vcl/source/uitest/uno/uitest_uno.cxx | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/vcl/source/uitest/uno/uiobject_uno.cxx b/vcl/source/uitest/uno/uiobject_uno.cxx index 714f16a72dbc..5eaef4db584a 100644 --- a/vcl/source/uitest/uno/uiobject_uno.cxx +++ b/vcl/source/uitest/uno/uiobject_uno.cxx @@ -197,9 +197,7 @@ sal_Bool UIObjectUnoObj::supportsService(OUString const & ServiceName) css::uno::Sequence<OUString> UIObjectUnoObj::getSupportedServiceNames() { - css::uno::Sequence<OUString> aServiceNames(1); - aServiceNames[0] = "com.sun.star.ui.test.UIObject"; - return aServiceNames; + return { "com.sun.star.ui.test.UIObject" }; } OUString SAL_CALL UIObjectUnoObj::getHierarchy() diff --git a/vcl/source/uitest/uno/uitest_uno.cxx b/vcl/source/uitest/uno/uitest_uno.cxx index 354b30585c69..8ae3b7e284a1 100644 --- a/vcl/source/uitest/uno/uitest_uno.cxx +++ b/vcl/source/uitest/uno/uitest_uno.cxx @@ -107,9 +107,7 @@ sal_Bool UITestUnoObj::supportsService(OUString const & ServiceName) css::uno::Sequence<OUString> UITestUnoObj::getSupportedServiceNames() { - css::uno::Sequence<OUString> aServiceNames(1); - aServiceNames[0] = "com.sun.star.ui.test.UITest"; - return aServiceNames; + return { "com.sun.star.ui.test.UITest" }; } extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* |