From 8332d6d8200e8ca1f22dd98d9373efd5a431d09c Mon Sep 17 00:00:00 2001 From: Noel Date: Wed, 25 Nov 2020 08:14:07 +0200 Subject: loplugin:stringviewparam include comparisons with string literals Change-Id: I8ba1214500dddaf413c506a4b82f43d63cda804b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106559 Tested-by: Jenkins Reviewed-by: Noel Grandin --- configmgr/source/components.cxx | 4 ++-- configmgr/source/components.hxx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'configmgr') diff --git a/configmgr/source/components.cxx b/configmgr/source/components.cxx index f7bd5ba34e3a..cd1fceddb2ef 100644 --- a/configmgr/source/components.cxx +++ b/configmgr/source/components.cxx @@ -202,8 +202,8 @@ Components & Components::getSingleton( return singleton; } -bool Components::allLocales(OUString const & locale) { - return locale == "*"; +bool Components::allLocales(std::u16string_view locale) { + return locale == u"*"; } rtl::Reference< Node > Components::resolvePathRepresentation( diff --git a/configmgr/source/components.hxx b/configmgr/source/components.hxx index 9ede2ed381f2..0647002f0d15 100644 --- a/configmgr/source/components.hxx +++ b/configmgr/source/components.hxx @@ -52,7 +52,7 @@ public: static Components & getSingleton( css::uno::Reference< css::uno::XComponentContext > const & context); - static bool allLocales(OUString const & locale); + static bool allLocales(std::u16string_view locale); rtl::Reference< Node > resolvePathRepresentation( OUString const & pathRepresentation, -- cgit