mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
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:
@@ -50,7 +50,7 @@ JNIEnv *GDAPI godot_android_get_env() {
|
||||
#ifdef __ANDROID__
|
||||
return get_jni_env();
|
||||
#else
|
||||
return NULL;
|
||||
return nullptr;
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@ jobject GDAPI godot_android_get_activity() {
|
||||
OS_Android *os_android = (OS_Android *)OS::get_singleton();
|
||||
return os_android->get_godot_java()->get_activity();
|
||||
#else
|
||||
return NULL;
|
||||
return nullptr;
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -68,7 +68,7 @@ jobject GDAPI godot_android_get_surface() {
|
||||
OS_Android *os_android = (OS_Android *)OS::get_singleton();
|
||||
return os_android->get_godot_java()->get_surface();
|
||||
#else
|
||||
return NULL;
|
||||
return nullptr;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user