diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-04-28 12:47:31 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-04-28 16:10:16 +0200 |
commit | f757f152b1d2267e92a1100a9db58bf6e5aa8d3c (patch) | |
tree | 6a6299409d3bf848775f3ebda5de66ce229ce88b /tools | |
parent | 4149201b099487c5b46d7015b0c174dfff1841ec (diff) |
use more string_view in tools::SvGlobalName
Change-Id: I814744d250d6ce0ec7049daf215a506adb4f1ac5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133548
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/source/ref/globname.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/source/ref/globname.cxx b/tools/source/ref/globname.cxx index 251fb6d1831e..a41b29bba6d3 100644 --- a/tools/source/ref/globname.cxx +++ b/tools/source/ref/globname.cxx @@ -96,10 +96,10 @@ void SvGlobalName::MakeFromMemory( void const * pData ) memcpy( &m_aData, pData, sizeof( m_aData ) ); } -bool SvGlobalName::MakeId( const OUString & rIdStr ) +bool SvGlobalName::MakeId( std::u16string_view rIdStr ) { - const sal_Unicode *pStr = rIdStr.getStr(); - if( rIdStr.getLength() != 36 + const sal_Unicode *pStr = rIdStr.data(); + if( rIdStr.size() != 36 || '-' != pStr[ 8 ] || '-' != pStr[ 13 ] || '-' != pStr[ 18 ] || '-' != pStr[ 23 ] ) return false; |