diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-06-17 08:22:14 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-06-18 08:06:53 +0200 |
commit | 4079282731cdf276715af6571786ab75845efc15 (patch) | |
tree | 1cb1fdfcd69fef31288475dc7ab4edf39afcf4c3 /svx/source/gallery2/galtheme.cxx | |
parent | 129e799e1acf25d7dcd7ccf0438896cc125e7653 (diff) |
loplugin:logexceptionnicely in svx
Change-Id: I741cf5befbec0c2ab353baae4865722ede993c2e
Reviewed-on: https://gerrit.libreoffice.org/74143
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/gallery2/galtheme.cxx')
-rw-r--r-- | svx/source/gallery2/galtheme.cxx | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/svx/source/gallery2/galtheme.cxx b/svx/source/gallery2/galtheme.cxx index 227465c4da99..5875abd76bbd 100644 --- a/svx/source/gallery2/galtheme.cxx +++ b/svx/source/gallery2/galtheme.cxx @@ -28,6 +28,7 @@ #include <comphelper/processfactory.hxx> #include <osl/file.hxx> #include <osl/thread.hxx> +#include <tools/diagnose_ex.h> #include <tools/urlobj.hxx> #include <tools/vcompat.hxx> #include <unotools/streamwrap.hxx> @@ -98,11 +99,11 @@ void GalleryTheme::ImplCreateSvDrawStorage() if ( ( aSvDrawStorageRef->GetError() != ERRCODE_NONE ) && !pThm->IsReadOnly() ) aSvDrawStorageRef = new SotStorage( false, GetSdvURL().GetMainURL( INetURLObject::DecodeMechanism::NONE ), StreamMode::READ ); } - catch (const css::ucb::ContentCreationException& e) + catch (const css::ucb::ContentCreationException&) { - SAL_WARN("svx", "failed to open: " + TOOLS_WARN_EXCEPTION("svx", "failed to open: " << GetSdvURL().GetMainURL(INetURLObject::DecodeMechanism::NONE) - << "due to : " << e); + << "due to"); } } @@ -625,11 +626,11 @@ void GalleryTheme::Actualize( const Link<const INetURLObject&, void>& rActualize aSvDrawStorageRef->CopyTo( aTempStorageRef.get() ); nStorErr = aSvDrawStorageRef->GetError(); } - catch (const css::ucb::ContentCreationException& e) + catch (const css::ucb::ContentCreationException&) { - SAL_WARN("svx", "failed to open: " + TOOLS_WARN_EXCEPTION("svx", "failed to open: " << aTmpURL.GetMainURL(INetURLObject::DecodeMechanism::NONE) - << "due to : " << e); + << "due to"); nStorErr = ERRCODE_IO_GENERAL; } |