mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Replace NULL with nullptr
This commit is contained in:
@@ -38,7 +38,7 @@ Error ImageLoaderBMP::convert_to_image(Ref<Image> p_image,
|
||||
|
||||
Error err = OK;
|
||||
|
||||
if (p_buffer == NULL)
|
||||
if (p_buffer == nullptr)
|
||||
err = FAILED;
|
||||
|
||||
if (err == OK) {
|
||||
@@ -151,7 +151,7 @@ Error ImageLoaderBMP::convert_to_image(Ref<Image> p_image,
|
||||
line -= line_width;
|
||||
}
|
||||
|
||||
if (p_color_buffer == NULL || color_table_size == 0) { // regular pixels
|
||||
if (p_color_buffer == nullptr || color_table_size == 0) { // regular pixels
|
||||
|
||||
p_image->create(width, height, 0, Image::FORMAT_RGBA8, data);
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
|
||||
#include "image_loader_bmp.h"
|
||||
|
||||
static ImageLoaderBMP *image_loader_bmp = NULL;
|
||||
static ImageLoaderBMP *image_loader_bmp = nullptr;
|
||||
|
||||
void register_bmp_types() {
|
||||
image_loader_bmp = memnew(ImageLoaderBMP);
|
||||
|
||||
Reference in New Issue
Block a user