From 287a0354409883598e62594793490efcbcec25dc Mon Sep 17 00:00:00 2001 From: Stephen Anthony Date: Sat, 3 Sep 2022 13:13:29 -0230 Subject: [PATCH] Fix minor compile warning. --- src/common/SoundSDL2.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/SoundSDL2.cxx b/src/common/SoundSDL2.cxx index cf5632f8d..b98b538a7 100644 --- a/src/common/SoundSDL2.cxx +++ b/src/common/SoundSDL2.cxx @@ -416,7 +416,7 @@ bool SoundSDL2::playWav(const char* fileName, uInt32 position, uInt32 length) // Load WAV file SDL_AudioSpec* result = SDL_LoadWAV(fileName, &wavSpec, &myWavBuffer, &wavLength); - if(result == NULL || position > wavLength) + if(result == nullptr || position > wavLength) return false; length = length @@ -426,7 +426,7 @@ bool SoundSDL2::playWav(const char* fileName, uInt32 position, uInt32 length) // Open audio device const char* device = myDeviceId ? myDevices.at(myDeviceId).first.c_str() : nullptr; - myWavDevice = SDL_OpenAudioDevice(device, 0, &wavSpec, NULL, 0); + myWavDevice = SDL_OpenAudioDevice(device, 0, &wavSpec, nullptr, 0); if(!myWavDevice) return false;