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 --- utils/makemhr/makemhr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils/makemhr/makemhr.cpp') diff --git a/utils/makemhr/makemhr.cpp b/utils/makemhr/makemhr.cpp index e0911438..e3585530 100644 --- a/utils/makemhr/makemhr.cpp +++ b/utils/makemhr/makemhr.cpp @@ -1024,7 +1024,7 @@ static void NormalizeHrirs(HrirDataT *hData) /* Now scale all IRs by the given factor. */ auto proc_channel = [irSize,factor](double *ir) - { std::transform(ir, ir+irSize, ir, std::bind(std::multiplies{}, _1, factor)); }; + { std::transform(ir, ir+irSize, ir, [factor](auto a){ return a * factor; }}; auto proc_azi = [channels,proc_channel](HrirAzT &azi) { std::for_each(azi.mIrs, azi.mIrs+channels, proc_channel); }; auto proc_elev = [proc_azi](HrirEvT &elev) -- cgit v1.2.3