Some more loplugin:cstylecast: io

Change-Id: Iefd3268299b43ba08b9bc7699aa104288119ff4a
This commit is contained in:
Stephan Bergmann
2015-01-17 18:48:08 +01:00
parent e3ec05960a
commit 14c12fac0e
3 changed files with 22 additions and 33 deletions

View File

@@ -128,7 +128,7 @@ Sequence<sal_Int8> OTextOutputStream::implConvert( const OUString& rSource )
sal_Int32 nSeqSize = nSourceSize * 3;
Sequence<sal_Int8> seqText( nSeqSize );
sal_Char *pTarget = (sal_Char *) seqText.getArray();
sal_Char *pTarget = reinterpret_cast<char *>(seqText.getArray());
while( true )
{
nTargetCount += rtl_convertUnicodeToText(
@@ -148,7 +148,7 @@ Sequence<sal_Int8> OTextOutputStream::implConvert( const OUString& rSource )
{
nSeqSize *= 2;
seqText.realloc( nSeqSize ); // double array size
pTarget = (sal_Char*) seqText.getArray();
pTarget = reinterpret_cast<char*>(seqText.getArray());
continue;
}
break;