sc/source/core/data/patattr.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit c3ac62fb5772838cfa27c7c690a57ddfad082cb3
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Sun Dec 31 20:11:04 2023 +0000
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Sun Dec 31 22:39:21 2023 +0100

    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.mcnam...@collabora.com>

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)

Reply via email to