diff options
author | Eike Rathke <erack@redhat.com> | 2024-08-28 18:16:12 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2024-08-28 21:10:13 +0200 |
commit | 599b1711eab1adf05aab7ac9b977cff3bc4f1878 (patch) | |
tree | 966c53982da6ec4e5b8e8acc483e5bc8670e3600 /sc | |
parent | e68715944f26cf3171dde12c4a2dfef64f0e684a (diff) |
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 <erack@redhat.com>
Tested-by: Jenkins
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/unoobj/tokenuno.cxx | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/sc/source/ui/unoobj/tokenuno.cxx b/sc/source/ui/unoobj/tokenuno.cxx index 51da3621cd4b..b8e4e133a113 100644 --- a/sc/source/ui/unoobj/tokenuno.cxx +++ b/sc/source/ui/unoobj/tokenuno.cxx @@ -209,8 +209,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); } @@ -228,8 +226,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); } } @@ -242,8 +238,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); } |