From 0537414bafe80e5e32486672ddce82581fb5e1c3 Mon Sep 17 00:00:00 2001 From: Filip Gawin Date: Mon, 7 Jan 2019 12:37:13 +0100 Subject: Use nullptr in cpp files --- Alc/alu.cpp | 4 ++-- Alc/mixvoice.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'Alc') diff --git a/Alc/alu.cpp b/Alc/alu.cpp index 7d2709ea..77505a0c 100644 --- a/Alc/alu.cpp +++ b/Alc/alu.cpp @@ -1012,8 +1012,8 @@ void CalcNonAttnSourceParams(ALvoice *voice, const ALvoicePropsBase *props, cons SendSlots[i] = ALContext->DefaultSlot.get(); if(!SendSlots[i] || SendSlots[i]->Params.EffectType == AL_EFFECT_NULL) { - SendSlots[i] = NULL; - voice->Send[i].Buffer = NULL; + SendSlots[i] = nullptr; + voice->Send[i].Buffer = nullptr; voice->Send[i].Channels = 0; } else diff --git a/Alc/mixvoice.cpp b/Alc/mixvoice.cpp index 53721201..eb219bad 100644 --- a/Alc/mixvoice.cpp +++ b/Alc/mixvoice.cpp @@ -156,7 +156,7 @@ void aluInitMixer(void) { const char *str; - if(ConfigValueStr(NULL, NULL, "resampler", &str)) + if(ConfigValueStr(nullptr, nullptr, "resampler", &str)) { if(strcasecmp(str, "point") == 0 || strcasecmp(str, "none") == 0) ResamplerDefault = PointResampler; @@ -698,7 +698,7 @@ ALboolean MixSource(ALvoice *voice, const ALuint SourceID, ALCcontext *Context, if(DataPosInt >= BufferListItem->max_samples) { isplaying = false; - BufferListItem = NULL; + BufferListItem = nullptr; DataPosInt = 0; DataPosFrac = 0; break; -- cgit v1.2.3