You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-25 15:37:42 +00:00
Replace NULL with nullptr
This commit is contained in:
@@ -489,7 +489,7 @@ class RasterizerSceneHighEndRD : public RasterizerSceneRD {
|
||||
_FORCE_INLINE_ Element *add_element() {
|
||||
|
||||
if (element_count + alpha_element_count >= max_elements)
|
||||
return NULL;
|
||||
return nullptr;
|
||||
elements[element_count] = &base_elements[element_count];
|
||||
return elements[element_count++];
|
||||
}
|
||||
@@ -497,7 +497,7 @@ class RasterizerSceneHighEndRD : public RasterizerSceneRD {
|
||||
_FORCE_INLINE_ Element *add_alpha_element() {
|
||||
|
||||
if (element_count + alpha_element_count >= max_elements)
|
||||
return NULL;
|
||||
return nullptr;
|
||||
int idx = max_elements - alpha_element_count - 1;
|
||||
elements[idx] = &base_elements[idx];
|
||||
alpha_element_count++;
|
||||
|
||||
Reference in New Issue
Block a user