diff options
author | Noel Grandin <noel@peralex.com> | 2015-11-16 09:23:41 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-11-16 08:35:42 +0000 |
commit | 8569c6d0ad70c32a08774fa6f5ec25b465ea98ee (patch) | |
tree | 3287608f4bb3170cc609b64c70d8d5e806c83b46 /svx | |
parent | 57b4c4bcb0cb3c48190670b4c46ab9e92a489729 (diff) |
use initialiser list for Sequence<OUString>
Change-Id: Ia5e47261d1fc6fac2d046656c05a1c5eedb07e02
Reviewed-on: https://gerrit.libreoffice.org/19978
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/unogallery/unogalitem.cxx | 5 | ||||
-rw-r--r-- | svx/source/unogallery/unogaltheme.cxx | 5 |
2 files changed, 2 insertions, 8 deletions
diff --git a/svx/source/unogallery/unogalitem.cxx b/svx/source/unogallery/unogalitem.cxx index 2cc2c892668b..8abfe5c3339c 100644 --- a/svx/source/unogallery/unogalitem.cxx +++ b/svx/source/unogallery/unogalitem.cxx @@ -138,10 +138,7 @@ OUString GalleryItem::getImplementationName_Static() uno::Sequence< OUString > GalleryItem::getSupportedServiceNames_Static() throw() { - uno::Sequence< OUString > aSeq( 1 ); - - aSeq.getArray()[ 0 ] = "com.sun.star.gallery.GalleryItem"; - + uno::Sequence< OUString > aSeq { "com.sun.star.gallery.GalleryItem" }; return aSeq; } diff --git a/svx/source/unogallery/unogaltheme.cxx b/svx/source/unogallery/unogaltheme.cxx index 1fd2dfabcb04..085cdb118958 100644 --- a/svx/source/unogallery/unogaltheme.cxx +++ b/svx/source/unogallery/unogaltheme.cxx @@ -83,10 +83,7 @@ OUString GalleryTheme::getImplementationName_Static() uno::Sequence< OUString > GalleryTheme::getSupportedServiceNames_Static() throw() { - uno::Sequence< OUString > aSeq( 1 ); - - aSeq.getArray()[ 0 ] = "com.sun.star.gallery.GalleryTheme"; - + uno::Sequence< OUString > aSeq { "com.sun.star.gallery.GalleryTheme" }; return aSeq; } |