diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-02-13 15:21:53 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-02-13 20:55:28 +0100 |
commit | 8eab16d46f0c70cf9f7afb307ab4a56c49919ac4 (patch) | |
tree | f5934147b117f92d58892df2d66988df101d8b2b /sw/source | |
parent | c32a61b8d4461f4c936f7ea0f07624e1286f29bf (diff) |
extract NaturalSortCompare from ListBox
Change-Id: I260c83778aea06eba9ae774739c6dc31fe5366d6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88613
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/uibase/inc/swcont.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/inc/swcont.hxx b/sw/source/uibase/inc/swcont.hxx index f116935d2edf..fb2d0a9d4b79 100644 --- a/sw/source/uibase/inc/swcont.hxx +++ b/sw/source/uibase/inc/swcont.hxx @@ -21,7 +21,7 @@ #define INCLUDED_SW_SOURCE_UIBASE_INC_SWCONT_HXX #include <rtl/ustring.hxx> -#include <vcl/lstbox.hxx> +#include <vcl/naturalsort.hxx> class SwContentType; @@ -92,7 +92,7 @@ public: // at first sort by position and then by name if (nYPosition != rCont.nYPosition) return nYPosition < rCont.nYPosition; - return ListBox::NaturalSortCompare(sContentName, rCont.sContentName) < 0; + return vcl::NaturalSortCompare(sContentName, rCont.sContentName) < 0; } bool IsInvisible() const {return bInvisible;} |