diff options
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; |