diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-04-10 15:36:21 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-04-10 20:15:16 +0200 |
commit | b24a4d255d31233c48152e6e1ce992a693cdaeae (patch) | |
tree | e0ad8f574d3b1ddcad3d81ec3ac438777ca4846d /sfx2 | |
parent | 57f22d9b1a4e1cd161a35c8e4c390661db981d2c (diff) |
use more string_view
found by tweaking the loplugin:stringview and making it whitelist
getLength
Change-Id: Ic15d3703d1fb07658e99e1db1c89e2fa5bc70c19
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132771
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/doc/docfile.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/doc/docfile.cxx b/sfx2/source/doc/docfile.cxx index 3c652adb89c7..2a1cf03c0601 100644 --- a/sfx2/source/doc/docfile.cxx +++ b/sfx2/source/doc/docfile.cxx @@ -3044,11 +3044,11 @@ const std::shared_ptr<const SfxFilter>& SfxMedium::GetFilter() const return pImpl->m_pFilter; } -sal_uInt32 SfxMedium::CreatePasswordToModifyHash( const OUString& aPasswd, bool bWriter ) +sal_uInt32 SfxMedium::CreatePasswordToModifyHash( std::u16string_view aPasswd, bool bWriter ) { sal_uInt32 nHash = 0; - if ( !aPasswd.isEmpty() ) + if ( !aPasswd.empty() ) { if ( bWriter ) { |