diff options
Diffstat (limited to 'backends/midi/quicktime.cpp')
-rw-r--r-- | backends/midi/quicktime.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/backends/midi/quicktime.cpp b/backends/midi/quicktime.cpp index 91eab310e2..43ccb47fe9 100644 --- a/backends/midi/quicktime.cpp +++ b/backends/midi/quicktime.cpp @@ -67,19 +67,19 @@ private: }; MidiDriver_QT::MidiDriver_QT() { - qtNoteAllocator = NULL; + qtNoteAllocator = 0; for (int i = 0; i < 16; i++) - qtNoteChannel[i] = NULL; + qtNoteChannel[i] = 0; } int MidiDriver_QT::open() { ComponentResult qtErr = noErr; - if (qtNoteAllocator != NULL) + if (qtNoteAllocator != 0) return MERR_ALREADY_OPEN; qtNoteAllocator = OpenDefaultComponent(kNoteAllocatorComponentType, 0); - if (qtNoteAllocator == NULL) + if (qtNoteAllocator == 0) goto bail; simpleNoteRequest.info.flags = 0; @@ -92,7 +92,7 @@ int MidiDriver_QT::open() { for (int i = 0; i < 16; i++) { qtErr = NANewNoteChannel(qtNoteAllocator, &simpleNoteRequest, &(qtNoteChannel[i])); - if ((qtErr != noErr) || (qtNoteChannel[i] == NULL)) + if ((qtErr != noErr) || (qtNoteChannel[i] == 0)) goto bail; qtErr = NAResetNoteChannel(qtNoteAllocator, qtNoteChannel[i]); @@ -234,14 +234,14 @@ void MidiDriver_QT::setPitchBendRange (byte channel, uint range) { void MidiDriver_QT::dispose() { for (int i = 0; i < 16; i++) { - if (qtNoteChannel[i] != NULL) + if (qtNoteChannel[i] != 0) NADisposeNoteChannel(qtNoteAllocator, qtNoteChannel[i]); - qtNoteChannel[i] = NULL; + qtNoteChannel[i] = 0; } - if (qtNoteAllocator != NULL) { + if (qtNoteAllocator != 0) { CloseComponent(qtNoteAllocator); - qtNoteAllocator = NULL; + qtNoteAllocator = 0; } } |