You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Replace NULL with nullptr
This commit is contained in:
@@ -334,7 +334,7 @@ WebRTCDataChannelJS::WebRTCDataChannelJS(int js_id) {
|
||||
stringToUTF8(str, ptr, len+1);
|
||||
return ptr;
|
||||
}, js_id);
|
||||
if(str != NULL) {
|
||||
if(str != nullptr) {
|
||||
_label.parse_utf8(str);
|
||||
EM_ASM({ _free($0) }, str);
|
||||
}
|
||||
@@ -347,7 +347,7 @@ WebRTCDataChannelJS::WebRTCDataChannelJS(int js_id) {
|
||||
stringToUTF8(str, ptr, len+1);
|
||||
return ptr;
|
||||
}, js_id);
|
||||
if(str != NULL) {
|
||||
if(str != nullptr) {
|
||||
_protocol.parse_utf8(str);
|
||||
EM_ASM({ _free($0) }, str);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user