summaryrefslogtreecommitdiff
path: root/sc/qa/extras/scindexenumeration_scenariosenumeration.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/qa/extras/scindexenumeration_scenariosenumeration.cxx')
-rw-r--r--sc/qa/extras/scindexenumeration_scenariosenumeration.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sc/qa/extras/scindexenumeration_scenariosenumeration.cxx b/sc/qa/extras/scindexenumeration_scenariosenumeration.cxx
index c4ba4fc32a70..dc96e1d767d6 100644
--- a/sc/qa/extras/scindexenumeration_scenariosenumeration.cxx
+++ b/sc/qa/extras/scindexenumeration_scenariosenumeration.cxx
@@ -75,9 +75,8 @@ uno::Reference<uno::XInterface> ScIndexEnumeration_ScenariosEnumeration::init()
uno::UNO_SET_THROW);
uno::Reference<sheet::XCellRangeAddressable> xCRA(xCellRange1, uno::UNO_QUERY_THROW);
- uno::Sequence<table::CellRangeAddress> aCRA(1);
- aCRA[0] = xCRA->getRangeAddress();
- xScenariosSupplier->getScenarios()->addNewByName("ScScenario", aCRA, "Range");
+ xScenariosSupplier->getScenarios()->addNewByName("ScScenario", { xCRA->getRangeAddress() },
+ "Range");
uno::Reference<container::XEnumerationAccess> xEA(xScenariosSupplier->getScenarios(),
uno::UNO_QUERY_THROW);