diff options
Diffstat (limited to 'canvas')
-rw-r--r-- | canvas/source/tools/canvastools.cxx | 2 | ||||
-rw-r--r-- | canvas/workben/canvasdemo.cxx | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/canvas/source/tools/canvastools.cxx b/canvas/source/tools/canvastools.cxx index 55e2cfcdf13a..543f9170266c 100644 --- a/canvas/source/tools/canvastools.cxx +++ b/canvas/source/tools/canvastools.cxx @@ -1100,7 +1100,7 @@ namespace canvas try { uno::Reference< rendering::XGraphicDevice > xDevice( i_rxCanvas->getDevice(), - uno::UNO_QUERY_THROW ); + uno::UNO_SET_THROW ); uno::Reference< lang::XServiceInfo > xServiceInfo( xDevice, uno::UNO_QUERY_THROW ); diff --git a/canvas/workben/canvasdemo.cxx b/canvas/workben/canvasdemo.cxx index bfb9f400ab28..9f21829bca5f 100644 --- a/canvas/workben/canvasdemo.cxx +++ b/canvas/workben/canvasdemo.cxx @@ -542,9 +542,9 @@ void TestWindow::Paint(vcl::RenderContext&, const tools::Rectangle&) try { uno::Reference< rendering::XCanvas > xVDevCanvas( GetCanvas(), - uno::UNO_QUERY_THROW ); + uno::UNO_SET_THROW ); uno::Reference< rendering::XGraphicDevice > xVDevDevice( xVDevCanvas->getDevice(), - uno::UNO_QUERY_THROW ); + uno::UNO_SET_THROW ); DemoRenderer aVDevRenderer( xVDevDevice, xVDevCanvas, GetSizePixel()); xVDevCanvas->clear(); aVDevRenderer.drawGrid(); @@ -559,7 +559,7 @@ void TestWindow::Paint(vcl::RenderContext&, const tools::Rectangle&) uno::Reference< rendering::XCanvas > xCanvas( GetSpriteCanvas(), uno::UNO_QUERY_THROW ); uno::Reference< rendering::XGraphicDevice > xDevice( xCanvas->getDevice(), - uno::UNO_QUERY_THROW ); + uno::UNO_SET_THROW ); DemoRenderer aRenderer( xDevice, xCanvas, GetSizePixel() ); xCanvas->clear(); |