You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Replace NULL with nullptr
This commit is contained in:
@@ -47,8 +47,8 @@ void MIDIDriverCoreMidi::read(const MIDIPacketList *packet_list, void *read_proc
|
||||
|
||||
Error MIDIDriverCoreMidi::open() {
|
||||
|
||||
CFStringRef name = CFStringCreateWithCString(NULL, "Godot", kCFStringEncodingASCII);
|
||||
OSStatus result = MIDIClientCreate(name, NULL, NULL, &client);
|
||||
CFStringRef name = CFStringCreateWithCString(nullptr, "Godot", kCFStringEncodingASCII);
|
||||
OSStatus result = MIDIClientCreate(name, nullptr, nullptr, &client);
|
||||
CFRelease(name);
|
||||
if (result != noErr) {
|
||||
ERR_PRINT("MIDIClientCreate failed, code: " + itos(result));
|
||||
@@ -99,7 +99,7 @@ PackedStringArray MIDIDriverCoreMidi::get_connected_inputs() {
|
||||
|
||||
for (int i = 0; i < connected_sources.size(); i++) {
|
||||
MIDIEndpointRef source = connected_sources[i];
|
||||
CFStringRef ref = NULL;
|
||||
CFStringRef ref = nullptr;
|
||||
char name[256];
|
||||
|
||||
MIDIObjectGetStringProperty(source, kMIDIPropertyDisplayName, &ref);
|
||||
|
||||
Reference in New Issue
Block a user