mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-13 04:33:33 +00:00
refactor: replace NULL with nullptr across C++ codebase
Excludes vendored C libs (zlib, Miles, DirectXMath, boost, Iggy).
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
#include "MobSkinTextureProcessor.h"
|
||||
|
||||
BufferedImage* MobSkinTextureProcessor::process(BufferedImage* in) {
|
||||
if (in == NULL) return NULL;
|
||||
if (in == nullptr) return nullptr;
|
||||
|
||||
width = 64;
|
||||
height = 32;
|
||||
@@ -10,7 +10,7 @@ BufferedImage* MobSkinTextureProcessor::process(BufferedImage* in) {
|
||||
BufferedImage* out =
|
||||
new BufferedImage(width, height, BufferedImage::TYPE_INT_ARGB);
|
||||
Graphics* g = out->getGraphics();
|
||||
g->drawImage(in, 0, 0, NULL);
|
||||
g->drawImage(in, 0, 0, nullptr);
|
||||
g->dispose();
|
||||
|
||||
pixels = out->getData();
|
||||
|
||||
Reference in New Issue
Block a user