diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-04-02 13:41:56 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-04-02 16:55:36 +0200 |
commit | c898611bd56a2ea090b2eb46f4d7bd4dd57594a7 (patch) | |
tree | a0c0a84395a972adaee24260443ed18793f3c1b4 /scripting | |
parent | 12f94913307450aad0e48f6ce06aac9f74807e1a (diff) |
loplugin:stringviewparam convert methods using compareTo
which converts to compare
Change-Id: If03c790ea113a7caedbe89f926b29055c9ec1e76
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132455
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'scripting')
-rw-r--r-- | scripting/source/provider/BrowseNodeFactoryImpl.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripting/source/provider/BrowseNodeFactoryImpl.cxx b/scripting/source/provider/BrowseNodeFactoryImpl.cxx index b18db2bbce31..23eb2f203630 100644 --- a/scripting/source/provider/BrowseNodeFactoryImpl.cxx +++ b/scripting/source/provider/BrowseNodeFactoryImpl.cxx @@ -143,9 +143,9 @@ public: struct alphaSort { - bool operator()( const OUString& a, std::u16string_view b ) + bool operator()( std::u16string_view a, std::u16string_view b ) { - return a.compareTo( b ) < 0; + return a.compare( b ) < 0; } }; class LocationBrowseNode : |