diff options
author | Bensuperpc <bensuperpc@gmail.com> | 2022-10-22 13:04:48 +0200 |
---|---|---|
committer | Bensuperpc <bensuperpc@gmail.com> | 2022-10-22 13:04:48 +0200 |
commit | 56ae4e5b6ad984d4c9569cb024d807bd695555a6 (patch) | |
tree | 6c57be7ca586d98f98e7be40fc9c0343eba2696c /launcher/GZip.cpp | |
parent | 7a8c9637225f457d4648a00ff7d8031acd403730 (diff) | |
download | PrismLauncher-56ae4e5b6ad984d4c9569cb024d807bd695555a6.tar.gz PrismLauncher-56ae4e5b6ad984d4c9569cb024d807bd695555a6.tar.bz2 PrismLauncher-56ae4e5b6ad984d4c9569cb024d807bd695555a6.zip |
Change old style cast to C++ cast
Change old style cast to C++ cast
Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
Diffstat (limited to 'launcher/GZip.cpp')
-rw-r--r-- | launcher/GZip.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/launcher/GZip.cpp b/launcher/GZip.cpp index 067104cf..e36dc8a4 100644 --- a/launcher/GZip.cpp +++ b/launcher/GZip.cpp @@ -72,7 +72,7 @@ bool GZip::unzip(const QByteArray &compressedBytes, QByteArray &uncompressedByte uncompLength *= 2; } - strm.next_out = (Bytef *)(uncompressedBytes.data() + strm.total_out); + strm.next_out = reinterpret_cast<Bytef *>((uncompressedBytes.data() + strm.total_out)); strm.avail_out = uncompLength - strm.total_out; // Inflate another chunk. @@ -129,7 +129,7 @@ bool GZip::zip(const QByteArray &uncompressedBytes, QByteArray &compressedBytes) { compressedBytes.resize(compressedBytes.size() * 2); } - zs.next_out = (Bytef *) (compressedBytes.data() + offset); + zs.next_out = reinterpret_cast<Bytef*>((compressedBytes.data() + offset)); temp = zs.avail_out = compressedBytes.size() - offset; ret = deflate(&zs, Z_FINISH); offset += temp - zs.avail_out; |