summaryrefslogtreecommitdiff
path: root/sw/source/core/bastyp/calc.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-08-18 09:04:13 +0100
committerCaolán McNamara <caolanm@redhat.com>2022-08-18 11:00:41 +0200
commit1286014bbfad29e99634d62111e1ccef2f5e9a2b (patch)
treedc0b2425988df6c7a5d4675cc5129e9120a7bb8a /sw/source/core/bastyp/calc.cxx
parentbef0cfcf2a6d0a70adb6ddc5558d5a888edb718c (diff)
cid#1485150 Uncaught exception
Change-Id: I793683bfb59ff6b8751baa14a999b699cc28fdc9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138467 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source/core/bastyp/calc.cxx')
-rw-r--r--sw/source/core/bastyp/calc.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/sw/source/core/bastyp/calc.cxx b/sw/source/core/bastyp/calc.cxx
index a2dfd6c4aee2..d63ab0231914 100644
--- a/sw/source/core/bastyp/calc.cxx
+++ b/sw/source/core/bastyp/calc.cxx
@@ -348,12 +348,17 @@ SwCalc::SwCalc( SwDoc& rD )
} // SwCalc::SwCalc
-SwCalc::~SwCalc() COVERITY_NOEXCEPT_FALSE
+void SwCalc::ImplDestroy()
{
if( m_pCharClass != &GetAppCharClass() )
delete m_pCharClass;
}
+SwCalc::~SwCalc()
+{
+ suppress_fun_call_w_exception(ImplDestroy());
+}
+
SwSbxValue SwCalc::Calculate( const OUString& rStr )
{
m_eError = SwCalcError::NONE;