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:
@ -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);
|
||||
|
||||
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user