[Libreoffice-commits] core.git: chart2/source
Julien Nabet (via logerrit)
logerrit at kemper.freedesktop.org
Tue Jun 8 08:48:19 UTC 2021
chart2/source/view/main/ChartView.cxx | 15 +++++----------
1 file changed, 5 insertions(+), 10 deletions(-)
New commits:
commit 2d5fb75274fc34f71c45b8e483684086bb50c686
Author: Julien Nabet <serval2412 at yahoo.fr>
AuthorDate: Tue Jun 8 09:50:18 2021 +0200
Commit: Julien Nabet <serval2412 at yahoo.fr>
CommitDate: Tue Jun 8 10:47:27 2021 +0200
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 at yahoo.fr>
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 )
{
More information about the Libreoffice-commits
mailing list