Some more loplugin:cstylecast: basic
Change-Id: Ib22bc7408d333a7080fa44c9c3ac9535ccf00752
This commit is contained in:
@@ -112,7 +112,7 @@ void SbiBuffer::Patch( sal_uInt32 off, sal_uInt32 val )
|
||||
{
|
||||
sal_uInt16 val1 = static_cast<sal_uInt16>( val & 0xFFFF );
|
||||
sal_uInt16 val2 = static_cast<sal_uInt16>( val >> 16 );
|
||||
sal_uInt8* p = (sal_uInt8*) pBuf + off;
|
||||
sal_uInt8* p = reinterpret_cast<sal_uInt8*>(pBuf) + off;
|
||||
*p++ = (char) ( val1 & 0xFF );
|
||||
*p++ = (char) ( val1 >> 8 );
|
||||
*p++ = (char) ( val2 & 0xFF );
|
||||
@@ -134,7 +134,7 @@ void SbiBuffer::Chain( sal_uInt32 off )
|
||||
sal_uInt32 val2 = (nOff >> 16);
|
||||
do
|
||||
{
|
||||
ip = (sal_uInt8*) pBuf + i;
|
||||
ip = reinterpret_cast<sal_uInt8*>(pBuf) + i;
|
||||
sal_uInt8* pTmp = ip;
|
||||
i = *pTmp++; i |= *pTmp++ << 8; i |= *pTmp++ << 16; i |= *pTmp++ << 24;
|
||||
|
||||
|
Reference in New Issue
Block a user