summaryrefslogtreecommitdiff
path: root/sot/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-08-13 13:43:25 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-08-14 18:05:59 +0200
commitece0729e18b4b306933439d1a329df192fc504d3 (patch)
tree65d9c2e48d1c9e8bf7cc1c8057c105c10de11695 /sot/source
parent52d0e53fa8a90b51332f5db9702816cd294dbaa6 (diff)
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 <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sot/source')
-rw-r--r--sot/source/unoolestorage/xolesimplestorage.cxx5
1 files changed, 3 insertions, 2 deletions
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& )
{}