1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-12 13:20:55 +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

@@ -40,7 +40,7 @@
void GridMapEditor::_node_removed(Node *p_node) {
if (p_node == node)
node = NULL;
node = nullptr;
}
void GridMapEditor::_configure() {
@@ -823,7 +823,7 @@ void GridMapEditor::update_palette() {
Ref<MeshLibrary> mesh_library = node->get_mesh_library();
if (mesh_library.is_null()) {
last_mesh_library = NULL;
last_mesh_library = nullptr;
search_box->set_text("");
search_box->set_editable(false);
info_message->show();
@@ -1133,7 +1133,7 @@ void GridMapEditor::_bind_methods() {
GridMapEditor::GridMapEditor(EditorNode *p_editor) {
input_action = INPUT_NONE;
node = NULL;
node = nullptr;
editor = p_editor;
undo_redo = p_editor->get_undo_redo();
@@ -1463,7 +1463,7 @@ void GridMapEditorPlugin::make_visible(bool p_visible) {
} else {
grid_map_editor->spatial_editor_hb->hide();
grid_map_editor->hide();
grid_map_editor->edit(NULL);
grid_map_editor->edit(nullptr);
grid_map_editor->set_process(false);
}
}