diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-05-11 12:51:23 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-05-11 12:51:23 +0200 |
commit | ad5daefda679ccbfb5b2759c970d34548bc2ba29 (patch) | |
tree | 2acfdf4d21e1edb1b51aaeb400f11611ffa08c56 /tools/source/stream/stream.cxx | |
parent | 2244ba7bc3e146e3ec8303064fb6d13ef548cdb2 (diff) |
loplugin:cstylecast: nop between pointer types of exactly same spelling
Change-Id: Ic4b6409013a19a78025973b26318ef05611a6984
Diffstat (limited to 'tools/source/stream/stream.cxx')
-rw-r--r-- | tools/source/stream/stream.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
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() |