1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-08 12:40:44 +00:00

Style: Replaces uses of 0/NULL by nullptr (C++11)

Using clang-tidy's `modernize-use-nullptr`.
https://clang.llvm.org/extra/clang-tidy/checks/modernize-use-nullptr.html
This commit is contained in:
Rémi Verschelde
2021-05-04 16:00:45 +02:00
parent 2b429b24b5
commit a828398655
633 changed files with 4454 additions and 4410 deletions

View File

@@ -48,7 +48,7 @@ void PhysicalBoneEditor::_set_move_joint() {
PhysicalBoneEditor::PhysicalBoneEditor(EditorNode *p_editor) :
editor(p_editor),
selected(NULL) {
selected(nullptr) {
spatial_editor_hb = memnew(HBoxContainer);
spatial_editor_hb->set_h_size_flags(Control::SIZE_EXPAND_FILL);
spatial_editor_hb->set_alignment(BoxContainer::ALIGN_BEGIN);
@@ -87,7 +87,7 @@ void PhysicalBoneEditor::show() {
PhysicalBonePlugin::PhysicalBonePlugin(EditorNode *p_editor) :
editor(p_editor),
selected(NULL),
selected(nullptr),
physical_bone_editor(editor) {}
void PhysicalBonePlugin::make_visible(bool p_visible) {
@@ -95,8 +95,8 @@ void PhysicalBonePlugin::make_visible(bool p_visible) {
physical_bone_editor.show();
} else {
physical_bone_editor.hide();
physical_bone_editor.set_selected(NULL);
selected = NULL;
physical_bone_editor.set_selected(nullptr);
selected = nullptr;
}
}