loplugin:cstylecast: nop between pointer types of exactly same spelling
Change-Id: Ic4b6409013a19a78025973b26318ef05611a6984
This commit is contained in:
@@ -584,7 +584,7 @@ Polygon::~Polygon()
|
|||||||
|
|
||||||
const Point* Polygon::GetConstPointAry() const
|
const Point* Polygon::GetConstPointAry() const
|
||||||
{
|
{
|
||||||
return (Point*)mpImplPolygon->mpPointAry;
|
return mpImplPolygon->mpPointAry;
|
||||||
}
|
}
|
||||||
|
|
||||||
const sal_uInt8* Polygon::GetConstFlagAry() const
|
const sal_uInt8* Polygon::GetConstFlagAry() const
|
||||||
|
@@ -597,7 +597,7 @@ void* InternalResMgr::LoadGlobalRes( RESOURCE_TYPE nRT, sal_uInt32 nId,
|
|||||||
pStm->Read( pStringBlock, nSize );
|
pStm->Read( pStringBlock, nSize );
|
||||||
}
|
}
|
||||||
*pResHandle = pStringBlock;
|
*pResHandle = pStringBlock;
|
||||||
return (sal_uInt8*)pStringBlock + pFind->nOffset - nOffCorrection;
|
return pStringBlock + pFind->nOffset - nOffCorrection;
|
||||||
} // if( nRT == RSC_STRING && bEqual2Content )
|
} // if( nRT == RSC_STRING && bEqual2Content )
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@@ -577,7 +577,7 @@ bool SvStream::ReadLine( OString& rStr, sal_Int32 nMaxBytesToRead )
|
|||||||
if ( bEnd && (c=='\r' || c=='\n') ) // Special treatment for DOS files
|
if ( bEnd && (c=='\r' || c=='\n') ) // Special treatment for DOS files
|
||||||
{
|
{
|
||||||
char cTemp;
|
char cTemp;
|
||||||
sal_Size nLen = Read((char*)&cTemp , sizeof(cTemp) );
|
sal_Size nLen = Read(&cTemp , sizeof(cTemp) );
|
||||||
if ( nLen ) {
|
if ( nLen ) {
|
||||||
if( cTemp == c || (cTemp != '\n' && cTemp != '\r') )
|
if( cTemp == c || (cTemp != '\n' && cTemp != '\r') )
|
||||||
Seek( nOldFilePos );
|
Seek( nOldFilePos );
|
||||||
@@ -984,7 +984,7 @@ SvStream& SvStream::ReadChar( char& r )
|
|||||||
nBufFree -= sizeof(char);
|
nBufFree -= sizeof(char);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
Read( (char*)&r, sizeof(char) );
|
Read( &r, sizeof(char) );
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1154,7 +1154,7 @@ SvStream& SvStream::WriteChar( char v )
|
|||||||
bIsDirty = true;
|
bIsDirty = true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
Write( (char*)&v, sizeof(char) );
|
Write( &v, sizeof(char) );
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1724,7 +1724,7 @@ SvMemoryStream::~SvMemoryStream()
|
|||||||
const void* SvMemoryStream::GetBuffer()
|
const void* SvMemoryStream::GetBuffer()
|
||||||
{
|
{
|
||||||
Flush();
|
Flush();
|
||||||
return (const void*)GetData();
|
return GetData();
|
||||||
}
|
}
|
||||||
|
|
||||||
sal_uIntPtr SvMemoryStream::GetSize()
|
sal_uIntPtr SvMemoryStream::GetSize()
|
||||||
|
Reference in New Issue
Block a user