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 --- uui/source/iahndl.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'uui') diff --git a/uui/source/iahndl.cxx b/uui/source/iahndl.cxx index eee5c744d437..a9c72d06f244 100644 --- a/uui/source/iahndl.cxx +++ b/uui/source/iahndl.cxx @@ -280,7 +280,7 @@ UUIInteractionHelper::tryOtherInteractionHandler( namespace { - bool lcl_matchesRequest( const Any& i_rRequest, const OUString& i_rTypeName, const OUString& i_rPropagation ) + bool lcl_matchesRequest( const Any& i_rRequest, const OUString& i_rTypeName, std::u16string_view i_rPropagation ) { const css::uno::TypeDescription aTypeDesc( i_rTypeName ); const typelib_TypeDescription* pTypeDesc = aTypeDesc.get(); @@ -291,7 +291,7 @@ namespace } const css::uno::Type aType( pTypeDesc->pWeakRef ); - const bool bExactMatch = i_rPropagation == "named-only"; + const bool bExactMatch = i_rPropagation == u"named-only"; if ( bExactMatch ) return i_rRequest.getValueType().equals( aType ); -- cgit