From 3e6d47408db3717690515fcb8051dddd8fb3d9a6 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 4 Sep 2015 15:09:30 +0100 Subject: missing part of natural sort commit Change-Id: I8cf86d69cfed220c940a5a3d499790d82b7ba319 --- vcl/source/control/ilstbox.cxx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'vcl') diff --git a/vcl/source/control/ilstbox.cxx b/vcl/source/control/ilstbox.cxx index a52d34ad95cf..87b17e989564 100644 --- a/vcl/source/control/ilstbox.cxx +++ b/vcl/source/control/ilstbox.cxx @@ -25,6 +25,7 @@ #include #include #include +#include #include #include @@ -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()) -- cgit