loplugin:cstylecast: nop between pointer types of exactly same spelling

Change-Id: Ic4b6409013a19a78025973b26318ef05611a6984
This commit is contained in:
Stephan Bergmann 2015-05-11 12:51:23 +02:00
parent 2244ba7bc3
commit ad5daefda6
3 changed files with 6 additions and 6 deletions

View File

@ -584,7 +584,7 @@ Polygon::~Polygon()
const Point* Polygon::GetConstPointAry() const
{
return (Point*)mpImplPolygon->mpPointAry;
return mpImplPolygon->mpPointAry;
}
const sal_uInt8* Polygon::GetConstFlagAry() const

View File

@ -597,7 +597,7 @@ void* InternalResMgr::LoadGlobalRes( RESOURCE_TYPE nRT, sal_uInt32 nId,
pStm->Read( pStringBlock, nSize );
}
*pResHandle = pStringBlock;
return (sal_uInt8*)pStringBlock + pFind->nOffset - nOffCorrection;
return pStringBlock + pFind->nOffset - nOffCorrection;
} // if( nRT == RSC_STRING && bEqual2Content )
else
{

View File

@ -577,7 +577,7 @@ bool SvStream::ReadLine( OString& rStr, sal_Int32 nMaxBytesToRead )
if ( bEnd && (c=='\r' || c=='\n') ) // Special treatment for DOS files
{
char cTemp;
sal_Size nLen = Read((char*)&cTemp , sizeof(cTemp) );
sal_Size nLen = Read(&cTemp , sizeof(cTemp) );
if ( nLen ) {
if( cTemp == c || (cTemp != '\n' && cTemp != '\r') )
Seek( nOldFilePos );
@ -984,7 +984,7 @@ SvStream& SvStream::ReadChar( char& r )
nBufFree -= sizeof(char);
}
else
Read( (char*)&r, sizeof(char) );
Read( &r, sizeof(char) );
return *this;
}
@ -1154,7 +1154,7 @@ SvStream& SvStream::WriteChar( char v )
bIsDirty = true;
}
else
Write( (char*)&v, sizeof(char) );
Write( &v, sizeof(char) );
return *this;
}
@ -1724,7 +1724,7 @@ SvMemoryStream::~SvMemoryStream()
const void* SvMemoryStream::GetBuffer()
{
Flush();
return (const void*)GetData();
return GetData();
}
sal_uIntPtr SvMemoryStream::GetSize()