summaryrefslogtreecommitdiff
path: root/sc/qa/extras/scchartobj.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/qa/extras/scchartobj.cxx')
-rw-r--r--sc/qa/extras/scchartobj.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/qa/extras/scchartobj.cxx b/sc/qa/extras/scchartobj.cxx
index 10dab5203ec9..d5cd726f9164 100644
--- a/sc/qa/extras/scchartobj.cxx
+++ b/sc/qa/extras/scchartobj.cxx
@@ -89,7 +89,7 @@ ScChartObj::ScChartObj()
uno::Reference<uno::XInterface> ScChartObj::init()
{
uno::Reference<sheet::XSpreadsheetDocument> xDoc(m_xComponent, uno::UNO_QUERY_THROW);
- 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<sheet::XSpreadsheet> xSheet0(xIA->getByIndex(0), uno::UNO_QUERY_THROW);
@@ -154,7 +154,7 @@ uno::Reference<uno::XInterface> ScChartObj::init()
uno::Reference<table::XCellRange> xCellRange0(xSheet0, uno::UNO_QUERY_THROW);
uno::Reference<table::XCellRange> xCellRange1(xCellRange0->getCellRangeByName("A1:N4"),
- uno::UNO_QUERY_THROW);
+ uno::UNO_SET_THROW);
uno::Reference<sheet::XCellRangeAddressable> xCRA(xCellRange1, uno::UNO_QUERY_THROW);
uno::Sequence<table::CellRangeAddress> aCRA(1);