diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-06-16 15:37:49 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-06-17 08:19:01 +0200 |
commit | 5aa942f3a5bf83e0426438913acc040abb6a329f (patch) | |
tree | 981c11b9b63b87e254b5a8c70f234fd2e95b0042 /sfx2/source/control/thumbnailview.cxx | |
parent | f41a55474cb6217560af81ae99c3e2fe1aca5215 (diff) |
loplugin:logexceptionnicely in sfx2
Change-Id: Ia638b94a7859c5dddca82111e7cbe753d7dde631
Reviewed-on: https://gerrit.libreoffice.org/74114
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/source/control/thumbnailview.cxx')
-rw-r--r-- | sfx2/source/control/thumbnailview.cxx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/sfx2/source/control/thumbnailview.cxx b/sfx2/source/control/thumbnailview.cxx index e669a26148b9..5a9027829edb 100644 --- a/sfx2/source/control/thumbnailview.cxx +++ b/sfx2/source/control/thumbnailview.cxx @@ -32,6 +32,7 @@ #include <rtl/ustring.hxx> #include <sal/log.hxx> #include <svtools/optionsdrawinglayer.hxx> +#include <tools/diagnose_ex.h> #include <unotools/ucbstreamhelper.hxx> #include <vcl/decoview.hxx> #include <vcl/svapp.hxx> @@ -1181,11 +1182,10 @@ BitmapEx ThumbnailView::readThumbnail(const OUString &msURL) } } } - catch (const uno::Exception& rException) + catch (const uno::Exception&) { - SAL_WARN("sfx", - "caught exception while trying to access Thumbnail/thumbnail.png of " - << msURL << ": " << rException); + TOOLS_WARN_EXCEPTION("sfx", + "caught exception while trying to access Thumbnail/thumbnail.png of " << msURL); } try @@ -1208,18 +1208,18 @@ BitmapEx ThumbnailView::readThumbnail(const OUString &msURL) } } } - catch (const uno::Exception& rException) + catch (const uno::Exception&) { - SAL_WARN("sfx", - "caught exception while trying to access Thumbnails/thumbnail.png of " - << msURL << ": " << rException); + TOOLS_WARN_EXCEPTION("sfx", + "caught exception while trying to access Thumbnails/thumbnail.png of " << msURL); } } - catch (const uno::Exception& rException) + catch (const uno::Exception&) { + css::uno::Any ex( cppu::getCaughtException() ); SAL_WARN("sfx", "caught exception while trying to access thumbnail of " - << msURL << ": " << rException); + << msURL << ": " << exceptionToString(ex)); } // Extract the image from the stream. |