summaryrefslogtreecommitdiff
path: root/sd/source/ui/slideshow/slideshowviewimpl.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-08-17 15:42:01 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-08-18 11:03:02 +0200
commit7fc6063914432d58d86cfcbd728d967e7c86ebfd (patch)
treef71fe9f99edaa4e896c78cdf32e34b516194d748 /sd/source/ui/slideshow/slideshowviewimpl.cxx
parentdb83c41d460103df5d80f5bd99816575c4ead5cd (diff)
use more Reference::query instead of UNO_QUERY_THROW
since querying with exceptions is consideably more expensive Change-Id: I968a9a40766b2abb0d3058549b0ed44011fd5716 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155791 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/source/ui/slideshow/slideshowviewimpl.cxx')
-rw-r--r--sd/source/ui/slideshow/slideshowviewimpl.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/sd/source/ui/slideshow/slideshowviewimpl.cxx b/sd/source/ui/slideshow/slideshowviewimpl.cxx
index d6addc3f87fe..4b476812a8d8 100644
--- a/sd/source/ui/slideshow/slideshowviewimpl.cxx
+++ b/sd/source/ui/slideshow/slideshowviewimpl.cxx
@@ -125,10 +125,9 @@ SlideShowView::SlideShowView( ShowWindow& rOutputWindow,
{
try
{
- Reference< beans::XPropertySet > xCanvasProps( getCanvas(),
- uno::UNO_QUERY_THROW );
- xCanvasProps->setPropertyValue("UnsafeScrolling",
- uno::Any( true ) );
+ if (auto xCanvasProps = getCanvas().query<beans::XPropertySet>() )
+ xCanvasProps->setPropertyValue("UnsafeScrolling",
+ uno::Any( true ) );
}
catch( uno::Exception& )
{