diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2021-05-18 14:43:58 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2021-05-18 16:14:01 +0200 |
commit | c02295e5c4026e3093612a93fb4a28d94755c55f (patch) | |
tree | 505d09fc1a01894031f5d4149b1098813745f7c2 /embeddedobj | |
parent | eca89ece45ede76605a6102c94b3b67e1f8ff5aa (diff) |
loplugin:logexceptionnicely (clang-cl)
Change-Id: I56a944dbc13d4f2d4ce5b691789e6144a3e13945
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115746
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'embeddedobj')
-rw-r--r-- | embeddedobj/source/msole/olevisual.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/embeddedobj/source/msole/olevisual.cxx b/embeddedobj/source/msole/olevisual.cxx index b56357ddbb29..4f76cde853a8 100644 --- a/embeddedobj/source/msole/olevisual.cxx +++ b/embeddedobj/source/msole/olevisual.cxx @@ -225,9 +225,9 @@ awt::Size SAL_CALL OleEmbeddedObject::getVisualAreaSize( sal_Int64 nAspect ) aSize = m_pOleComponent->GetExtent( nAspect ); // will throw an exception in case of failure bSuccess = true; } - catch( const uno::Exception& rException ) + catch( const uno::Exception& ) { - SAL_WARN("embeddedobj.ole", "OleEmbeddedObject::getVisualAreaSize: GetExtent() failed: " << rException); + TOOLS_WARN_EXCEPTION("embeddedobj.ole", "OleEmbeddedObject::getVisualAreaSize: GetExtent() failed:"); } if (bBackToLoaded) @@ -250,9 +250,9 @@ awt::Size SAL_CALL OleEmbeddedObject::getVisualAreaSize( sal_Int64 nAspect ) aSize = m_pOleComponent->GetCachedExtent( nAspect ); // will throw an exception in case of failure bSuccess = true; } - catch( const uno::Exception& rException ) + catch( const uno::Exception& ) { - SAL_WARN("embeddedobj.ole", "OleEmbeddedObject::getVisualAreaSize: GetCachedExtent() failed: " << rException); + TOOLS_WARN_EXCEPTION("embeddedobj.ole", "OleEmbeddedObject::getVisualAreaSize: GetCachedExtent() failed:"); } } @@ -264,9 +264,9 @@ awt::Size SAL_CALL OleEmbeddedObject::getVisualAreaSize( sal_Int64 nAspect ) aSize = m_pOleComponent->GetRecommendedExtent( nAspect ); // will throw an exception in case of failure bSuccess = true; } - catch( const uno::Exception& rException ) + catch( const uno::Exception& ) { - SAL_WARN("embeddedobj.ole", "OleEmbeddedObject::getVisualAreaSize: GetRecommendedExtent() failed: " << rException); + TOOLS_WARN_EXCEPTION("embeddedobj.ole", "OleEmbeddedObject::getVisualAreaSize: GetRecommendedExtent() failed:"); } } |