From bb06f51308428500c9c8d11ae05f0aa03ecc179c Mon Sep 17 00:00:00 2001 From: Noel Date: Wed, 18 Nov 2020 10:10:40 +0200 Subject: loplugin:stringviewparam extend to comparison operators which means that some call sites have to change to use unicode string literals i.e. u"foo" instead of "foo" Change-Id: Ie51c3adf56d343dd1d1710777f9d2a43ee66221c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106125 Tested-by: Jenkins Reviewed-by: Noel Grandin --- xmlscript/source/xmldlg_imexp/imp_share.hxx | 2 +- xmlscript/source/xmldlg_imexp/xmldlg_import.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'xmlscript/source/xmldlg_imexp') diff --git a/xmlscript/source/xmldlg_imexp/imp_share.hxx b/xmlscript/source/xmldlg_imexp/imp_share.hxx index 6d8e9128a336..79ae41e4af0b 100644 --- a/xmlscript/source/xmldlg_imexp/imp_share.hxx +++ b/xmlscript/source/xmldlg_imexp/imp_share.hxx @@ -134,7 +134,7 @@ public: OUString const & rStyleId, css::uno::Reference< css::xml::input::XElement > const & xStyle ); css::uno::Reference< css::xml::input::XElement > getStyle( - OUString const & rStyleId ) const; + std::u16string_view rStyleId ) const; css::uno::Reference< css::uno::XComponentContext > const & getComponentContext() const { return _xContext; } diff --git a/xmlscript/source/xmldlg_imexp/xmldlg_import.cxx b/xmlscript/source/xmldlg_imexp/xmldlg_import.cxx index 75d5bd481a63..2d3ae432e7a1 100644 --- a/xmlscript/source/xmldlg_imexp/xmldlg_import.cxx +++ b/xmlscript/source/xmldlg_imexp/xmldlg_import.cxx @@ -1756,7 +1756,7 @@ void DialogImport::addStyle( } Reference< xml::input::XElement > DialogImport::getStyle( - OUString const & rStyleId ) const + std::u16string_view rStyleId ) const { for ( size_t nPos = 0; nPos < (*_pStyleNames).size(); ++nPos ) { -- cgit