summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/tools/globname.hxx2
-rw-r--r--svx/source/xml/xmleohlp.cxx2
-rw-r--r--tools/source/ref/globname.cxx6
3 files changed, 5 insertions, 5 deletions
diff --git a/include/tools/globname.hxx b/include/tools/globname.hxx
index 8ff2a8b28220..50c3fc27b923 100644
--- a/include/tools/globname.hxx
+++ b/include/tools/globname.hxx
@@ -59,7 +59,7 @@ public:
{ return !(*this == rObj); }
void MakeFromMemory( void const * pData );
- bool MakeId( const OUString & rId );
+ bool MakeId( std::u16string_view rId );
OUString GetHexName() const;
const SvGUID& GetCLSID() const { return m_aData; }
diff --git a/svx/source/xml/xmleohlp.cxx b/svx/source/xml/xmleohlp.cxx
index e3fcf6100940..3a57b1754775 100644
--- a/svx/source/xml/xmleohlp.cxx
+++ b/svx/source/xml/xmleohlp.cxx
@@ -438,7 +438,7 @@ OUString SvXMLEmbeddedObjectHelper::ImplInsertEmbeddedObjectURL(
SvGlobalName aClassId, *pClassId = nullptr;
sal_Int32 nPos = aObjectStorageName.lastIndexOf( '!' );
- if( -1 != nPos && aClassId.MakeId( aObjectStorageName.copy( nPos+1 ) ) )
+ if( -1 != nPos && aClassId.MakeId( aObjectStorageName.subView( nPos+1 ) ) )
{
aObjectStorageName = aObjectStorageName.copy( 0, nPos );
pClassId = &aClassId;
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;