You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Replace NULL with nullptr
This commit is contained in:
@@ -66,7 +66,7 @@ void CollisionPolygon3DEditor::_notification(int p_what) {
|
||||
void CollisionPolygon3DEditor::_node_removed(Node *p_node) {
|
||||
|
||||
if (p_node == node) {
|
||||
node = NULL;
|
||||
node = nullptr;
|
||||
if (imgeom->get_parent() == p_node)
|
||||
p_node->remove_child(imgeom);
|
||||
hide();
|
||||
@@ -507,7 +507,7 @@ void CollisionPolygon3DEditor::edit(Node *p_collision_polygon) {
|
||||
prev_depth = -1;
|
||||
|
||||
} else {
|
||||
node = NULL;
|
||||
node = nullptr;
|
||||
|
||||
if (imgeom->get_parent())
|
||||
imgeom->get_parent()->remove_child(imgeom);
|
||||
@@ -523,7 +523,7 @@ void CollisionPolygon3DEditor::_bind_methods() {
|
||||
|
||||
CollisionPolygon3DEditor::CollisionPolygon3DEditor(EditorNode *p_editor) {
|
||||
|
||||
node = NULL;
|
||||
node = nullptr;
|
||||
editor = p_editor;
|
||||
undo_redo = EditorNode::get_undo_redo();
|
||||
|
||||
@@ -591,7 +591,7 @@ void Polygon3DEditorPlugin::make_visible(bool p_visible) {
|
||||
} else {
|
||||
|
||||
collision_polygon_editor->hide();
|
||||
collision_polygon_editor->edit(NULL);
|
||||
collision_polygon_editor->edit(nullptr);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user