diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:13:01 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:13:01 +0100 |
commit | 8456c2ba408b3bed160d3e5f050738301b225bd5 (patch) | |
tree | f5b4ba22b4c1e1ccfef3c5430b627ffd0bfc9ec7 /tools/source/zcodec/zcodec.cxx | |
parent | 8af176d7776938249f6e59dee3ed4f5c05edbebc (diff) |
More loplugin:cstylecast: tools
auto-rewrite with <https://gerrit.libreoffice.org/#/c/47798/> "Enable
loplugin:cstylecast for some more cases" plus
solenv/clang-format/reformat-formatted-files
Change-Id: Ifb9ebc9623c8df14ea0d4c907001bd16c5b9ae59
Diffstat (limited to 'tools/source/zcodec/zcodec.cxx')
-rw-r--r-- | tools/source/zcodec/zcodec.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/source/zcodec/zcodec.cxx b/tools/source/zcodec/zcodec.cxx index 258677952a3d..174753bac248 100644 --- a/tools/source/zcodec/zcodec.cxx +++ b/tools/source/zcodec/zcodec.cxx @@ -166,7 +166,7 @@ long ZCodec::Decompress( SvStream& rIStm, SvStream& rOStm ) while ( ( err != Z_STREAM_END) && ( PZSTREAM->avail_in || mnInToRead ) ); ImplWriteBack(); - return ( mbStatus ) ? (long)(PZSTREAM->total_out - nOldTotal_Out) : -1; + return ( mbStatus ) ? static_cast<long>(PZSTREAM->total_out - nOldTotal_Out) : -1; } void ZCodec::Write( SvStream& rOStm, const sal_uInt8* pData, sal_uInt32 nSize ) @@ -235,7 +235,7 @@ long ZCodec::Read( SvStream& rIStm, sal_uInt8* pData, sal_uInt32 nSize ) if ( err == Z_STREAM_END ) mbFinish = true; - return (mbStatus ? (long)(nSize - PZSTREAM->avail_out) : -1); + return (mbStatus ? static_cast<long>(nSize - PZSTREAM->avail_out) : -1); } long ZCodec::ReadAsynchron( SvStream& rIStm, sal_uInt8* pData, sal_uInt32 nSize ) @@ -288,7 +288,7 @@ long ZCodec::ReadAsynchron( SvStream& rIStm, sal_uInt8* pData, sal_uInt32 nSize if ( err == Z_STREAM_END ) mbFinish = true; - return (mbStatus ? (long)(nSize - PZSTREAM->avail_out) : -1); + return (mbStatus ? static_cast<long>(nSize - PZSTREAM->avail_out) : -1); } void ZCodec::ImplWriteBack() |