summaryrefslogtreecommitdiff
path: root/sc/qa/unit/chart2dataprovider.cxx
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2021-10-29 09:57:41 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2021-10-30 21:55:53 +0200
commitf528fff9b58e95ed572b226c0fec29f9a0464725 (patch)
treea5cfb66c337ea68c6559ef8d450cc77d5a5f0ca6 /sc/qa/unit/chart2dataprovider.cxx
parent9a668129259eeba1a05745b7cd820fccf3043f45 (diff)
Prepare for removal of non-const operator[] from Sequence in sc
Change-Id: Ic49c0fda3e98aeda471e674b68d40464ddac1ea1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124382 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sc/qa/unit/chart2dataprovider.cxx')
-rw-r--r--sc/qa/unit/chart2dataprovider.cxx21
1 files changed, 8 insertions, 13 deletions
diff --git a/sc/qa/unit/chart2dataprovider.cxx b/sc/qa/unit/chart2dataprovider.cxx
index 9435267decd9..31af9ba6eef9 100644
--- a/sc/qa/unit/chart2dataprovider.cxx
+++ b/sc/qa/unit/chart2dataprovider.cxx
@@ -8,6 +8,8 @@
*/
#include <sal/config.h>
+
+#include <comphelper/propertyvalue.hxx>
#include <test/bootstrapfixture.hxx>
#include <docsh.hxx>
@@ -46,19 +48,12 @@ static void lcl_createAndCheckDataProvider(ScDocument& rDoc, const OUString& cel
uno::Reference<chart2::data::XDataProvider> xDataProvider = new ScChart2DataProvider(&rDoc);
CPPUNIT_ASSERT(xDataProvider.is());
- uno::Sequence<beans::PropertyValue> aArgs(4);
-
- aArgs[0].Name = "CellRangeRepresentation";
- aArgs[0].Value <<= cellRange;
-
- aArgs[1].Name = "HasCategories";
- aArgs[1].Value <<= hasCategories;
-
- aArgs[2].Name = "FirstCellAsLabel";
- aArgs[2].Value <<= firstCellAsLabel;
-
- aArgs[3].Name = "DataRowSource";
- aArgs[3].Value <<= chart::ChartDataRowSource_COLUMNS;
+ uno::Sequence<beans::PropertyValue> aArgs{
+ comphelper::makePropertyValue("CellRangeRepresentation", cellRange),
+ comphelper::makePropertyValue("HasCategories", hasCategories),
+ comphelper::makePropertyValue("FirstCellAsLabel", firstCellAsLabel),
+ comphelper::makePropertyValue("DataRowSource", chart::ChartDataRowSource_COLUMNS)
+ };
uno::Reference<chart2::data::XDataSource> xDataSource = xDataProvider->createDataSource(aArgs);
CPPUNIT_ASSERT(xDataSource.is());