diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2021-06-08 09:50:18 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2021-06-08 10:47:27 +0200 |
commit | 2d5fb75274fc34f71c45b8e483684086bb50c686 (patch) | |
tree | fd5c76ef80aa224d7e5019a070514287cb218165 /chart2 | |
parent | f3b737ab76efaf1a70dfb22c6b60b08b340cf343 (diff) |
Simplify Sequences initializations (chart2)(part 2)
Change-Id: If03d2f7f22c65aaebe236d9b33e6609d31660387
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116810
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/view/main/ChartView.cxx | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/chart2/source/view/main/ChartView.cxx b/chart2/source/view/main/ChartView.cxx index 143d0bcfc798..f6642c920968 100644 --- a/chart2/source/view/main/ChartView.cxx +++ b/chart2/source/view/main/ChartView.cxx @@ -1192,16 +1192,11 @@ uno::Any SAL_CALL ChartView::getTransferData( const datatransfer::DataFlavor& aF } uno::Sequence< datatransfer::DataFlavor > SAL_CALL ChartView::getTransferDataFlavors() { - uno::Sequence< datatransfer::DataFlavor > aRet(2); - - aRet[0] = datatransfer::DataFlavor( lcl_aGDIMetaFileMIMEType, - "GDIMetaFile", - cppu::UnoType<uno::Sequence< sal_Int8 >>::get() ); - aRet[1] = datatransfer::DataFlavor( lcl_aGDIMetaFileMIMETypeHighContrast, - "GDIMetaFile", - cppu::UnoType<uno::Sequence< sal_Int8 >>::get() ); - - return aRet; + return + { + { lcl_aGDIMetaFileMIMEType, "GDIMetaFile", cppu::UnoType<uno::Sequence< sal_Int8 >>::get() }, + { lcl_aGDIMetaFileMIMETypeHighContrast, "GDIMetaFile", cppu::UnoType<uno::Sequence< sal_Int8 >>::get() } + }; } sal_Bool SAL_CALL ChartView::isDataFlavorSupported( const datatransfer::DataFlavor& aFlavor ) { |