From ece0729e18b4b306933439d1a329df192fc504d3 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 13 Aug 2024 13:43:25 +0200 Subject: use less exception throwing for flow control Change-Id: Ib376a1bcb75e72d6e5754818a353b0d9c7dbd26d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171851 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sot/source/unoolestorage/xolesimplestorage.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sot/source') diff --git a/sot/source/unoolestorage/xolesimplestorage.cxx b/sot/source/unoolestorage/xolesimplestorage.cxx index 9336b67bb32f..a3ce980fdbe4 100644 --- a/sot/source/unoolestorage/xolesimplestorage.cxx +++ b/sot/source/unoolestorage/xolesimplestorage.cxx @@ -97,8 +97,9 @@ OLESimpleStorage::OLESimpleStorage( { try { - uno::Reference< io::XSeekable > xSeek( xInputStream, uno::UNO_QUERY_THROW ); - xSeek->seek( 0 ); + uno::Reference< io::XSeekable > xSeek( xInputStream, uno::UNO_QUERY ); + if (xSeek) + xSeek->seek( 0 ); } catch( uno::Exception& ) {} -- cgit