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 | |
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')
-rw-r--r-- | oox/source/drawingml/textfield.cxx | 3 | ||||
-rw-r--r-- | oox/source/drawingml/textrun.cxx | 3 | ||||
-rw-r--r-- | oox/source/ole/axcontrol.cxx | 15 | ||||
-rw-r--r-- | oox/source/ppt/presentationfragmenthandler.cxx | 6 | ||||
-rw-r--r-- | oox/source/ppt/slidefragmenthandler.cxx | 3 | ||||
-rw-r--r-- | oox/source/vml/vmldrawing.cxx | 3 |
6 files changed, 11 insertions, 22 deletions
diff --git a/oox/source/drawingml/textfield.cxx b/oox/source/drawingml/textfield.cxx index 545327e36228..1151f31d1a6d 100644 --- a/oox/source/drawingml/textfield.cxx +++ b/oox/source/drawingml/textfield.cxx @@ -235,8 +235,7 @@ sal_Int32 TextField::insertAt( } catch( const Exception& ) { - css::uno::Any ex( cppu::getCaughtException() ); - SAL_WARN("oox", "OOX: TextField::insertAt() exception " << exceptionToString(ex)); + TOOLS_WARN_EXCEPTION("oox", "OOX: TextField::insertAt()"); } return nCharHeight; diff --git a/oox/source/drawingml/textrun.cxx b/oox/source/drawingml/textrun.cxx index cda8521cf338..45290aab3386 100644 --- a/oox/source/drawingml/textrun.cxx +++ b/oox/source/drawingml/textrun.cxx @@ -176,8 +176,7 @@ sal_Int32 TextRun::insertAt( } catch( const Exception& ) { - css::uno::Any ex( cppu::getCaughtException() ); - SAL_WARN("oox", "OOX: TextRun::insertAt() exception " << exceptionToString(ex)); + TOOLS_WARN_EXCEPTION("oox", "OOX: TextRun::insertAt()"); } return nCharHeight; 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(); diff --git a/oox/source/ppt/presentationfragmenthandler.cxx b/oox/source/ppt/presentationfragmenthandler.cxx index cf0bdfed9659..776514612b70 100644 --- a/oox/source/ppt/presentationfragmenthandler.cxx +++ b/oox/source/ppt/presentationfragmenthandler.cxx @@ -458,8 +458,7 @@ void PresentationFragmentHandler::importSlide(sal_uInt32 nSlide, bool bFirstPage } catch( uno::Exception& ) { - SAL_WARN( "oox", "oox::ppt::PresentationFragmentHandler::EndDocument(), " - "exception caught: " << exceptionToString( cppu::getCaughtException() ) ); + TOOLS_WARN_EXCEPTION( "oox", "oox::ppt::PresentationFragmentHandler::EndDocument()" ); } } @@ -509,8 +508,7 @@ void PresentationFragmentHandler::finalizeImport() } catch( uno::Exception& ) { - SAL_WARN( "oox", "oox::ppt::PresentationFragmentHandler::finalizeImport(), " - "exception caught: " << exceptionToString( cppu::getCaughtException() ) ); + TOOLS_WARN_EXCEPTION( "oox", "oox::ppt::PresentationFragmentHandler::finalizeImport()" ); } // todo error handling; if ( rxStatusIndicator.is() ) diff --git a/oox/source/ppt/slidefragmenthandler.cxx b/oox/source/ppt/slidefragmenthandler.cxx index 1c3b58be6274..615665d8ae3c 100644 --- a/oox/source/ppt/slidefragmenthandler.cxx +++ b/oox/source/ppt/slidefragmenthandler.cxx @@ -251,8 +251,7 @@ void SlideFragmentHandler::finalizeImport() } catch( uno::Exception& ) { - SAL_WARN( "oox", "oox::ppt::SlideFragmentHandler::EndElement(), " - "exception caught: " << exceptionToString( cppu::getCaughtException() ) ); + TOOLS_WARN_EXCEPTION( "oox", "oox::ppt::SlideFragmentHandler::EndElement()" ); } } diff --git a/oox/source/vml/vmldrawing.cxx b/oox/source/vml/vmldrawing.cxx index d8fccb56ff30..2c5ce3887299 100644 --- a/oox/source/vml/vmldrawing.cxx +++ b/oox/source/vml/vmldrawing.cxx @@ -307,8 +307,7 @@ Reference< XShape > Drawing::createAndInsertXControlShape( const ::oox::ole::Emb } catch (Exception const&) { - css::uno::Any ex( cppu::getCaughtException() ); - SAL_WARN("oox", "exception inserting Shape: " << exceptionToString(ex)); + TOOLS_WARN_EXCEPTION("oox", "exception inserting Shape"); } return xShape; } |