diff options
Diffstat (limited to 'sc/qa/extras/sccellsenumeration.cxx')
-rw-r--r-- | sc/qa/extras/sccellsenumeration.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sc/qa/extras/sccellsenumeration.cxx b/sc/qa/extras/sccellsenumeration.cxx index 76931eb97102..1ea47e6f208e 100644 --- a/sc/qa/extras/sccellsenumeration.cxx +++ b/sc/qa/extras/sccellsenumeration.cxx @@ -60,24 +60,24 @@ uno::Reference<uno::XInterface> ScCellsEnumeration::init() uno::Reference<sheet::XSpreadsheetDocument> xDoc(m_xComponent, uno::UNO_QUERY_THROW); CPPUNIT_ASSERT_MESSAGE("no calc document", xDoc.is()); - uno::Reference<sheet::XSpreadsheets> xSheets(xDoc->getSheets(), uno::UNO_QUERY_THROW); + uno::Reference<sheet::XSpreadsheets> xSheets(xDoc->getSheets(), uno::UNO_SET_THROW); uno::Reference<container::XIndexAccess> xIA(xSheets, uno::UNO_QUERY_THROW); uno::Reference<table::XCellRange> xCellRange(xIA->getByIndex(0), uno::UNO_QUERY_THROW); - uno::Reference<table::XCell> xCell0(xCellRange->getCellByPosition(0, 0), uno::UNO_QUERY_THROW); + uno::Reference<table::XCell> xCell0(xCellRange->getCellByPosition(0, 0), uno::UNO_SET_THROW); uno::Reference<text::XTextRange> xTextRange0(xCell0, uno::UNO_QUERY_THROW); xTextRange0->setString("Test string 1"); - uno::Reference<table::XCell> xCell1(xCellRange->getCellByPosition(5, 1), uno::UNO_QUERY_THROW); + uno::Reference<table::XCell> xCell1(xCellRange->getCellByPosition(5, 1), uno::UNO_SET_THROW); xCell1->setValue(15); - uno::Reference<table::XCell> xCell2(xCellRange->getCellByPosition(3, 9), uno::UNO_QUERY_THROW); + uno::Reference<table::XCell> xCell2(xCellRange->getCellByPosition(3, 9), uno::UNO_SET_THROW); uno::Reference<text::XTextRange> xTextRange1(xCell2, uno::UNO_QUERY_THROW); xTextRange1->setString("Test string 2"); uno::Reference<sheet::XCellRangesQuery> xCellRangesQuery(xCellRange, uno::UNO_QUERY_THROW); uno::Reference<sheet::XSheetCellRanges> xSCR(xCellRangesQuery->queryVisibleCells(), - uno::UNO_QUERY_THROW); + uno::UNO_SET_THROW); return xSCR->getCells()->createEnumeration(); } |