diff options
-rw-r--r-- | tools/source/ref/globname.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/source/ref/globname.cxx b/tools/source/ref/globname.cxx index 05c7709931e6..9f55aadbde77 100644 --- a/tools/source/ref/globname.cxx +++ b/tools/source/ref/globname.cxx @@ -262,8 +262,8 @@ void SvGlobalName::MakeFromMemory( void * pData ) *************************************************************************/ sal_Bool SvGlobalName::MakeId( const String & rIdStr ) { - ByteString aStr( rIdStr, RTL_TEXTENCODING_ASCII_US ); - sal_Char * pStr = (sal_Char *)aStr.GetBuffer(); + ByteString aStr( rIdStr, RTL_TEXTENCODING_ASCII_US ); + const sal_Char * pStr = (sal_Char *)aStr.GetBuffer(); if( rIdStr.Len() == 36 && '-' == pStr[ 8 ] && '-' == pStr[ 13 ] && '-' == pStr[ 18 ] && '-' == pStr[ 23 ] ) |