Style: Replaces uses of 0/NULL by nullptr (C++11)

Using clang-tidy's `modernize-use-nullptr`.
https://clang.llvm.org/extra/clang-tidy/checks/modernize-use-nullptr.html
This commit is contained in:
Rémi Verschelde
2021-05-04 16:00:45 +02:00
parent 2b429b24b5
commit a828398655
633 changed files with 4454 additions and 4410 deletions

View File

@ -303,7 +303,7 @@ Error ImageLoaderTGA::load_image(Ref<Image> p_image, FileAccess *f, bool p_force
PoolVector<uint8_t>::Write uncompressed_buffer_w = uncompressed_buffer.write();
PoolVector<uint8_t>::Read uncompressed_buffer_r;
const uint8_t *buffer = NULL;
const uint8_t *buffer = nullptr;
if (is_encoded) {
err = decode_tga_rle(src_image_r.ptr(), pixel_size, uncompressed_buffer_w.ptr(), buffer_size);

View File

@ -32,7 +32,7 @@
#include "image_loader_tga.h"
static ImageLoaderTGA *image_loader_tga = NULL;
static ImageLoaderTGA *image_loader_tga = nullptr;
void register_tga_types() {
image_loader_tga = memnew(ImageLoaderTGA);