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:
@ -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"));
|
||||
|
||||
Reference in New Issue
Block a user