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:
@@ -218,7 +218,7 @@ void AbstractPolygon2DEditor::_notification(int p_what) {
|
||||
void AbstractPolygon2DEditor::_node_removed(Node *p_node) {
|
||||
|
||||
if (p_node == _get_node()) {
|
||||
edit(NULL);
|
||||
edit(nullptr);
|
||||
hide();
|
||||
|
||||
canvas_item_editor->update_viewport();
|
||||
@@ -690,7 +690,7 @@ void AbstractPolygon2DEditor::edit(Node *p_polygon) {
|
||||
canvas_item_editor->update_viewport();
|
||||
} else {
|
||||
|
||||
_set_node(NULL);
|
||||
_set_node(nullptr);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -801,7 +801,7 @@ AbstractPolygon2DEditor::PosVertex AbstractPolygon2DEditor::closest_edge_point(c
|
||||
|
||||
AbstractPolygon2DEditor::AbstractPolygon2DEditor(EditorNode *p_editor, bool p_wip_destructive) {
|
||||
|
||||
canvas_item_editor = NULL;
|
||||
canvas_item_editor = nullptr;
|
||||
editor = p_editor;
|
||||
undo_redo = EditorNode::get_undo_redo();
|
||||
|
||||
@@ -854,7 +854,7 @@ void AbstractPolygon2DEditorPlugin::make_visible(bool p_visible) {
|
||||
} else {
|
||||
|
||||
polygon_editor->hide();
|
||||
polygon_editor->edit(NULL);
|
||||
polygon_editor->edit(nullptr);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user