sc/source/ui/unoobj/tokenuno.cxx |    6 ------
 1 file changed, 6 deletions(-)

New commits:
commit 9987ac3656deeb0a934497e23b7aeaebe3ea7d53
Author:     Eike Rathke <er...@redhat.com>
AuthorDate: Wed Aug 28 18:16:12 2024 +0200
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Wed Aug 28 23:49:29 2024 +0200

    Remove superfluous unused temporary ScCompiler instances
    
    Obsolete already since
    
        commit f304a7a14a4af4d3f46eab18d5494194028e61ef
        CommitDate: Tue May 5 09:30:39 2015 +0200
    
            loplugin:staticmethods
    
    Change-Id: Ibd84962b2e0394b9eba4829c13ab06b4a690b15b
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172545
    Reviewed-by: Eike Rathke <er...@redhat.com>
    Tested-by: Jenkins
    (cherry picked from commit 599b1711eab1adf05aab7ac9b977cff3bc4f1878)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172502
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>

diff --git a/sc/source/ui/unoobj/tokenuno.cxx b/sc/source/ui/unoobj/tokenuno.cxx
index c5f34540f87f..baac36f21669 100644
--- a/sc/source/ui/unoobj/tokenuno.cxx
+++ b/sc/source/ui/unoobj/tokenuno.cxx
@@ -200,8 +200,6 @@ void SAL_CALL ScFormulaParserObj::setPropertyValue(
         // CompileEnglish _before_ OpCodeMap!
         if (mxOpCodeMap && mbEnglish != bOldEnglish)
         {
-            ScDocument& rDoc = mpDocShell->GetDocument();
-            ScCompiler aCompiler( rDoc, ScAddress(), rDoc.GetGrammar());
             mxOpCodeMap = formula::FormulaCompiler::CreateOpCodeMap( 
maOpCodeMapping, mbEnglish);
         }
 
@@ -219,8 +217,6 @@ void SAL_CALL ScFormulaParserObj::setPropertyValue(
         // had been set for CONV_XL_OOX.
         if (mxOpCodeMap && mbEnglish != bOldEnglish)
         {
-            ScDocument& rDoc = mpDocShell->GetDocument();
-            ScCompiler aCompiler( rDoc, ScAddress(), rDoc.GetGrammar());
             mxOpCodeMap = formula::FormulaCompiler::CreateOpCodeMap( 
maOpCodeMapping, mbEnglish);
         }
     }
@@ -233,8 +229,6 @@ void SAL_CALL ScFormulaParserObj::setPropertyValue(
         if (!(aValue >>= maOpCodeMapping))
             throw lang::IllegalArgumentException();
 
-        ScDocument& rDoc = mpDocShell->GetDocument();
-        ScCompiler aCompiler(rDoc, ScAddress(), rDoc.GetGrammar());
         mxOpCodeMap = formula::FormulaCompiler::CreateOpCodeMap( 
maOpCodeMapping, mbEnglish);
 
     }

Reply via email to