[Libreoffice-commits] core.git: 2 commits - svl/qa vcl/source

Tor Lillqvist tml at collabora.com
Thu Aug 18 20:36:30 UTC 2016


 svl/qa/unit/svl.cxx             |    2 +-
 vcl/source/control/combobox.cxx |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 9f8d23d3b71efbfb72b355229dfefce1fb177612
Author: Tor Lillqvist <tml at collabora.com>
Date:   Thu Aug 18 23:25:31 2016 +0300

    loplugin:stringconstant
    
    Change-Id: I6dd872afb8d96da2ceb09ee553795ae98d5c0d09

diff --git a/svl/qa/unit/svl.cxx b/svl/qa/unit/svl.cxx
index 6eca0eb..d23620d 100644
--- a/svl/qa/unit/svl.cxx
+++ b/svl/qa/unit/svl.cxx
@@ -1189,7 +1189,7 @@ void Test::testUserDefinedNumberFormats()
                     OUString(sal_Unicode(20336)) +  // 佰
                     OUString(sal_Unicode(36019)) +  // 貳
                     OUString(sal_Unicode(25342)) +  // 拾
-                    OUString(sal_Unicode(' '));
+                    " ";
         checkPreviewString(aFormatter, sCode, 120, eLang, sExpected);
         sCode = "[DBNum2][$-0404]General\\ ";
         checkPreviewString(aFormatter, sCode, 120, eLang, sExpected);
commit c76215cf99125eb21e259383fdff15d6c621d683
Author: Tor Lillqvist <tml at collabora.com>
Date:   Thu Aug 18 23:14:00 2016 +0300

    loplugin:defaultparams
    
    Change-Id: I738fa9270337b17c9373186cdcbc2e7f8cbc32d4

diff --git a/vcl/source/control/combobox.cxx b/vcl/source/control/combobox.cxx
index d5e4708..ddc49a9 100644
--- a/vcl/source/control/combobox.cxx
+++ b/vcl/source/control/combobox.cxx
@@ -355,10 +355,10 @@ IMPL_LINK_TYPED(ComboBox::Impl, ImplAutocompleteHdl, Edit&, rEdit, void)
         if (!m_isMatchCase)
         {
             // Try match case insensitive from current position
-            nPos = m_pImplLB->GetEntryList()->FindMatchingEntry(aStartText, nStart, true);
+            nPos = m_pImplLB->GetEntryList()->FindMatchingEntry(aStartText, nStart);
             if ( nPos == LISTBOX_ENTRY_NOTFOUND )
                 // Try match case insensitive, but from start
-                nPos = m_pImplLB->GetEntryList()->FindMatchingEntry(aStartText, 0, true);
+                nPos = m_pImplLB->GetEntryList()->FindMatchingEntry(aStartText);
         }
 
         if ( nPos == LISTBOX_ENTRY_NOTFOUND )


More information about the Libreoffice-commits mailing list