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
No known key found for this signature in database
GPG key ID: C3336907360768E1
633 changed files with 4454 additions and 4410 deletions

View file

@ -1364,7 +1364,7 @@ void VisualScriptConstant::set_constant_type(Variant::Type p_type) {
type = p_type;
Variant::CallError ce;
value = Variant::construct(type, NULL, 0, ce);
value = Variant::construct(type, nullptr, 0, ce);
ports_changed_notify();
_change_notify();
}
@ -2305,7 +2305,7 @@ VisualScriptNodeInstance *VisualScriptSceneNode::instance(VisualScriptInstance *
static Node *_find_script_node(Node *p_edited_scene, Node *p_current_node, const Ref<Script> &script) {
if (p_edited_scene != p_current_node && p_current_node->get_owner() != p_edited_scene)
return NULL;
return nullptr;
Ref<Script> scr = p_current_node->get_script();
@ -2318,7 +2318,7 @@ static Node *_find_script_node(Node *p_edited_scene, Node *p_current_node, const
return n;
}
return NULL;
return nullptr;
}
#endif
@ -3601,7 +3601,7 @@ void VisualScriptDeconstruct::_update_elements() {
elements.clear();
Variant v;
Variant::CallError ce;
v = Variant::construct(type, NULL, 0, ce);
v = Variant::construct(type, nullptr, 0, ce);
List<PropertyInfo> pinfo;
v.get_property_list(&pinfo);