mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 06:11:29 +03:00
Replace NULL with nullptr
This commit is contained in:
@@ -127,7 +127,7 @@ public:
|
||||
}
|
||||
|
||||
SectionedInspectorFilter() {
|
||||
edited = NULL;
|
||||
edited = nullptr;
|
||||
}
|
||||
};
|
||||
|
||||
@@ -142,7 +142,7 @@ void SectionedInspector::_section_selected() {
|
||||
return;
|
||||
|
||||
selected_category = sections->get_selected()->get_metadata(0);
|
||||
filter->set_section(selected_category, sections->get_selected()->get_children() == NULL);
|
||||
filter->set_section(selected_category, sections->get_selected()->get_children() == nullptr);
|
||||
inspector->set_property_prefix(selected_category + "/");
|
||||
}
|
||||
|
||||
@@ -177,8 +177,8 @@ void SectionedInspector::edit(Object *p_object) {
|
||||
obj = ObjectID();
|
||||
sections->clear();
|
||||
|
||||
filter->set_edited(NULL);
|
||||
inspector->edit(NULL);
|
||||
filter->set_edited(nullptr);
|
||||
inspector->edit(nullptr);
|
||||
|
||||
return;
|
||||
}
|
||||
@@ -308,7 +308,7 @@ SectionedInspector::SectionedInspector() :
|
||||
sections(memnew(Tree)),
|
||||
filter(memnew(SectionedInspectorFilter)),
|
||||
inspector(memnew(EditorInspector)),
|
||||
search_box(NULL) {
|
||||
search_box(nullptr) {
|
||||
add_theme_constant_override("autohide", 1); // Fixes the dragger always showing up
|
||||
|
||||
VBoxContainer *left_vb = memnew(VBoxContainer);
|
||||
|
||||
Reference in New Issue
Block a user