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

Caolán McNamara caolanm at redhat.com
Fri Sep 4 07:10:55 PDT 2015


 vcl/source/control/ilstbox.cxx |    7 +++++++
 1 file changed, 7 insertions(+)

New commits:
commit 3e6d47408db3717690515fcb8051dddd8fb3d9a6
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Sep 4 15:09:30 2015 +0100

    missing part of natural sort commit
    
    Change-Id: I8cf86d69cfed220c940a5a3d499790d82b7ba319

diff --git a/vcl/source/control/ilstbox.cxx b/vcl/source/control/ilstbox.cxx
index a52d34a..87b17e9 100644
--- a/vcl/source/control/ilstbox.cxx
+++ b/vcl/source/control/ilstbox.cxx
@@ -25,6 +25,7 @@
 #include <vcl/scrbar.hxx>
 #include <vcl/help.hxx>
 #include <vcl/lstbox.h>
+#include <vcl/lstbox.hxx>
 #include <vcl/unohelp.hxx>
 #include <vcl/i18nhelp.hxx>
 
@@ -112,6 +113,12 @@ namespace
     };
 }
 
+sal_Int32 ListBox::NaturalSortCompare(const OUString &rA, const OUString &rB)
+{
+    const comphelper::string::NaturalStringSorter &rSorter = theSorter::get();
+    return rSorter.compare(rA, rB);
+}
+
 sal_Int32 ImplEntryList::InsertEntry( sal_Int32 nPos, ImplEntryType* pNewEntry, bool bSort )
 {
     if (nPos < 0 || LISTBOX_MAX_ENTRIES <= maEntries.size())


More information about the Libreoffice-commits mailing list