summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-02-10 09:24:16 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-06-06 14:15:43 +0200
commitd0069e5189f5410e1db7aa395f0754109e872f46 (patch)
tree30c860e8d780c3461c6048be9594f642f03de5de /svl
parentcc2db25645ede743bdc3824fe7d26ea4beda6a96 (diff)
add COVERITY_NOEXCEPT_FALSE
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 <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svl')
-rw-r--r--svl/source/notify/SfxBroadcaster.cxx2
-rw-r--r--svl/source/notify/hint.cxx2
-rw-r--r--svl/source/notify/listener.cxx2
-rw-r--r--svl/source/notify/lstner.cxx2
-rw-r--r--svl/source/undo/undo.cxx2
5 files changed, 5 insertions, 5 deletions
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 )
diff --git a/svl/source/undo/undo.cxx b/svl/source/undo/undo.cxx
index d837621fba87..db6be7846ef8 100644
--- a/svl/source/undo/undo.cxx
+++ b/svl/source/undo/undo.cxx
@@ -48,7 +48,7 @@ SfxUndoContext::~SfxUndoContext()
}
-SfxUndoAction::~SfxUndoAction()
+SfxUndoAction::~SfxUndoAction() COVERITY_NOEXCEPT_FALSE
{
}