From d0069e5189f5410e1db7aa395f0754109e872f46 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 10 Feb 2017 09:24:16 +0000 Subject: add COVERITY_NOEXCEPT_FALSE MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit to markup dtors that coverity warns might throw exceptions which won't throw in practice, or where std::terminate is an acceptable response if they do Change-Id: I32b94814e8245372e1d1dc36be0d81e3564042f4 Reviewed-on: https://gerrit.libreoffice.org/38318 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- svl/source/notify/SfxBroadcaster.cxx | 2 +- svl/source/notify/hint.cxx | 2 +- svl/source/notify/listener.cxx | 2 +- svl/source/notify/lstner.cxx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'svl/source/notify') diff --git a/svl/source/notify/SfxBroadcaster.cxx b/svl/source/notify/SfxBroadcaster.cxx index 82a16d180211..f4e00e860333 100644 --- a/svl/source/notify/SfxBroadcaster.cxx +++ b/svl/source/notify/SfxBroadcaster.cxx @@ -52,7 +52,7 @@ void SfxBroadcaster::Broadcast( const SfxHint &rHint ) // unregister all listeners -SfxBroadcaster::~SfxBroadcaster() +SfxBroadcaster::~SfxBroadcaster() COVERITY_NOEXCEPT_FALSE { Broadcast( SfxHint(SfxHintId::Dying) ); diff --git a/svl/source/notify/hint.cxx b/svl/source/notify/hint.cxx index 4d7cceda565e..ad36d5098e1c 100644 --- a/svl/source/notify/hint.cxx +++ b/svl/source/notify/hint.cxx @@ -23,7 +23,7 @@ // virtual dtor for the typical base-class Hint -SfxHint::~SfxHint() +SfxHint::~SfxHint() COVERITY_NOEXCEPT_FALSE { } diff --git a/svl/source/notify/listener.cxx b/svl/source/notify/listener.cxx index e1f193cb3753..6caa8af78702 100644 --- a/svl/source/notify/listener.cxx +++ b/svl/source/notify/listener.cxx @@ -33,7 +33,7 @@ SvtListener::SvtListener() {} SvtListener::SvtListener( const SvtListener &r ) : maBroadcasters(r.maBroadcasters) {} -SvtListener::~SvtListener() +SvtListener::~SvtListener() COVERITY_NOEXCEPT_FALSE { // Unregister itself from all broadcasters it's listening to. EndListeningAll(); diff --git a/svl/source/notify/lstner.cxx b/svl/source/notify/lstner.cxx index 070cc9edf04d..4279e12f4a5c 100644 --- a/svl/source/notify/lstner.cxx +++ b/svl/source/notify/lstner.cxx @@ -50,7 +50,7 @@ SfxListener::SfxListener( const SfxListener &rListener ) : mpImpl(new Impl) // unregisters the SfxListener from its SfxBroadcasters -SfxListener::~SfxListener() +SfxListener::~SfxListener() COVERITY_NOEXCEPT_FALSE { // unregister at all remaining broadcasters for ( size_t nPos = 0; nPos < mpImpl->maBCs.size(); ++nPos ) -- cgit