summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-02-05 09:32:07 +0000
committerCaolán McNamara <caolanm@redhat.com>2021-02-05 12:47:51 +0100
commitcb4ba42fbf421a17a8ba0e32ef09add928f2b694 (patch)
tree02625ac3bf02731547c7367dcc5a6d75b33322e6
parent5e124e9d9d3bf3a55fe9956561db229d079288cc (diff)
cid#1472781 silence Uncaught exception
Change-Id: I898e6f2778b0db2850e051b0603ec9305f875477 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110460 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--sw/inc/ndole.hxx2
-rw-r--r--sw/source/core/ole/ndole.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/sw/inc/ndole.hxx b/sw/inc/ndole.hxx
index 39060d62501b..9603ce4f4440 100644
--- a/sw/inc/ndole.hxx
+++ b/sw/inc/ndole.hxx
@@ -180,7 +180,7 @@ private:
bool m_bOrigPurgeOle;
public:
PurgeGuard(const SwDoc& rDoc);
- ~PurgeGuard();
+ ~PurgeGuard() COVERITY_NOEXCEPT_FALSE;
};
#endif // _ INCLUDED_SW_INC_NDOLE_HXX
diff --git a/sw/source/core/ole/ndole.cxx b/sw/source/core/ole/ndole.cxx
index ee05b9a2779b..3fb56edbd3ad 100644
--- a/sw/source/core/ole/ndole.cxx
+++ b/sw/source/core/ole/ndole.cxx
@@ -989,7 +989,7 @@ PurgeGuard::PurgeGuard(const SwDoc& rDoc)
m_rManager.set(DocumentSettingId::PURGE_OLE, false);
}
-PurgeGuard::~PurgeGuard()
+PurgeGuard::~PurgeGuard() COVERITY_NOEXCEPT_FALSE
{
m_rManager.set(DocumentSettingId::PURGE_OLE, m_bOrigPurgeOle);
}