You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +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:
@@ -84,7 +84,7 @@ void EditorPropertyRootMotion::_node_assign() {
|
||||
|
||||
for (Set<String>::Element *E = paths.front(); E; E = E->next()) {
|
||||
NodePath path = E->get();
|
||||
TreeItem *ti = NULL;
|
||||
TreeItem *ti = nullptr;
|
||||
String accum;
|
||||
for (int i = 0; i < path.get_name_count(); i++) {
|
||||
String name = path.get_name(i);
|
||||
@@ -113,7 +113,7 @@ void EditorPropertyRootMotion::_node_assign() {
|
||||
}
|
||||
}
|
||||
|
||||
Node *node = NULL;
|
||||
Node *node = nullptr;
|
||||
if (base->has_node(accum)) {
|
||||
node = base->get_node(accum);
|
||||
}
|
||||
@@ -205,7 +205,7 @@ void EditorPropertyRootMotion::update_property() {
|
||||
}
|
||||
assign->set_flat(true);
|
||||
|
||||
Node *base_node = NULL;
|
||||
Node *base_node = nullptr;
|
||||
if (base_hint != NodePath()) {
|
||||
if (get_tree()->get_root()->has_node(base_hint)) {
|
||||
base_node = get_tree()->get_root()->get_node(base_hint);
|
||||
|
||||
Reference in New Issue
Block a user