summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAron Budea <baron@caesar.elte.hu>2016-10-14 15:37:48 +0200
committerEike Rathke <erack@redhat.com>2016-11-04 11:39:36 +0000
commit610be3d128fe19b2d8458a479005314045eab830 (patch)
tree441eff6a3906a818bfdb9e08f439f0ae94595e5b
parenta29d53509b48657d53f5496d2295d30343f25ab6 (diff)
tdf#79892: Improve performance of transliteration
Pass resolved language to transliterate call, so it doesn't have to be resolved each time inside. Change-Id: Ibcad3b8517cb92c3462e14207c0a79ca2c76d73b Reviewed-on: https://gerrit.libreoffice.org/29829 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com> (cherry picked from commit 2ed5057993fa8d0f57531303e6c9fafc37138737) Reviewed-on: https://gerrit.libreoffice.org/30558 Reviewed-by: jan iversen <jani@documentfoundation.org> Tested-by: jan iversen <jani@documentfoundation.org>
-rw-r--r--sc/source/core/data/table3.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sc/source/core/data/table3.cxx b/sc/source/core/data/table3.cxx
index 7edc9a82ee1e..d0f4e099e521 100644
--- a/sc/source/core/data/table3.cxx
+++ b/sc/source/core/data/table3.cxx
@@ -2499,11 +2499,12 @@ public:
else
{
OUString aQueryStr = rItem.maString.getString();
+ const LanguageType nLang = ScGlobal::pSysLocale->GetLanguageTag().getLanguageType();
OUString aCell( mpTransliteration->transliterate(
- aCellStr.getString(), ScGlobal::eLnge, 0, aCellStr.getLength(),
+ aCellStr.getString(), nLang, 0, aCellStr.getLength(),
nullptr ) );
OUString aQuer( mpTransliteration->transliterate(
- aQueryStr, ScGlobal::eLnge, 0, aQueryStr.getLength(),
+ aQueryStr, nLang, 0, aQueryStr.getLength(),
nullptr ) );
sal_Int32 nIndex = (rEntry.eOp == SC_ENDS_WITH || rEntry.eOp == SC_DOES_NOT_END_WITH) ?
(aCell.getLength() - aQuer.getLength()) : 0;