summaryrefslogtreecommitdiff
path: root/test/source/sheet/xscenarios.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'test/source/sheet/xscenarios.cxx')
-rw-r--r--test/source/sheet/xscenarios.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/source/sheet/xscenarios.cxx b/test/source/sheet/xscenarios.cxx
index d2335dda7e9b..77781361ea22 100644
--- a/test/source/sheet/xscenarios.cxx
+++ b/test/source/sheet/xscenarios.cxx
@@ -25,9 +25,8 @@ void XScenarios::testAddNewByName()
{
uno::Reference<sheet::XScenarios> xScenarios(init(), UNO_QUERY_THROW);
- uno::Sequence<table::CellRangeAddress> aCellRangeAddresses(1);
- aCellRangeAddresses[0] = table::CellRangeAddress(0, 0, 0, 0, 0);
-
+ uno::Sequence<table::CellRangeAddress> aCellRangeAddresses{ table::CellRangeAddress(0, 0, 0, 0,
+ 0) };
xScenarios->addNewByName("XScenarios2", aCellRangeAddresses, "new");
CPPUNIT_ASSERT_MESSAGE("Unable to add new XScenario", xScenarios->hasByName("XScenarios2"));
}