Replace NULL with nullptr

This commit is contained in:
lupoDharkael 2020-04-02 01:20:12 +02:00
parent 5f11e15571
commit 95a1400a2a
755 changed files with 5742 additions and 5742 deletions

View file

@ -35,15 +35,15 @@
void Camera3DEditor::_node_removed(Node *p_node) {
if (p_node == node) {
node = NULL;
Node3DEditor::get_singleton()->set_custom_camera(NULL);
node = nullptr;
Node3DEditor::get_singleton()->set_custom_camera(nullptr);
hide();
}
}
void Camera3DEditor::_pressed() {
Node *sn = (node && preview->is_pressed()) ? node : NULL;
Node *sn = (node && preview->is_pressed()) ? node : nullptr;
Node3DEditor::get_singleton()->set_custom_camera(sn);
}
@ -56,13 +56,13 @@ void Camera3DEditor::edit(Node *p_camera) {
if (!node) {
preview->set_pressed(false);
Node3DEditor::get_singleton()->set_custom_camera(NULL);
Node3DEditor::get_singleton()->set_custom_camera(nullptr);
} else {
if (preview->is_pressed())
Node3DEditor::get_singleton()->set_custom_camera(p_camera);
else
Node3DEditor::get_singleton()->set_custom_camera(NULL);
Node3DEditor::get_singleton()->set_custom_camera(nullptr);
}
}
@ -98,7 +98,7 @@ void Camera3DEditorPlugin::make_visible(bool p_visible) {
if (p_visible) {
//Node3DEditor::get_singleton()->set_can_preview(Object::cast_to<Camera3D>(p_object));
} else {
Node3DEditor::get_singleton()->set_can_preview(NULL);
Node3DEditor::get_singleton()->set_can_preview(nullptr);
}
}