diff options
author | Eike Rathke <erack@redhat.com> | 2020-10-31 17:07:58 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2020-10-31 19:24:40 +0100 |
commit | bd938176a12cda2b7f1e0fe23d8799ce4ed59f71 (patch) | |
tree | 12b4ec863c349964ea4fa43f681d8734738f8253 /sc | |
parent | 4e08dd5c31ebb5032a8aa41030410bea21a1eb66 (diff) |
Constructing ScCompiler is unnecessary here
The sheet separator can be obtained from the AddressConvention
extracted from the document's FormulaGrammar.
Change-Id: Ieec8f49f1d338c29665192fc73320f76b8fa1484
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105106
Tested-by: Jenkins
Reviewed-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/app/inputhdl.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sc/source/ui/app/inputhdl.cxx b/sc/source/ui/app/inputhdl.cxx index fef75313ca04..df08e89a7b19 100644 --- a/sc/source/ui/app/inputhdl.cxx +++ b/sc/source/ui/app/inputhdl.cxx @@ -107,8 +107,9 @@ const sal_Unicode cParenthesesReplacement = 0x0001; sal_Unicode lcl_getSheetSeparator(ScDocument& rDoc) { - ScCompiler aComp(rDoc, ScAddress(), rDoc.GetGrammar()); - return aComp.GetNativeAddressSymbol(ScCompiler::Convention::SHEET_SEPARATOR); + const ScCompiler::Convention* pConv = ScCompiler::GetRefConvention( + FormulaGrammar::extractRefConvention( rDoc.GetGrammar())); + return pConv ? pConv->getSpecialSymbol( ScCompiler::Convention::SHEET_SEPARATOR) : '.'; } ScTypedCaseStrSet::const_iterator findText( |