diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-06-02 11:28:42 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-06-02 11:28:42 +0200 |
commit | 194c960ce9991418d72ab7ca181d412255d13020 (patch) | |
tree | 22af31c6da5e2bf8e1a17d28dc9567f03b01d3e0 /tools/source/stream | |
parent | 64b33886ef0ba179abafa50e1bfc6f3386488a5b (diff) |
loplugin:cstylecast: deal with those that are (technically) const_cast
Change-Id: Ia5b84ed835215fe8e6a00a92cb3ac66f5fe0d973
Diffstat (limited to 'tools/source/stream')
-rw-r--r-- | tools/source/stream/stream.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/source/stream/stream.cxx b/tools/source/stream/stream.cxx index 45d276958c71..2e98799d2b9d 100644 --- a/tools/source/stream/stream.cxx +++ b/tools/source/stream/stream.cxx @@ -1163,7 +1163,7 @@ SvStream& SvStream::WriteUChar( unsigned char v ) //SDO if(bIoWrite && sizeof(char) <= nBufFree ) { - *(unsigned char*)pBufPos = v; + *reinterpret_cast<unsigned char*>(pBufPos) = v; pBufPos++; // = sizeof(char); nBufActualPos++; // = sizeof(char); if( nBufActualPos > nBufActualLen ) // Append ? |