diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2019-08-18 09:45:11 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2019-08-18 10:34:30 +0200 |
commit | 52e086c336cc52dcea410f0c3b8ada8439ebe969 (patch) | |
tree | 1dcbb2d16b3e228cee0522bcf224fd37f80d9865 /sd/source/ui/unoidl/UnoDocumentSettings.cxx | |
parent | b49f189d9bfb0b5dca5ac259e6f56b49c2d0d08f (diff) |
tdf#88205 Adapt uses of css::uno::Sequence to use initializer_list ctor
in sc, sd
Change-Id: Id32e76ad37000084b99781e87428ed2c23ef02a6
Reviewed-on: https://gerrit.libreoffice.org/77657
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'sd/source/ui/unoidl/UnoDocumentSettings.cxx')
-rw-r--r-- | sd/source/ui/unoidl/UnoDocumentSettings.cxx | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/sd/source/ui/unoidl/UnoDocumentSettings.cxx b/sd/source/ui/unoidl/UnoDocumentSettings.cxx index 4b86d263c5b4..f1228da14f18 100644 --- a/sd/source/ui/unoidl/UnoDocumentSettings.cxx +++ b/sd/source/ui/unoidl/UnoDocumentSettings.cxx @@ -1394,18 +1394,8 @@ sal_Bool SAL_CALL DocumentSettings::supportsService( const OUString& ServiceName Sequence< OUString > SAL_CALL DocumentSettings::getSupportedServiceNames( ) { - Sequence< OUString > aSeq( 2 ); - aSeq[0] = "com.sun.star.document.Settings" ; - if( mxModel->IsImpressDocument() ) - { - aSeq[1] = "com.sun.star.presentation.DocumentSettings" ; - } - else - { - aSeq[1] = "com.sun.star.drawing.DocumentSettings" ; - } - - return aSeq; + return { "com.sun.star.document.Settings" , + mxModel->IsImpressDocument()?OUString("com.sun.star.presentation.DocumentSettings"):OUString("com.sun.star.drawing.DocumentSettings") }; } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |