diff --git a/sot/source/sdstor/stgole.cxx b/sot/source/sdstor/stgole.cxx index 4987b3d67f30..72a3a29ea6f0 100644 --- a/sot/source/sdstor/stgole.cxx +++ b/sot/source/sdstor/stgole.cxx @@ -153,7 +153,7 @@ bool StgCompObjStream::Store() WriteInt32( -1L ); WriteClsId( *this, aClsId ); // Class ID WriteInt32( aAsciiUserName.getLength() + 1 ); - WriteCharPtr( (const char *)aAsciiUserName.getStr() ); + WriteCharPtr( aAsciiUserName.getStr() ); WriteUChar( 0 ); // string terminator WriteClipboardFormat( *this, nCbFormat ); WriteInt32( 0 ); // terminator diff --git a/sot/source/sdstor/storinfo.cxx b/sot/source/sdstor/storinfo.cxx index 7ff16c38f5a6..bba6d8f058eb 100644 --- a/sot/source/sdstor/storinfo.cxx +++ b/sot/source/sdstor/storinfo.cxx @@ -79,7 +79,7 @@ void WriteClipboardFormat( SvStream & rStm, SotClipboardFormatId nFormat ) OString aAsciiCbFmt(OUStringToOString(aCbFmt, RTL_TEXTENCODING_ASCII_US)); rStm.WriteInt32( aAsciiCbFmt.getLength() + 1 ); - rStm.WriteCharPtr( (const char *)aAsciiCbFmt.getStr() ); + rStm.WriteCharPtr( aAsciiCbFmt.getStr() ); rStm.WriteUChar( 0 ); } else if( nFormat != SotClipboardFormatId::NONE )