sw/source/core/unocore/unosect.cxx |    2 +-
 sw/source/core/unocore/unotbl.cxx  |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 445ee505b63686161962abfe7a2aaafe8a03b4be
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Sun May 19 12:15:24 2024 +0100
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Sun May 19 16:34:30 2024 +0200

    cid#1598293 silence Unchecked return value
    
    and
    
    cid#1598292 Unchecked return value
    
    Change-Id: I9880932b8fb2340ec122c907aea0374881238283
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167843
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>

diff --git a/sw/source/core/unocore/unosect.cxx 
b/sw/source/core/unocore/unosect.cxx
index 5f48f9580bc4..d85a90736866 100644
--- a/sw/source/core/unocore/unosect.cxx
+++ b/sw/source/core/unocore/unosect.cxx
@@ -1607,7 +1607,7 @@ SwXTextSection::getPropertyDefault(const OUString& 
rPropertyName)
         case  FN_UNO_ANCHOR_TYPES:
         case  FN_UNO_TEXT_WRAP:
         case  FN_UNO_ANCHOR_TYPE:
-            ::sw::GetDefaultTextContentValue(aRet, u"", pEntry->nWID);
+            (void)::sw::GetDefaultTextContentValue(aRet, u"", pEntry->nWID);
         break;
         default:
         if(pFormat && SfxItemPool::IsWhich(pEntry->nWID))
diff --git a/sw/source/core/unocore/unotbl.cxx 
b/sw/source/core/unocore/unotbl.cxx
index 1ecefa2eb2a9..f9ce9aa23b6e 100644
--- a/sw/source/core/unocore/unotbl.cxx
+++ b/sw/source/core/unocore/unotbl.cxx
@@ -2713,7 +2713,7 @@ uno::Any SwXTextTable::getPropertyValue(const OUString& 
rPropertyName)
                 case  FN_UNO_ANCHOR_TYPES:
                 case  FN_UNO_TEXT_WRAP:
                 case  FN_UNO_ANCHOR_TYPE:
-                    ::sw::GetDefaultTextContentValue(
+                    (void)::sw::GetDefaultTextContentValue(
                             aRet, u"", pEntry->nWID);
                 break;
 

Reply via email to