diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-06-18 15:38:17 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-06-18 20:03:42 +0200 |
commit | 2836b78b54650d117282a9a345677d1b4d9fc043 (patch) | |
tree | 7627772f88f8d6f1b56f4f4db2675ae8772638f6 /xmloff/source/style/XMLFontAutoStylePool.cxx | |
parent | 697f8edbb0154ed72a42e4e8d7c4942cfe7dd59d (diff) |
loplugin:logexceptionnicely in xmlhelp..xmlsecurity
Change-Id: Idbf0de3f953b08f98144241346533ad30f49269e
Reviewed-on: https://gerrit.libreoffice.org/74285
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/source/style/XMLFontAutoStylePool.cxx')
-rw-r--r-- | xmloff/source/style/XMLFontAutoStylePool.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xmloff/source/style/XMLFontAutoStylePool.cxx b/xmloff/source/style/XMLFontAutoStylePool.cxx index 407f1ae8ecc6..d16997977f10 100644 --- a/xmloff/source/style/XMLFontAutoStylePool.cxx +++ b/xmloff/source/style/XMLFontAutoStylePool.cxx @@ -28,6 +28,7 @@ #include <vcl/embeddedfontshelper.hxx> #include <osl/file.hxx> #include <sal/log.hxx> +#include <tools/diagnose_ex.h> #include <com/sun/star/beans/XPropertySet.hpp> #include <com/sun/star/embed/ElementModes.hpp> @@ -649,9 +650,9 @@ OUString XMLFontAutoStylePool::embedFontFile(OUString const & fileUrl, OUString return sInternalName; } } - } catch( const Exception& e ) + } catch( const Exception& ) { - SAL_WARN( "xmloff", "Exception when embedding a font file:" << e ); + TOOLS_WARN_EXCEPTION( "xmloff", "Exception when embedding a font file" ); } return OUString(); } |