sc/source/core/data/documen3.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit a0d12dcb83e75c33d0fa6c64d4f749ef8baa1b1e
Author:     Julien Nabet <serval2...@yahoo.fr>
AuthorDate: Sat Jul 15 21:23:51 2023 +0200
Commit:     Julien Nabet <serval2...@yahoo.fr>
CommitDate: Sun Jul 16 12:06:24 2023 +0200

    cid#1538310 useless_call
    
    since:
    3cc198a0706b25c42cc8dae7e25635cbd911ac02
    sc: remove duplicated table validity checks and other duplications
    
    Change-Id: I1d86a73f7d16e83f900c58f9a54291b0c3274092
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154487
    Tested-by: Julien Nabet <serval2...@yahoo.fr>
    Reviewed-by: Julien Nabet <serval2...@yahoo.fr>

diff --git a/sc/source/core/data/documen3.cxx b/sc/source/core/data/documen3.cxx
index 27051e7f8b38..73cf516c4d49 100644
--- a/sc/source/core/data/documen3.cxx
+++ b/sc/source/core/data/documen3.cxx
@@ -661,7 +661,7 @@ ScFormulaParserPool& ScDocument::GetFormulaParserPool() 
const
 const ScSheetEvents* ScDocument::GetSheetEvents( SCTAB nTab ) const
 {
     if (const ScTable* pTable = FetchTable(nTab))
-        pTable->GetSheetEvents();
+        return pTable->GetSheetEvents();
     return nullptr;
 }
 

Reply via email to