From c898611bd56a2ea090b2eb46f4d7bd4dd57594a7 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sat, 2 Apr 2022 13:41:56 +0200 Subject: 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 --- scripting/source/provider/BrowseNodeFactoryImpl.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripting') 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 : -- cgit