From 95a1400a2ac9de1a29fa305f45b928ce8e3044bd Mon Sep 17 00:00:00 2001 From: lupoDharkael Date: Thu, 2 Apr 2020 01:20:12 +0200 Subject: Replace NULL with nullptr --- modules/gdnative/nativescript/api_generator.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'modules/gdnative/nativescript/api_generator.cpp') diff --git a/modules/gdnative/nativescript/api_generator.cpp b/modules/gdnative/nativescript/api_generator.cpp index 11fe746e90..3c0cfd0484 100644 --- a/modules/gdnative/nativescript/api_generator.cpp +++ b/modules/gdnative/nativescript/api_generator.cpp @@ -46,7 +46,7 @@ static Error save_file(const String &p_path, const List &p_content) { ERR_FAIL_COND_V(!file, ERR_FILE_CANT_WRITE); - for (const List::Element *e = p_content.front(); e != NULL; e = e->next()) { + for (const List::Element *e = p_content.front(); e != nullptr; e = e->next()) { file->store_string(e->get()); } @@ -197,7 +197,7 @@ List generate_c_api_classes() { api.push_back(global_constants_api); } - for (List::Element *e = classes.front(); e != NULL; e = e->next()) { + for (List::Element *e = classes.front(); e != nullptr; e = e->next()) { StringName class_name = e->get(); ClassAPI class_api; @@ -229,7 +229,7 @@ List generate_c_api_classes() { List constant; ClassDB::get_integer_constant_list(class_name, &constant, true); constant.sort_custom(); - for (List::Element *c = constant.front(); c != NULL; c = c->next()) { + for (List::Element *c = constant.front(); c != nullptr; c = c->next()) { ConstantAPI constant_api; constant_api.constant_name = c->get(); constant_api.constant_value = ClassDB::get_integer_constant(class_name, c->get()); @@ -284,7 +284,7 @@ List generate_c_api_classes() { ClassDB::get_property_list(class_name, &properties, true); properties.sort_custom(); - for (List::Element *p = properties.front(); p != NULL; p = p->next()) { + for (List::Element *p = properties.front(); p != nullptr; p = p->next()) { PropertyAPI property_api; property_api.name = p->get().name; @@ -312,7 +312,7 @@ List generate_c_api_classes() { ClassDB::get_method_list(class_name, &methods, true); methods.sort_custom(); - for (List::Element *m = methods.front(); m != NULL; m = m->next()) { + for (List::Element *m = methods.front(); m != nullptr; m = m->next()) { MethodAPI method_api; MethodBind *method_bind = ClassDB::get_method(class_name, m->get().name); MethodInfo &method_info = m->get(); @@ -392,7 +392,7 @@ List generate_c_api_classes() { enum_api.name = E->get(); ClassDB::get_enum_constants(class_name, E->get(), &value_names, true); for (List::Element *val_e = value_names.front(); val_e; val_e = val_e->next()) { - int int_val = ClassDB::get_integer_constant(class_name, val_e->get(), NULL); + int int_val = ClassDB::get_integer_constant(class_name, val_e->get(), nullptr); enum_api.values.push_back(Pair(int_val, val_e->get())); } enum_api.values.sort_custom>(); @@ -417,7 +417,7 @@ static List generate_c_api_json(const List &p_api) { source.push_back("[\n"); - for (const List::Element *c = p_api.front(); c != NULL; c = c->next()) { + for (const List::Element *c = p_api.front(); c != nullptr; c = c->next()) { ClassAPI api = c->get(); source.push_back("\t{\n"); -- cgit v1.2.3