loplugin:cstylecast: deal with those that are (technically) const_cast

Change-Id: I773ac633fb3f7de25c62b1e802ddce4ca2cc31c3
This commit is contained in:
Stephan Bergmann
2015-06-02 11:28:10 +02:00
parent d8ba942b99
commit a2d5dc55f4
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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 )