summaryrefslogtreecommitdiff
path: root/test/source/sheet/sheetcell.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'test/source/sheet/sheetcell.cxx')
-rw-r--r--test/source/sheet/sheetcell.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/source/sheet/sheetcell.cxx b/test/source/sheet/sheetcell.cxx
index e30847367b7d..d0a2c6c032bd 100644
--- a/test/source/sheet/sheetcell.cxx
+++ b/test/source/sheet/sheetcell.cxx
@@ -21,6 +21,7 @@
#include <com/sun/star/uno/Reference.hxx>
#include <com/sun/star/uno/Sequence.hxx>
+#include <comphelper/propertyvalue.hxx>
#include <cppunit/TestAssert.h>
using namespace com::sun::star;
@@ -104,9 +105,8 @@ void SheetCell::testSheetCellProperties()
CPPUNIT_ASSERT_EQUAL_MESSAGE("Able to set PropertyValue FormulaResultType2",
aFormulaResultType2Get, aFormulaResultType2Set);
- uno::Sequence<beans::PropertyValue> aPropValue(1);
- aPropValue[0].Name = "StyleName";
- aPropValue[0].Value <<= OUString("Result2");
+ uno::Sequence<beans::PropertyValue> aPropValue{ comphelper::makePropertyValue(
+ "StyleName", OUString("Result2")) };
propName = "ConditionalFormat";
uno::Reference<sheet::XSheetConditionalEntries> aConditionalFormatGet;