summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-01-14 12:27:44 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-01-18 09:08:49 +0000
commit90d658d6d1054ac352e1b074a37b8963514a05f8 (patch)
tree6146fdb37b23ad4f99efad77fb0a2384e14031c3 /svx
parentd395b42cdf3ef517d215dee905e5ccf2ae73b2b8 (diff)
XUnoTunnel->dynamic_cast in ExplicitValueProvider
Change-Id: I72b85a18d0a754f81a136fd79e56789aa926f425 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145617 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/svdraw/charthelper.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/svx/source/svdraw/charthelper.cxx b/svx/source/svdraw/charthelper.cxx
index c8ddd987f265..4a50b07783ab 100644
--- a/svx/source/svdraw/charthelper.cxx
+++ b/svx/source/svdraw/charthelper.cxx
@@ -40,14 +40,13 @@ void ChartHelper::updateChart( const uno::Reference< ::frame::XModel >& rXModel
try
{
const uno::Reference< lang::XMultiServiceFactory > xChartFact(rXModel, uno::UNO_QUERY_THROW);
- const uno::Reference< lang::XUnoTunnel > xChartView(xChartFact->createInstance("com.sun.star.chart2.ChartView"), uno::UNO_QUERY_THROW);
- const uno::Reference<util::XUpdatable2> xUpdatable(xChartView, uno::UNO_QUERY_THROW);
+ const uno::Reference< util::XUpdatable2 > xChartView(xChartFact->createInstance("com.sun.star.chart2.ChartView"), uno::UNO_QUERY_THROW);
- xUpdatable->updateHard();
+ xChartView->updateHard();
}
catch(uno::Exception&)
{
- OSL_ENSURE(false, "Unexpected exception!");
+ TOOLS_WARN_EXCEPTION("svx", "");
}
}