Replace NULL with nullptr
This commit is contained in:
@ -40,13 +40,13 @@
|
||||
* @param env JNI environment instance. If null obtained by ThreadAndroid::get_env().
|
||||
* @return Godot string instance.
|
||||
*/
|
||||
static inline String jstring_to_string(jstring source, JNIEnv *env = NULL) {
|
||||
static inline String jstring_to_string(jstring source, JNIEnv *env = nullptr) {
|
||||
String result;
|
||||
if (source) {
|
||||
if (!env) {
|
||||
env = ThreadAndroid::get_env();
|
||||
}
|
||||
const char *const source_utf8 = env->GetStringUTFChars(source, NULL);
|
||||
const char *const source_utf8 = env->GetStringUTFChars(source, nullptr);
|
||||
if (source_utf8) {
|
||||
result.parse_utf8(source_utf8);
|
||||
env->ReleaseStringUTFChars(source, source_utf8);
|
||||
|
||||
Reference in New Issue
Block a user