From 0526ecd2f95877b167293e50ab8ce0ce614d03f4 Mon Sep 17 00:00:00 2001 From: Rosen Penev <rosenp@gmail.com> Date: Sun, 15 Jan 2023 13:43:27 -0800 Subject: clang-tidy cleanups (#800) * clang-tidy: use bool literals Found with modernize-use-bool-literals Signed-off-by: Rosen Penev <rosenp@gmail.com> * clang-tidy: replace std::bind with lambdas Found with modernize-avoid-bind Signed-off-by: Rosen Penev <rosenp@gmail.com> * clang-tidy: use data() instead of pointer stuff Found with readability-container-data-pointe Signed-off-by: Rosen Penev <rosenp@gmail.com> * clang-tidy: use empty() Found with readability-container-size-empty Signed-off-by: Rosen Penev <rosenp@gmail.com> * clang-tidy: remove static in anon namespace Found with readability-static-definition-in-anonymous-namespace Signed-off-by: Rosen Penev <rosenp@gmail.com> * clang-tidy: remove const return Found with readability-const-return-type Signed-off-by: Rosen Penev <rosenp@gmail.com> Signed-off-by: Rosen Penev <rosenp@gmail.com> --- al/effects/chorus.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'al/effects') diff --git a/al/effects/chorus.cpp b/al/effects/chorus.cpp index a05ec10b..eec67d46 100644 --- a/al/effects/chorus.cpp +++ b/al/effects/chorus.cpp @@ -149,7 +149,7 @@ void Chorus_getParamf(const EffectProps *props, ALenum param, float *val) void Chorus_getParamfv(const EffectProps *props, ALenum param, float *vals) { Chorus_getParamf(props, param, vals); } -const EffectProps genDefaultChorusProps() noexcept +EffectProps genDefaultChorusProps() noexcept { EffectProps props{}; props.Chorus.Waveform = *WaveformFromEnum(AL_CHORUS_DEFAULT_WAVEFORM); -- cgit v1.2.3