diff options
Diffstat (limited to 'test/source/sheet/sheetcell.cxx')
-rw-r--r-- | test/source/sheet/sheetcell.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/source/sheet/sheetcell.cxx b/test/source/sheet/sheetcell.cxx index 4d3347d64d72..a8123ea5084a 100644 --- a/test/source/sheet/sheetcell.cxx +++ b/test/source/sheet/sheetcell.cxx @@ -117,7 +117,7 @@ void SheetCell::testSheetCellProperties() xSheetCell->getPropertyValue(propName) >>= aConditionalFormatGet); uno::Reference<sheet::XSheetConditionalEntries> aConditionalFormatNew(aConditionalFormatGet, - UNO_QUERY_THROW); + UNO_SET_THROW); aConditionalFormatNew->addNew(aPropValue); aNewValue <<= aConditionalFormatNew; @@ -143,7 +143,7 @@ void SheetCell::testSheetCellProperties() xSheetCell->getPropertyValue(propName) >>= aConditionalFormatLocalGet); uno::Reference<sheet::XSheetConditionalEntries> aConditionalFormatLocalNew( - aConditionalFormatLocalGet, UNO_QUERY_THROW); + aConditionalFormatLocalGet, UNO_SET_THROW); aConditionalFormatLocalNew->addNew(aPropValue); aNewValue <<= aConditionalFormatLocalNew; @@ -168,7 +168,7 @@ void SheetCell::testSheetCellProperties() CPPUNIT_ASSERT_MESSAGE("Unable to get PropertyValue Validation", xSheetCell->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); @@ -188,7 +188,7 @@ void SheetCell::testSheetCellProperties() CPPUNIT_ASSERT_MESSAGE("Unable to get PropertyValue ValidationLocal", xSheetCell->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); |