From 0526ecd2f95877b167293e50ab8ce0ce614d03f4 Mon Sep 17 00:00:00 2001 From: Rosen Penev 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 * clang-tidy: replace std::bind with lambdas Found with modernize-avoid-bind Signed-off-by: Rosen Penev * clang-tidy: use data() instead of pointer stuff Found with readability-container-data-pointe Signed-off-by: Rosen Penev * clang-tidy: use empty() Found with readability-container-size-empty Signed-off-by: Rosen Penev * clang-tidy: remove static in anon namespace Found with readability-static-definition-in-anonymous-namespace Signed-off-by: Rosen Penev * clang-tidy: remove const return Found with readability-const-return-type Signed-off-by: Rosen Penev Signed-off-by: Rosen Penev --- core/hrtf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/hrtf.cpp') diff --git a/core/hrtf.cpp b/core/hrtf.cpp index 28179189..ec42cbf4 100644 --- a/core/hrtf.cpp +++ b/core/hrtf.cpp @@ -257,7 +257,7 @@ void HrtfStore::getCoeffs(float elevation, float azimuth, float distance, float delays[1] = fastf2u(d * float{1.0f/HrirDelayFracOne}); /* Calculate the blended HRIR coefficients. */ - float *coeffout{al::assume_aligned<16>(&coeffs[0][0])}; + float *coeffout{al::assume_aligned<16>(coeffs[0].data())}; coeffout[0] = PassthruCoeff * (1.0f-dirfact); coeffout[1] = PassthruCoeff * (1.0f-dirfact); std::fill_n(coeffout+2, size_t{HrirLength-1}*2, 0.0f); -- cgit v1.2.3