diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-06-16 15:38:36 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-06-17 08:19:15 +0200 |
commit | 13b6e5d50affa56cb9c449252227933ab0fa1268 (patch) | |
tree | 474b266e01073532a63e58f0f8f93df515cb017b /slideshow | |
parent | 5aa942f3a5bf83e0426438913acc040abb6a329f (diff) |
loplugin:logexceptionnicely in shell..sot
Change-Id: I2ae0c0ac06f32ef91951aa4f7c98b5706178f841
Reviewed-on: https://gerrit.libreoffice.org/74115
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'slideshow')
-rw-r--r-- | slideshow/source/engine/activitiesqueue.cxx | 4 | ||||
-rw-r--r-- | slideshow/source/engine/eventqueue.cxx | 4 | ||||
-rw-r--r-- | slideshow/source/engine/rehearsetimingsactivity.cxx | 5 | ||||
-rw-r--r-- | slideshow/source/engine/shapes/viewappletshape.cxx | 4 | ||||
-rw-r--r-- | slideshow/source/engine/shapes/viewmediashape.cxx | 4 | ||||
-rw-r--r-- | slideshow/source/engine/shapesubset.cxx | 4 | ||||
-rw-r--r-- | slideshow/source/engine/slide/userpaintoverlay.cxx | 5 | ||||
-rw-r--r-- | slideshow/source/engine/transitions/shapetransitionfactory.cxx | 4 | ||||
-rw-r--r-- | slideshow/source/engine/usereventqueue.cxx | 4 |
9 files changed, 20 insertions, 18 deletions
diff --git a/slideshow/source/engine/activitiesqueue.cxx b/slideshow/source/engine/activitiesqueue.cxx index 3d1c076e2a02..191d2ef09981 100644 --- a/slideshow/source/engine/activitiesqueue.cxx +++ b/slideshow/source/engine/activitiesqueue.cxx @@ -55,9 +55,9 @@ namespace slideshow for( const auto& pActivity : maCurrentActivitiesReinsert ) pActivity->dispose(); } - catch (const uno::Exception& e) + catch (const uno::Exception&) { - SAL_WARN("slideshow", e); + TOOLS_WARN_EXCEPTION("slideshow", ""); } } diff --git a/slideshow/source/engine/eventqueue.cxx b/slideshow/source/engine/eventqueue.cxx index 5740a935264b..a5609ae47a5c 100644 --- a/slideshow/source/engine/eventqueue.cxx +++ b/slideshow/source/engine/eventqueue.cxx @@ -72,9 +72,9 @@ namespace slideshow { maEvents.top().pEvent->dispose(); } - catch (const uno::Exception& e) + catch (const uno::Exception&) { - SAL_WARN("slideshow", e); + TOOLS_WARN_EXCEPTION("slideshow", ""); } maEvents.pop(); } diff --git a/slideshow/source/engine/rehearsetimingsactivity.cxx b/slideshow/source/engine/rehearsetimingsactivity.cxx index 643d7c8eb2d9..573507cc0091 100644 --- a/slideshow/source/engine/rehearsetimingsactivity.cxx +++ b/slideshow/source/engine/rehearsetimingsactivity.cxx @@ -30,6 +30,7 @@ #include <basegfx/range/b2drange.hxx> #include <sal/log.hxx> #include <osl/diagnose.h> +#include <tools/diagnose_ex.h> #include <cppuhelper/exc_hlp.hxx> @@ -180,9 +181,9 @@ RehearseTimingsActivity::~RehearseTimingsActivity() { stop(); } - catch (const uno::Exception& e) + catch (const uno::Exception&) { - SAL_WARN("slideshow", e); + TOOLS_WARN_EXCEPTION("slideshow", ""); } } diff --git a/slideshow/source/engine/shapes/viewappletshape.cxx b/slideshow/source/engine/shapes/viewappletshape.cxx index dbe0c019bc9d..4f8c86bce467 100644 --- a/slideshow/source/engine/shapes/viewappletshape.cxx +++ b/slideshow/source/engine/shapes/viewappletshape.cxx @@ -103,9 +103,9 @@ namespace slideshow { endApplet(); } - catch (const uno::Exception &e) + catch (const uno::Exception &) { - SAL_WARN("slideshow", e); + TOOLS_WARN_EXCEPTION("slideshow", ""); } } diff --git a/slideshow/source/engine/shapes/viewmediashape.cxx b/slideshow/source/engine/shapes/viewmediashape.cxx index bd50a71b70cb..e966709df748 100644 --- a/slideshow/source/engine/shapes/viewmediashape.cxx +++ b/slideshow/source/engine/shapes/viewmediashape.cxx @@ -102,9 +102,9 @@ namespace slideshow { endMedia(); } - catch (const uno::Exception &e) + catch (const uno::Exception &) { - SAL_WARN("slideshow", e); + TOOLS_WARN_EXCEPTION("slideshow", ""); } } diff --git a/slideshow/source/engine/shapesubset.cxx b/slideshow/source/engine/shapesubset.cxx index cae844363cf5..188d30c95533 100644 --- a/slideshow/source/engine/shapesubset.cxx +++ b/slideshow/source/engine/shapesubset.cxx @@ -79,9 +79,9 @@ namespace slideshow // if not done yet: revoke subset from original disableSubsetShape(); } - catch (const uno::Exception& e) + catch (const uno::Exception&) { - SAL_WARN("slideshow", e); + TOOLS_WARN_EXCEPTION("slideshow", ""); } } diff --git a/slideshow/source/engine/slide/userpaintoverlay.cxx b/slideshow/source/engine/slide/userpaintoverlay.cxx index f0ef80dc32e9..1e167016dfb4 100644 --- a/slideshow/source/engine/slide/userpaintoverlay.cxx +++ b/slideshow/source/engine/slide/userpaintoverlay.cxx @@ -28,6 +28,7 @@ #include <basegfx/polygon/b2dpolygon.hxx> #include <basegfx/matrix/b2dhommatrix.hxx> #include <cppcanvas/basegfxfactory.hxx> +#include <tools/diagnose_ex.h> #include <activity.hxx> #include <slideshowcontext.hxx> @@ -480,9 +481,9 @@ namespace slideshow mrMultiplexer.removeViewHandler( mpHandler ); mpHandler->dispose(); } - catch (const uno::Exception& e) + catch (const uno::Exception&) { - SAL_WARN("slideshow", e); + TOOLS_WARN_EXCEPTION("slideshow", ""); } } } diff --git a/slideshow/source/engine/transitions/shapetransitionfactory.cxx b/slideshow/source/engine/transitions/shapetransitionfactory.cxx index c32ca07d0e25..d3054d4b9799 100644 --- a/slideshow/source/engine/transitions/shapetransitionfactory.cxx +++ b/slideshow/source/engine/transitions/shapetransitionfactory.cxx @@ -110,9 +110,9 @@ ClippingAnimation::~ClippingAnimation() { end_(); } - catch (const uno::Exception& e) + catch (const uno::Exception&) { - SAL_WARN("slideshow", e); + TOOLS_WARN_EXCEPTION("slideshow", ""); } } diff --git a/slideshow/source/engine/usereventqueue.cxx b/slideshow/source/engine/usereventqueue.cxx index 9c976717b510..92d12bbb137a 100644 --- a/slideshow/source/engine/usereventqueue.cxx +++ b/slideshow/source/engine/usereventqueue.cxx @@ -551,9 +551,9 @@ UserEventQueue::~UserEventQueue() // unregister all handlers clear(); } - catch (const uno::Exception& e) + catch (const uno::Exception&) { - SAL_WARN("slideshow", e); + TOOLS_WARN_EXCEPTION("slideshow", ""); } } |