diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-15 15:56:55 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-16 13:31:26 +0200 |
commit | 889dc7bffa02236bf2ad56b382997771f0fcf3c6 (patch) | |
tree | e7fc2c8748972bb1ed4acb98fd92ff08a8670f7b /oox/source/ole | |
parent | 9a97a26511584f41c3753fa9536e1c4a8dce637a (diff) |
use more TOOLS_WARN_EXCEPTION
Change-Id: Ic21ea11ff106e0732bb8fa600ef39a549d7bda86
Reviewed-on: https://gerrit.libreoffice.org/77569
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'oox/source/ole')
-rw-r--r-- | oox/source/ole/axcontrol.cxx | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/oox/source/ole/axcontrol.cxx b/oox/source/ole/axcontrol.cxx index 5adc2e69dba1..57606fa1ce0b 100644 --- a/oox/source/ole/axcontrol.cxx +++ b/oox/source/ole/axcontrol.cxx @@ -180,8 +180,7 @@ bool lclExtractRangeFromName( CellRangeAddress& orRangeAddr, const Reference< XM } catch (const Exception&) { - css::uno::Any ex( cppu::getCaughtException() ); - SAL_WARN("oox", exceptionToString(ex)); + TOOLS_WARN_EXCEPTION("oox", ""); } return false; } @@ -214,8 +213,7 @@ void lclPrepareConverter( PropertySet& rConverter, const Reference< XModel >& rx } catch (const Exception&) { - css::uno::Any ex( cppu::getCaughtException() ); - SAL_WARN("oox", exceptionToString(ex)); + TOOLS_WARN_EXCEPTION("oox", ""); } rConverter.setProperty( PROP_XLA1Representation, rAddressString ); rConverter.setProperty( PROP_ReferenceSheet, nRefSheet ); @@ -359,8 +357,7 @@ void ControlConverter::bindToSources( const Reference< XControlModel >& rxCtrlMo } catch (const Exception&) { - css::uno::Any ex( cppu::getCaughtException() ); - SAL_WARN("oox", exceptionToString(ex)); + TOOLS_WARN_EXCEPTION("oox", ""); } // list entry source @@ -2748,8 +2745,7 @@ Reference< XControlModel > EmbeddedForm::convertAndInsert( const EmbeddedControl } catch (const Exception&) { - css::uno::Any ex( cppu::getCaughtException() ); - SAL_WARN("oox", "exception creating Control: " << exceptionToString(ex)); + TOOLS_WARN_EXCEPTION("oox", "exception creating Control"); } return xRet; } @@ -2775,8 +2771,7 @@ Reference< XIndexContainer > const & EmbeddedForm::createXForm() } catch (const Exception&) { - css::uno::Any ex( cppu::getCaughtException() ); - SAL_WARN("oox", "exception creating Form: " << exceptionToString(ex)); + TOOLS_WARN_EXCEPTION("oox", "exception creating Form"); } // always clear the forms supplier to not try to create the form again mxFormsSupp.clear(); |