From 9987ac3656deeb0a934497e23b7aeaebe3ea7d53 Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Wed, 28 Aug 2024 18:16:12 +0200 Subject: 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 Tested-by: Jenkins (cherry picked from commit 599b1711eab1adf05aab7ac9b977cff3bc4f1878) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172502 Reviewed-by: Xisco Fauli --- sc/source/ui/unoobj/tokenuno.cxx | 6 ------ 1 file changed, 6 deletions(-) (limited to 'sc') 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); } -- cgit