summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2024-08-28 18:16:12 +0200
committerXisco Fauli <xiscofauli@libreoffice.org>2024-08-28 23:49:29 +0200
commit9987ac3656deeb0a934497e23b7aeaebe3ea7d53 (patch)
tree61b28b5de5a273e68582267b58f35319e99a7378 /sc
parented4b306d95895ae1a3a179f3a8ce15ff940f52e6 (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 (cherry picked from commit 599b1711eab1adf05aab7ac9b977cff3bc4f1878) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172502 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/unoobj/tokenuno.cxx6
1 files changed, 0 insertions, 6 deletions
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);
}