summaryrefslogtreecommitdiff
path: root/test/source/sheet/sheetcellranges.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'test/source/sheet/sheetcellranges.cxx')
-rw-r--r--test/source/sheet/sheetcellranges.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/source/sheet/sheetcellranges.cxx b/test/source/sheet/sheetcellranges.cxx
index 013968f0ec5e..5b04acacd38b 100644
--- a/test/source/sheet/sheetcellranges.cxx
+++ b/test/source/sheet/sheetcellranges.cxx
@@ -43,7 +43,7 @@ void SheetCellRanges::testSheetCellRangesProperties()
xSheetCellRanges->getPropertyValue(propName) >>= aConditionalFormatGet);
uno::Reference<sheet::XSheetConditionalEntries> aConditionalFormatNew(aConditionalFormatGet,
- UNO_QUERY_THROW);
+ UNO_SET_THROW);
aConditionalFormatNew->addNew(aPropValue);
aNewValue <<= aConditionalFormatNew;
@@ -70,7 +70,7 @@ void SheetCellRanges::testSheetCellRangesProperties()
>>= aConditionalFormatLocalGet);
uno::Reference<sheet::XSheetConditionalEntries> aConditionalFormatLocalNew(
- aConditionalFormatLocalGet, UNO_QUERY_THROW);
+ aConditionalFormatLocalGet, UNO_SET_THROW);
aConditionalFormatLocalNew->addNew(aPropValue);
aNewValue <<= aConditionalFormatLocalNew;
@@ -95,7 +95,7 @@ void SheetCellRanges::testSheetCellRangesProperties()
CPPUNIT_ASSERT_MESSAGE("Unable to get PropertyValue Validation",
xSheetCellRanges->getPropertyValue(propName) >>= aValidationGet);
- uno::Reference<beans::XPropertySet> aValidationNew(aValidationGet, UNO_QUERY_THROW);
+ uno::Reference<beans::XPropertySet> aValidationNew(aValidationGet, UNO_SET_THROW);
uno::Any aValidationType;
aValidationType <<= sheet::ValidationType_WHOLE;
aValidationNew->setPropertyValue("Type", aValidationType);
@@ -115,7 +115,7 @@ void SheetCellRanges::testSheetCellRangesProperties()
CPPUNIT_ASSERT_MESSAGE("Unable to get PropertyValue ValidationLocal",
xSheetCellRanges->getPropertyValue(propName) >>= aValidationLocalGet);
- uno::Reference<beans::XPropertySet> aValidationLocalNew(aValidationLocalGet, UNO_QUERY_THROW);
+ uno::Reference<beans::XPropertySet> aValidationLocalNew(aValidationLocalGet, UNO_SET_THROW);
aValidationType <<= sheet::ValidationType_WHOLE;
aValidationLocalNew->setPropertyValue("Type", aValidationType);