clang-tidy: don't check for NULL with delete

Found with readability-delete-null-pointer

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2021-04-26 20:47:22 -07:00 committed by Luis Díaz Más
parent 1dc1186760
commit b3040da54c
2 changed files with 2 additions and 2 deletions

View File

@ -90,7 +90,7 @@ int main(int argc, char* const argv[])
output.putb(io->getb()) ;
}
}
if ( bytes ) delete [] bytes;
delete[] bytes;
output.close();
}

View File

@ -1682,7 +1682,7 @@ namespace Exiv2 {
}
RemoteIo::Impl::~Impl() {
if (blocksMap_) delete[] blocksMap_;
delete[] blocksMap_;
}
RemoteIo::~RemoteIo()