diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2019-08-17 20:53:12 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2019-08-17 22:16:51 +0200 |
commit | 4073994154fbcb3b3ae7ff396fee916a994265c7 (patch) | |
tree | 82e81d9a9a345eab3b9d67e3464639451f833004 /svx/source/unodraw/XPropertyTable.cxx | |
parent | c5be21da5072a78525ee07bb16dfcf391b8dbf32 (diff) |
tdf#88205 Adapt uses of css::uno::Sequence to use initializer_list ctor
in svx
Change-Id: I70cba5dbfed9b2bbfe82d89c9dc6a5875c953bd3
Reviewed-on: https://gerrit.libreoffice.org/77649
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'svx/source/unodraw/XPropertyTable.cxx')
-rw-r--r-- | svx/source/unodraw/XPropertyTable.cxx | 24 |
1 files changed, 6 insertions, 18 deletions
diff --git a/svx/source/unodraw/XPropertyTable.cxx b/svx/source/unodraw/XPropertyTable.cxx index 02bcc3f23378..fc2ce754652f 100644 --- a/svx/source/unodraw/XPropertyTable.cxx +++ b/svx/source/unodraw/XPropertyTable.cxx @@ -282,9 +282,7 @@ OUString SAL_CALL SvxUnoXColorTable::getImplementationName( ) uno::Sequence< OUString > SAL_CALL SvxUnoXColorTable::getSupportedServiceNames( ) { - const OUString aServiceName( "com.sun.star.drawing.ColorTable" ); - uno::Sequence< OUString > aServices( &aServiceName, 1 ); - return aServices; + return { "com.sun.star.drawing.ColorTable" }; } @@ -349,9 +347,7 @@ OUString SAL_CALL SvxUnoXLineEndTable::getImplementationName( ) uno::Sequence< OUString > SAL_CALL SvxUnoXLineEndTable::getSupportedServiceNames( ) { - const OUString aServiceName( "com.sun.star.drawing.LineEndTable" ); - uno::Sequence< OUString > aServices( &aServiceName, 1 ); - return aServices; + return { "com.sun.star.drawing.LineEndTable" }; } @@ -426,9 +422,7 @@ OUString SAL_CALL SvxUnoXDashTable::getImplementationName( ) uno::Sequence< OUString > SAL_CALL SvxUnoXDashTable::getSupportedServiceNames( ) { - const OUString aServiceName( "com.sun.star.drawing.DashTable" ); - uno::Sequence< OUString > aServices( &aServiceName, 1 ); - return aServices; + return { "com.sun.star.drawing.DashTable" }; } @@ -498,9 +492,7 @@ OUString SAL_CALL SvxUnoXHatchTable::getImplementationName( ) uno::Sequence< OUString > SAL_CALL SvxUnoXHatchTable::getSupportedServiceNames( ) { - const OUString aServiceName( "com.sun.star.drawing.HatchTable" ); - uno::Sequence< OUString > aServices( &aServiceName, 1 ); - return aServices; + return { "com.sun.star.drawing.HatchTable" }; } @@ -582,9 +574,7 @@ OUString SAL_CALL SvxUnoXGradientTable::getImplementationName( ) uno::Sequence< OUString > SAL_CALL SvxUnoXGradientTable::getSupportedServiceNames( ) { - const OUString aServiceName( "com.sun.star.drawing.GradientTable" ); - uno::Sequence< OUString > aServices( &aServiceName, 1 ); - return aServices; + return { "com.sun.star.drawing.GradientTable" }; } @@ -653,9 +643,7 @@ OUString SAL_CALL SvxUnoXBitmapTable::getImplementationName( ) uno::Sequence< OUString > SAL_CALL SvxUnoXBitmapTable::getSupportedServiceNames( ) { - const OUString aServiceName( "com.sun.star.drawing.BitmapTable" ); - uno::Sequence< OUString > aServices( &aServiceName, 1 ); - return aServices; + return { "com.sun.star.drawing.BitmapTable" }; } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |