summaryrefslogtreecommitdiff
path: root/test/source/sheet/xconsolidationdescriptor.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'test/source/sheet/xconsolidationdescriptor.cxx')
-rw-r--r--test/source/sheet/xconsolidationdescriptor.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/source/sheet/xconsolidationdescriptor.cxx b/test/source/sheet/xconsolidationdescriptor.cxx
index 455533c23695..45ba69877eb4 100644
--- a/test/source/sheet/xconsolidationdescriptor.cxx
+++ b/test/source/sheet/xconsolidationdescriptor.cxx
@@ -57,8 +57,7 @@ void XConsolidationDescriptor::testSetSources()
uno::Reference<sheet::XConsolidationDescriptor> xConsolidationDescriptor(init(),
UNO_QUERY_THROW);
- uno::Sequence<table::CellRangeAddress> aSources(1);
- aSources[0] = table::CellRangeAddress(0, 1, 1, 5, 5);
+ uno::Sequence<table::CellRangeAddress> aSources{ table::CellRangeAddress(0, 1, 1, 5, 5) };
xConsolidationDescriptor->setSources(aSources);
CPPUNIT_ASSERT_EQUAL_MESSAGE("Unable to set sources", table::CellRangeAddress(0, 1, 1, 5, 5),
xConsolidationDescriptor->getSources()[0]);