You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-12 13:20:55 +00:00
Replace NULL with nullptr
This commit is contained in:
@@ -310,7 +310,7 @@ MainLoop *test() {
|
||||
if (cmdlargs.empty()) {
|
||||
//try editor!
|
||||
print_line("usage: godot -test shader_lang <shader>");
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
String test = cmdlargs.back()->get();
|
||||
@@ -318,7 +318,7 @@ MainLoop *test() {
|
||||
FileAccess *fa = FileAccess::open(test, FileAccess::READ);
|
||||
|
||||
if (!fa) {
|
||||
ERR_FAIL_V(NULL);
|
||||
ERR_FAIL_V(nullptr);
|
||||
}
|
||||
|
||||
String code;
|
||||
@@ -347,13 +347,13 @@ MainLoop *test() {
|
||||
if (err) {
|
||||
|
||||
print_line("Error at line: " + rtos(sl.get_error_line()) + ": " + sl.get_error_text());
|
||||
return NULL;
|
||||
return nullptr;
|
||||
} else {
|
||||
String code2;
|
||||
recreate_code(&code2, sl.get_shader());
|
||||
print_line("code:\n\n" + code2);
|
||||
}
|
||||
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
} // namespace TestShaderLang
|
||||
|
||||
Reference in New Issue
Block a user