summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-05-11 12:51:23 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-05-11 12:51:23 +0200
commitad5daefda679ccbfb5b2759c970d34548bc2ba29 (patch)
tree2acfdf4d21e1edb1b51aaeb400f11611ffa08c56 /tools
parent2244ba7bc3e146e3ec8303064fb6d13ef548cdb2 (diff)
loplugin:cstylecast: nop between pointer types of exactly same spelling
Change-Id: Ic4b6409013a19a78025973b26318ef05611a6984
Diffstat (limited to 'tools')
-rw-r--r--tools/source/generic/poly.cxx2
-rw-r--r--tools/source/rc/resmgr.cxx2
-rw-r--r--tools/source/stream/stream.cxx8
3 files changed, 6 insertions, 6 deletions
diff --git a/tools/source/generic/poly.cxx b/tools/source/generic/poly.cxx
index 76973f260ca4..457a05b4d112 100644
--- a/tools/source/generic/poly.cxx
+++ b/tools/source/generic/poly.cxx
@@ -584,7 +584,7 @@ Polygon::~Polygon()
const Point* Polygon::GetConstPointAry() const
{
- return (Point*)mpImplPolygon->mpPointAry;
+ return mpImplPolygon->mpPointAry;
}
const sal_uInt8* Polygon::GetConstFlagAry() const
diff --git a/tools/source/rc/resmgr.cxx b/tools/source/rc/resmgr.cxx
index 13b60e21ad02..d17c315b030a 100644
--- a/tools/source/rc/resmgr.cxx
+++ b/tools/source/rc/resmgr.cxx
@@ -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
{
diff --git a/tools/source/stream/stream.cxx b/tools/source/stream/stream.cxx
index 16cd3421c1a8..002d9e5e5fbb 100644
--- a/tools/source/stream/stream.cxx
+++ b/tools/source/stream/stream.cxx
@@ -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()