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:
@ -53,7 +53,7 @@ EditorInterface *EditorScript::get_editor_interface() {
|
||||
Node *EditorScript::get_scene() {
|
||||
if (!editor) {
|
||||
EditorNode::add_io_error("EditorScript::get_scene: " + TTR("Write your logic in the _run() method."));
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
return editor->get_edited_scene();
|
||||
@ -69,7 +69,7 @@ void EditorScript::_run() {
|
||||
|
||||
Variant::CallError ce;
|
||||
ce.error = Variant::CallError::CALL_OK;
|
||||
get_script_instance()->call("_run", NULL, 0, ce);
|
||||
get_script_instance()->call("_run", nullptr, 0, ce);
|
||||
if (ce.error != Variant::CallError::CALL_OK) {
|
||||
EditorNode::add_io_error(TTR("Couldn't run script:") + "\n " + s->get_path() + "\n" + TTR("Did you forget the '_run' method?"));
|
||||
}
|
||||
@ -87,5 +87,5 @@ void EditorScript::_bind_methods() {
|
||||
}
|
||||
|
||||
EditorScript::EditorScript() {
|
||||
editor = NULL;
|
||||
editor = nullptr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user