diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-12-31 20:11:04 +0000 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-12-31 22:39:21 +0100 |
commit | c3ac62fb5772838cfa27c7c690a57ddfad082cb3 (patch) | |
tree | f2aaeda4a758c6b4d6ef1f053aefa9347bce39e8 | |
parent | 7cf623ae1771f448ab4f82c175156a7e776fa964 (diff) |
cid#1559949 silence Uncaught exception
and
cid#1559958 silence Uncaught exception
Change-Id: Ic7093b3c9eef55157b7bca481841db0ef4b8c8fb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161506
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
-rw-r--r-- | sc/source/core/data/patattr.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/core/data/patattr.cxx b/sc/source/core/data/patattr.cxx index e54cb7ee2646..76a0ad4f887a 100644 --- a/sc/source/core/data/patattr.cxx +++ b/sc/source/core/data/patattr.cxx @@ -219,20 +219,20 @@ CellAttributeHolder::CellAttributeHolder(const ScPatternAttr* pNew, bool bPassin : mpScPatternAttr(nullptr) { if (nullptr != pNew) - mpScPatternAttr = pNew->getCellAttributeHelper().registerAndCheck(*pNew, bPassingOwnership); + suppress_fun_call_w_exception(mpScPatternAttr = pNew->getCellAttributeHelper().registerAndCheck(*pNew, bPassingOwnership)); } CellAttributeHolder::CellAttributeHolder(const CellAttributeHolder& rHolder) : mpScPatternAttr(nullptr) { if (rHolder.getScPatternAttr()) - mpScPatternAttr = rHolder.getScPatternAttr()->getCellAttributeHelper().registerAndCheck(*rHolder.getScPatternAttr(), false); + suppress_fun_call_w_exception(mpScPatternAttr = rHolder.getScPatternAttr()->getCellAttributeHelper().registerAndCheck(*rHolder.getScPatternAttr(), false)); } CellAttributeHolder::~CellAttributeHolder() { if (nullptr != mpScPatternAttr) - mpScPatternAttr->getCellAttributeHelper().doUnregister(*mpScPatternAttr); + suppress_fun_call_w_exception(mpScPatternAttr->getCellAttributeHelper().doUnregister(*mpScPatternAttr)); } const CellAttributeHolder& CellAttributeHolder::operator=(const CellAttributeHolder& rHolder) |