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

@ -44,7 +44,7 @@ void EditorSubScene::_path_changed(const String &p_path) {
if (scene) {
memdelete(scene);
scene = NULL;
scene = nullptr;
}
if (p_path == "")
@ -59,7 +59,7 @@ void EditorSubScene::_path_changed(const String &p_path) {
if (!scene)
return;
_fill_tree(scene, NULL);
_fill_tree(scene, nullptr);
}
void EditorSubScene::_path_browse() {
@ -68,7 +68,7 @@ void EditorSubScene::_path_browse() {
void EditorSubScene::_notification(int p_what) {
if (p_what == NOTIFICATION_VISIBILITY_CHANGED) {
if (is_visible() && scene == NULL)
if (is_visible() && scene == nullptr)
_path_browse();
}
}
@ -195,7 +195,7 @@ void EditorSubScene::move(Node *p_new_parent, Node *p_new_owner) {
if (!is_root) {
memdelete(scene);
}
scene = NULL;
scene = nullptr;
//return selnode;
}
@ -214,7 +214,7 @@ void EditorSubScene::_bind_methods() {
}
EditorSubScene::EditorSubScene() {
scene = NULL;
scene = nullptr;
is_root = false;
set_title(TTR("Select Node(s) to Import"));