diff options
Diffstat (limited to 'sc/qa/extras/scindexenumeration_tablerowsenumeration.cxx')
-rw-r--r-- | sc/qa/extras/scindexenumeration_tablerowsenumeration.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sc/qa/extras/scindexenumeration_tablerowsenumeration.cxx b/sc/qa/extras/scindexenumeration_tablerowsenumeration.cxx index 17b84b8c2b8a..7a1068a335e4 100644 --- a/sc/qa/extras/scindexenumeration_tablerowsenumeration.cxx +++ b/sc/qa/extras/scindexenumeration_tablerowsenumeration.cxx @@ -59,17 +59,16 @@ uno::Reference<uno::XInterface> ScIndexEnumeration_TableRowsEnumeration::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::XNameAccess> xNA(xSheets, uno::UNO_QUERY_THROW); uno::Reference<sheet::XSpreadsheet> xSheet0(xNA->getByName(xNA->getElementNames()[0]), uno::UNO_QUERY_THROW); // limit the range the XEnumeration has to walk over (see fdo#45337). - uno::Reference<table::XCellRange> xCR(xSheet0->getCellRangeByName("A1:A4"), - uno::UNO_QUERY_THROW); + uno::Reference<table::XCellRange> xCR(xSheet0->getCellRangeByName("A1:A4"), uno::UNO_SET_THROW); uno::Reference<table::XColumnRowRange> xColRowRange(xCR, uno::UNO_QUERY_THROW); - uno::Reference<table::XTableRows> xTableRows(xColRowRange->getRows(), uno::UNO_QUERY_THROW); + uno::Reference<table::XTableRows> xTableRows(xColRowRange->getRows(), uno::UNO_SET_THROW); uno::Reference<container::XEnumerationAccess> xEA(xTableRows, uno::UNO_QUERY_THROW); return xEA->createEnumeration(); |