From 20597b3632d3b6e25ba532716106f90d5b64d0e8 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 28 Oct 2013 23:58:17 +0100 Subject: *: use nullptr instead of NULL --- src/filter/ReplayGainFilterPlugin.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/filter/ReplayGainFilterPlugin.cxx') diff --git a/src/filter/ReplayGainFilterPlugin.cxx b/src/filter/ReplayGainFilterPlugin.cxx index 4d6173e9b..b2dcde4cc 100644 --- a/src/filter/ReplayGainFilterPlugin.cxx +++ b/src/filter/ReplayGainFilterPlugin.cxx @@ -80,7 +80,7 @@ public: } void SetMixer(Mixer *_mixer, unsigned _base) { - assert(_mixer == NULL || (_base > 0 && _base <= 100)); + assert(_mixer == nullptr || (_base > 0 && _base <= 100)); mixer = _mixer; base = _base; @@ -89,7 +89,7 @@ public: } void SetInfo(const ReplayGainInfo *_info) { - if (_info != NULL) { + if (_info != nullptr) { info = *_info; info.Complete(); } else @@ -137,7 +137,7 @@ ReplayGainFilter::Update() } else volume = PCM_VOLUME_1; - if (mixer != NULL) { + if (mixer != nullptr) { /* update the hardware mixer volume */ unsigned _volume = (volume * base) / PCM_VOLUME_1; @@ -198,7 +198,7 @@ ReplayGainFilter::FilterPCM(const void *src, size_t src_size, volume); if (!success) { error.Set(replay_gain_domain, "pcm_volume() has failed"); - return NULL; + return nullptr; } return dest; -- cgit v1.2.3