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 /xmloff/source/chart | |
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 'xmloff/source/chart')
-rw-r--r-- | xmloff/source/chart/MultiPropertySetHandler.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmloff/source/chart/MultiPropertySetHandler.hxx b/xmloff/source/chart/MultiPropertySetHandler.hxx index d742faf50463..d47b942f0fe0 100644 --- a/xmloff/source/chart/MultiPropertySetHandler.hxx +++ b/xmloff/source/chart/MultiPropertySetHandler.hxx @@ -94,9 +94,9 @@ class OUStringComparison { public: /// Compare two strings. Returns true if the first is before the second. - bool operator() (const OUString & a, std::u16string_view b) const + bool operator() (std::u16string_view a, std::u16string_view b) const { - return (a.compareTo (b) < 0); + return (a.compare (b) < 0); } }; |