[Libreoffice-commits] core.git: sc/source

Aron Budea baron at caesar.elte.hu
Mon Oct 24 18:04:37 UTC 2016


 sc/source/core/data/table3.cxx |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
commit 2ed5057993fa8d0f57531303e6c9fafc37138737
Author: Aron Budea <baron at caesar.elte.hu>
Date:   Fri Oct 14 15:37:48 2016 +0200

    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 at redhat.com>
    Tested-by: Eike Rathke <erack at redhat.com>

diff --git a/sc/source/core/data/table3.cxx b/sc/source/core/data/table3.cxx
index 1784b1c..2674f3f 100644
--- a/sc/source/core/data/table3.cxx
+++ b/sc/source/core/data/table3.cxx
@@ -2500,11 +2500,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;


More information about the Libreoffice-commits mailing list