diff options
author | Noel <noelgrandin@gmail.com> | 2020-11-18 10:10:40 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-11-24 09:45:04 +0100 |
commit | bb06f51308428500c9c8d11ae05f0aa03ecc179c (patch) | |
tree | b18620e8572ed6d4c43c8605660d59f5f7a7e531 /svl/source/passwordcontainer | |
parent | 42e8e16cf93dcf944e5c1106f76aaa32057c0397 (diff) |
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 <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svl/source/passwordcontainer')
-rw-r--r-- | svl/source/passwordcontainer/passwordcontainer.cxx | 8 | ||||
-rw-r--r-- | svl/source/passwordcontainer/passwordcontainer.hxx | 6 |
2 files changed, 7 insertions, 7 deletions
diff --git a/svl/source/passwordcontainer/passwordcontainer.cxx b/svl/source/passwordcontainer/passwordcontainer.cxx index 51fb129cddb1..893c7eb96ef8 100644 --- a/svl/source/passwordcontainer/passwordcontainer.cxx +++ b/svl/source/passwordcontainer/passwordcontainer.cxx @@ -659,7 +659,7 @@ void PasswordContainer::PrivateAdd( const OUString& Url, const OUString& UserNam UrlRecord SAL_CALL PasswordContainer::find( const OUString& aURL, const Reference< XInteractionHandler >& aHandler ) { - return find( aURL, OUString(), false, aHandler ); + return find( aURL, u"", false, aHandler ); } @@ -669,7 +669,7 @@ UrlRecord SAL_CALL PasswordContainer::findForName( const OUString& aURL, const O } -Sequence< UserRecord > PasswordContainer::FindUsr( const std::vector< NamePassRecord >& userlist, const OUString& aName, const Reference< XInteractionHandler >& aHandler ) +Sequence< UserRecord > PasswordContainer::FindUsr( const std::vector< NamePassRecord >& userlist, std::u16string_view aName, const Reference< XInteractionHandler >& aHandler ) { sal_uInt32 nInd = 0; for (auto const& aNPIter : userlist) @@ -692,7 +692,7 @@ Sequence< UserRecord > PasswordContainer::FindUsr( const std::vector< NamePassRe bool PasswordContainer::createUrlRecord( const PassMap::iterator & rIter, bool bName, - const OUString & aName, + std::u16string_view aName, const Reference< XInteractionHandler >& aHandler, UrlRecord & rRec ) { @@ -719,7 +719,7 @@ bool PasswordContainer::createUrlRecord( UrlRecord PasswordContainer::find( const OUString& aURL, - const OUString& aName, + std::u16string_view aName, bool bName, // only needed to support empty user names const Reference< XInteractionHandler >& aHandler ) { diff --git a/svl/source/passwordcontainer/passwordcontainer.hxx b/svl/source/passwordcontainer/passwordcontainer.hxx index 46ffec888602..937a2be66975 100644 --- a/svl/source/passwordcontainer/passwordcontainer.hxx +++ b/svl/source/passwordcontainer/passwordcontainer.hxx @@ -231,20 +231,20 @@ private: /// @throws css::uno::RuntimeException css::uno::Sequence< css::task::UserRecord > FindUsr( const ::std::vector< NamePassRecord >& userlist, - const OUString& name, + std::u16string_view name, const css::uno::Reference< css::task::XInteractionHandler >& Handler ); /// @throws css::uno::RuntimeException bool createUrlRecord( const PassMap::iterator & rIter, bool bName, - const OUString & aName, + std::u16string_view aName, const css::uno::Reference< css::task::XInteractionHandler >& aHandler, css::task::UrlRecord & rRec ); /// @throws css::uno::RuntimeException css::task::UrlRecord find( const OUString& aURL, - const OUString& aName, + std::u16string_view aName, bool bName, // only needed to support empty user names const css::uno::Reference< css::task::XInteractionHandler >& aHandler ); |