diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-08-11 21:00:14 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-08-12 10:17:16 +0200 |
commit | 5a06127c3bdcb35bc38162f889ec038266ee0608 (patch) | |
tree | 5e5641ea7becca969f5e0e994d5648a492c2a491 /sw | |
parent | ba81f5bbeb37dfc184e178119e17a901e649374a (diff) |
cid#1401328 Uncaught exception
Change-Id: I3e438e4ea8b8061ffa3cb4253df8854e5f9f9d6e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138165
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/crsr/callnk.cxx | 7 | ||||
-rw-r--r-- | sw/source/core/crsr/callnk.hxx | 4 |
2 files changed, 9 insertions, 2 deletions
diff --git a/sw/source/core/crsr/callnk.cxx b/sw/source/core/crsr/callnk.cxx index 7628a51c27c0..74278a6a0dd8 100644 --- a/sw/source/core/crsr/callnk.cxx +++ b/sw/source/core/crsr/callnk.cxx @@ -106,7 +106,7 @@ void NotifyTableCollapsedParagraph(const SwContentNode *const pNode, SwCursorShe } // namespace sw -SwCallLink::~SwCallLink() COVERITY_NOEXCEPT_FALSE +void SwCallLink::ImplDestroy() { if( m_nNodeType == SwNodeType::NONE || !m_rShell.m_bCallChgLnk ) // see ctor return ; @@ -239,6 +239,11 @@ SwCallLink::~SwCallLink() COVERITY_NOEXCEPT_FALSE m_rShell.GetFlyMacroLnk().Call( pFlyFrame->GetFormat() ); } +SwCallLink::~SwCallLink() +{ + suppress_fun_call_w_exception(ImplDestroy()); +} + tools::Long SwCallLink::getLayoutFrame(const SwRootFrame* pRoot, SwTextNode const & rNd, sal_Int32 nCntPos, bool /*bCalcFrame*/) { diff --git a/sw/source/core/crsr/callnk.hxx b/sw/source/core/crsr/callnk.hxx index ca7db0c8f746..3614816749ad 100644 --- a/sw/source/core/crsr/callnk.hxx +++ b/sw/source/core/crsr/callnk.hxx @@ -39,9 +39,11 @@ public: bool m_bHasSelection; explicit SwCallLink( SwCursorShell & rSh ); - ~SwCallLink() COVERITY_NOEXCEPT_FALSE; + ~SwCallLink(); static tools::Long getLayoutFrame( const SwRootFrame*, SwTextNode const & rNd, sal_Int32 nCntPos, bool bCalcFrame ); +private: + void ImplDestroy(); }; #endif // INCLUDED_SW_SOURCE_CORE_CRSR_CALLNK_HXX |