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

New commits:
commit a25774ac230ad8c36f9c9fb99ecdda0098279f31
Author:     Eike Rathke <er...@redhat.com>
AuthorDate: Sat Dec 18 00:07:43 2021 +0100
Commit:     Eike Rathke <er...@redhat.com>
CommitDate: Sat Dec 18 01:41:43 2021 +0100

    Worth an assert (inserting the range name should not fail) not OSL_FAIL()
    
    Change-Id: I7178d7d9c3e4b86e3fca256031b9ee4de904e5c0
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127020
    Reviewed-by: Eike Rathke <er...@redhat.com>
    Tested-by: Jenkins

diff --git a/sc/source/core/data/formulacell.cxx 
b/sc/source/core/data/formulacell.cxx
index 3c948a2f85a8..fa50d4b9a3f3 100644
--- a/sc/source/core/data/formulacell.cxx
+++ b/sc/source/core/data/formulacell.cxx
@@ -441,7 +441,7 @@ void adjustRangeName(formula::FormulaToken* pToken, 
ScDocument& rNewDoc, const S
     {
         // If this happened we have a real problem.
         pToken->SetIndex(0);
-        OSL_FAIL("inserting the range name should not fail");
+        assert(!"inserting the range name should not fail");
         return;
     }
 

Reply via email to