mirror of
https://github.com/godotengine/godot.git
synced 2025-10-30 05:01:10 +00:00
Replace NULL with nullptr
This commit is contained in:
parent
5f11e15571
commit
95a1400a2a
755 changed files with 5742 additions and 5742 deletions
|
|
@ -42,7 +42,7 @@ int ScriptServer::_language_count = 0;
|
|||
bool ScriptServer::scripting_enabled = true;
|
||||
bool ScriptServer::reload_scripts_on_save = false;
|
||||
bool ScriptServer::languages_finished = false;
|
||||
ScriptEditRequestFunction ScriptServer::edit_request_func = NULL;
|
||||
ScriptEditRequestFunction ScriptServer::edit_request_func = nullptr;
|
||||
|
||||
void Script::_notification(int p_what) {
|
||||
|
||||
|
|
@ -136,7 +136,7 @@ bool ScriptServer::is_scripting_enabled() {
|
|||
|
||||
ScriptLanguage *ScriptServer::get_language(int p_idx) {
|
||||
|
||||
ERR_FAIL_INDEX_V(p_idx, _language_count, NULL);
|
||||
ERR_FAIL_INDEX_V(p_idx, _language_count, nullptr);
|
||||
|
||||
return _languages[p_idx];
|
||||
}
|
||||
|
|
@ -256,7 +256,7 @@ StringName ScriptServer::get_global_class_native_base(const String &p_class) {
|
|||
return base;
|
||||
}
|
||||
void ScriptServer::get_global_class_list(List<StringName> *r_global_classes) {
|
||||
const StringName *K = NULL;
|
||||
const StringName *K = nullptr;
|
||||
List<StringName> classes;
|
||||
while ((K = global_classes.next(K))) {
|
||||
classes.push_back(*K);
|
||||
|
|
@ -350,7 +350,7 @@ void ScriptInstance::call_multilevel(const StringName &p_method, VARIANT_ARG_DEC
|
|||
ScriptInstance::~ScriptInstance() {
|
||||
}
|
||||
|
||||
ScriptCodeCompletionCache *ScriptCodeCompletionCache::singleton = NULL;
|
||||
ScriptCodeCompletionCache *ScriptCodeCompletionCache::singleton = nullptr;
|
||||
ScriptCodeCompletionCache::ScriptCodeCompletionCache() {
|
||||
singleton = this;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue