Handle some clang-tidy issues

This commit is contained in:
Anders Jenbo 2021-08-07 16:30:14 +02:00 committed by GitHub
commit 8df8b940c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 65 additions and 63 deletions

View file

@ -16,7 +16,7 @@ namespace {
unsigned int PkwareBufferRead(char *buf, unsigned int *size, void *param) // NOLINT(readability-non-const-parameter)
{
auto *pInfo = (TDataInfo *)param;
auto *pInfo = reinterpret_cast<TDataInfo *>(param);
uint32_t sSize;
if (*size >= pInfo->size - pInfo->srcOffset) {
@ -33,7 +33,7 @@ unsigned int PkwareBufferRead(char *buf, unsigned int *size, void *param) // NOL
void PkwareBufferWrite(char *buf, unsigned int *size, void *param) // NOLINT(readability-non-const-parameter)
{
auto *pInfo = (TDataInfo *)param;
auto *pInfo = reinterpret_cast<TDataInfo *>(param);
memcpy(pInfo->destData + pInfo->destOffset, buf, *size);
pInfo->destOffset += *size;