summaryrefslogtreecommitdiff
path: root/test/source/sheet/xsheetannotations.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'test/source/sheet/xsheetannotations.cxx')
-rw-r--r--test/source/sheet/xsheetannotations.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/source/sheet/xsheetannotations.cxx b/test/source/sheet/xsheetannotations.cxx
index c892642e0bf1..07ea6d493ef9 100644
--- a/test/source/sheet/xsheetannotations.cxx
+++ b/test/source/sheet/xsheetannotations.cxx
@@ -31,7 +31,7 @@ void XSheetAnnotations::testCount()
sal_Int32 nBefore = xAnnotationsIndex->getCount();
// get Sheet 2 annotations
- uno::Reference< sheet::XSheetAnnotations > xSheet2Annotations( getAnnotations(1), UNO_QUERY_THROW);
+ uno::Reference< sheet::XSheetAnnotations > xSheet2Annotations( getAnnotations(1), UNO_SET_THROW);
// insert a note on sheet 2
table::CellAddress aTargetCellAddress (1,0,0);
@@ -172,7 +172,7 @@ void XSheetAnnotations::testIndex()
aSheet0Annotations->insertNew(aThirdCellAddress0, "an inserted annotation 3 on sheet 1");
// insert annotations in third sheet
- uno::Reference< sheet::XSheetAnnotations > aSheet2Annotations (getAnnotations(2), UNO_QUERY_THROW);
+ uno::Reference< sheet::XSheetAnnotations > aSheet2Annotations (getAnnotations(2), UNO_SET_THROW);
table::CellAddress aTargetCellAddress2 (2,4,5);
aSheet2Annotations->insertNew(aTargetCellAddress2, "an inserted annotation 1 on sheet 3");
table::CellAddress aSecondTargetCellAddress2 (2,5,6);
@@ -181,7 +181,7 @@ void XSheetAnnotations::testIndex()
aSheet2Annotations->insertNew(aThirdCellAddress2, "an inserted annotation 3 on sheet 3");
// get second annotation for second sheet
- uno::Reference< sheet::XSheetAnnotations > aSheetAnnotations (getAnnotations(2), UNO_QUERY_THROW);
+ uno::Reference< sheet::XSheetAnnotations > aSheetAnnotations (getAnnotations(2), UNO_SET_THROW);
uno::Reference< container::XIndexAccess > xAnnotationsIndex (aSheetAnnotations, UNO_QUERY_THROW);
uno::Reference< sheet::XSheetAnnotation > aAnnotation (xAnnotationsIndex->getByIndex(1), UNO_QUERY_THROW);