summaryrefslogtreecommitdiff
path: root/chart2/qa/extras/PivotChartTest.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2022-05-04 21:47:39 +0200
committerStephan Bergmann <sbergman@redhat.com>2022-05-05 07:12:47 +0200
commit6ad8a6398dbf2b4605ee4c3c222a0c2ee396c163 (patch)
treea917f8e38d8a783297ec33b617a137b10e32ad83 /chart2/qa/extras/PivotChartTest.cxx
parentbaf8ce5955c6e20fe730b33093b704a6eb377d18 (diff)
Just use Any ctor instead of makeAny in chart2
Change-Id: I156cd5597a4b9e683913d9730b8d8bb22e8064f6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133845 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'chart2/qa/extras/PivotChartTest.cxx')
-rw-r--r--chart2/qa/extras/PivotChartTest.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/chart2/qa/extras/PivotChartTest.cxx b/chart2/qa/extras/PivotChartTest.cxx
index baa1c925132e..60dd561cb632 100644
--- a/chart2/qa/extras/PivotChartTest.cxx
+++ b/chart2/qa/extras/PivotChartTest.cxx
@@ -71,7 +71,7 @@ void lclModifyOrientation(uno::Reference<sheet::XDataPilotDescriptor> const & xD
OUString aName = xNamed->getName();
uno::Reference<beans::XPropertySet> xPropSet(xNamed, UNO_QUERY_THROW);
if (aName == sFieldName)
- xPropSet->setPropertyValue("Orientation", uno::makeAny(eOrientation));
+ xPropSet->setPropertyValue("Orientation", uno::Any(eOrientation));
}
}
@@ -87,7 +87,7 @@ void lclModifyFunction(uno::Reference<sheet::XDataPilotDescriptor> const & xDesc
OUString aName = xNamed->getName();
uno::Reference<beans::XPropertySet> xPropSet(xNamed, UNO_QUERY_THROW);
if (aName == sFieldName)
- xPropSet->setPropertyValue("Function", uno::makeAny(eFunction));
+ xPropSet->setPropertyValue("Function", uno::Any(eFunction));
}
}
@@ -134,13 +134,13 @@ void lclModifySubtotals(uno::Reference<sheet::XDataPilotDescriptor> const & xDes
void lclModifyColumnGrandTotal(uno::Reference<sheet::XDataPilotDescriptor> const & xDataPilotDescriptor, bool bTotal)
{
uno::Reference<beans::XPropertySet> xProperties(xDataPilotDescriptor, uno::UNO_QUERY_THROW);
- xProperties->setPropertyValue("ColumnGrand", uno::makeAny(bTotal));
+ xProperties->setPropertyValue("ColumnGrand", uno::Any(bTotal));
}
void lclModifyRowGrandTotal(uno::Reference<sheet::XDataPilotDescriptor> const & xDataPilotDescriptor, bool bTotal)
{
uno::Reference<beans::XPropertySet> xProperties(xDataPilotDescriptor, uno::UNO_QUERY_THROW);
- xProperties->setPropertyValue("RowGrand", uno::makeAny(bTotal));
+ xProperties->setPropertyValue("RowGrand", uno::Any(bTotal));
}
void lclCheckSequence(std::vector<double> const & reference,
@@ -293,7 +293,7 @@ table::CellRangeAddress lclCreateTestData(uno::Reference<sheet::XSpreadsheetDocu
sal_Int32 nDateKey = xNumberFormatTypes->getStandardFormat(util::NumberFormat::DATE, aLocale);
uno::Reference<table::XCellRange> xCellRange = xSheet->getCellRangeByPosition(nEndCol, 1, nEndCol, nEndRow);
uno::Reference<beans::XPropertySet> xCellProp(xCellRange, UNO_QUERY_THROW);
- xCellProp->setPropertyValue("NumberFormat", uno::makeAny(nDateKey));
+ xCellProp->setPropertyValue("NumberFormat", uno::Any(nDateKey));
table::CellRangeAddress sCellRangeAddress;
sCellRangeAddress.Sheet = 0;
@@ -493,7 +493,7 @@ void PivotChartTest::testChangePivotTable()
// Enable column totals and check the data is still unchanged
{
uno::Reference<beans::XPropertySet> xProperties(xDataPilotTable, uno::UNO_QUERY_THROW);
- xProperties->setPropertyValue("ColumnGrand", uno::makeAny(true));
+ xProperties->setPropertyValue("ColumnGrand", uno::Any(true));
}
CPPUNIT_ASSERT_EQUAL(sal_Int32(3), getNumberOfDataSeries(xChartDoc));