loplugin:cstylecast: deal with those that are (technically) const_cast
Change-Id: I773ac633fb3f7de25c62b1e802ddce4ca2cc31c3
This commit is contained in:
@@ -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
|
||||
|
@@ -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 )
|
||||
|
Reference in New Issue
Block a user