Replace NULL with nullptr
This commit is contained in:
@@ -65,7 +65,7 @@ inline void change_nsvg_paint_color(NSVGpaint *p_paint, const uint32_t p_old, co
|
||||
|
||||
void ImageLoaderSVG::_convert_colors(NSVGimage *p_svg_image) {
|
||||
|
||||
for (NSVGshape *shape = p_svg_image->shapes; shape != NULL; shape = shape->next) {
|
||||
for (NSVGshape *shape = p_svg_image->shapes; shape != nullptr; shape = shape->next) {
|
||||
|
||||
for (int i = 0; i < replace_colors.old_colors.size(); i++) {
|
||||
change_nsvg_paint_color(&(shape->stroke), replace_colors.old_colors[i], replace_colors.new_colors[i]);
|
||||
@@ -98,7 +98,7 @@ Error ImageLoaderSVG::_create_image(Ref<Image> p_image, const Vector<uint8_t> *p
|
||||
NSVGimage *svg_image;
|
||||
const uint8_t *src_r = p_data->ptr();
|
||||
svg_image = nsvgParse((char *)src_r, "px", 96);
|
||||
if (svg_image == NULL) {
|
||||
if (svg_image == nullptr) {
|
||||
ERR_PRINT("SVG Corrupted");
|
||||
return ERR_FILE_CORRUPT;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user