mirror of
https://github.com/godotengine/godot.git
synced 2025-10-25 18:54:43 +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:
parent
2b429b24b5
commit
a828398655
633 changed files with 4454 additions and 4410 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue