aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorMax Horn2005-07-11 00:48:27 +0000
committerMax Horn2005-07-11 00:48:27 +0000
commit8a59ff208c41625caf3823787ebc596fa3a6335a (patch)
tree45347a2e46d6831f29bc2e3ebdfddae348ed277b /backends
parentd1e58e603621fe2cc36b6124111b6e4a3ef09213 (diff)
downloadscummvm-rg350-8a59ff208c41625caf3823787ebc596fa3a6335a.tar.gz
scummvm-rg350-8a59ff208c41625caf3823787ebc596fa3a6335a.tar.bz2
scummvm-rg350-8a59ff208c41625caf3823787ebc596fa3a6335a.zip
Fix more GCC 4.0 warnings
svn-id: r18533
Diffstat (limited to 'backends')
-rw-r--r--backends/midi/quicktime.cpp18
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;
}
}