You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Replace NULL with nullptr
This commit is contained in:
@@ -135,7 +135,7 @@ void EditorDebuggerTree::update_scene_tree(const SceneDebuggerTree *p_tree, int
|
||||
// Nodes are in a flatten list, depth first. Use a stack of parents, avoid recursion.
|
||||
List<Pair<TreeItem *, int>> parents;
|
||||
for (int i = 0; i < p_tree->nodes.size(); i++) {
|
||||
TreeItem *parent = NULL;
|
||||
TreeItem *parent = nullptr;
|
||||
if (parents.size()) { // Find last parent.
|
||||
Pair<TreeItem *, int> &p = parents[0];
|
||||
parent = p.first;
|
||||
@@ -191,7 +191,7 @@ void EditorDebuggerTree::update_scene_tree(const SceneDebuggerTree *p_tree, int
|
||||
// Check if parent expects more children.
|
||||
for (int j = 0; j < parents.size(); j++) {
|
||||
if (parents[j].first == item) {
|
||||
parent = NULL;
|
||||
parent = nullptr;
|
||||
break; // Might have more children.
|
||||
}
|
||||
}
|
||||
@@ -211,7 +211,7 @@ String EditorDebuggerTree::get_selected_path() {
|
||||
String EditorDebuggerTree::_get_path(TreeItem *p_item) {
|
||||
ERR_FAIL_COND_V(!p_item, "");
|
||||
|
||||
if (p_item->get_parent() == NULL) {
|
||||
if (p_item->get_parent() == nullptr) {
|
||||
return "/root";
|
||||
}
|
||||
String text = p_item->get_text(0);
|
||||
|
||||
Reference in New Issue
Block a user