diff options
author | Rosen Penev <[email protected]> | 2023-01-15 13:43:27 -0800 |
---|---|---|
committer | GitHub <[email protected]> | 2023-01-15 13:43:27 -0800 |
commit | 0526ecd2f95877b167293e50ab8ce0ce614d03f4 (patch) | |
tree | ad80a5811292e87601020f6aadcb2f6ff138761d /utils/makemhr/makemhr.cpp | |
parent | d9d445772c50e53c12ab77d97cc5f3a76839d83a (diff) |
clang-tidy cleanups (#800)
* clang-tidy: use bool literals
Found with modernize-use-bool-literals
Signed-off-by: Rosen Penev <[email protected]>
* clang-tidy: replace std::bind with lambdas
Found with modernize-avoid-bind
Signed-off-by: Rosen Penev <[email protected]>
* clang-tidy: use data() instead of pointer stuff
Found with readability-container-data-pointe
Signed-off-by: Rosen Penev <[email protected]>
* clang-tidy: use empty()
Found with readability-container-size-empty
Signed-off-by: Rosen Penev <[email protected]>
* clang-tidy: remove static in anon namespace
Found with readability-static-definition-in-anonymous-namespace
Signed-off-by: Rosen Penev <[email protected]>
* clang-tidy: remove const return
Found with readability-const-return-type
Signed-off-by: Rosen Penev <[email protected]>
Signed-off-by: Rosen Penev <[email protected]>
Diffstat (limited to 'utils/makemhr/makemhr.cpp')
-rw-r--r-- | utils/makemhr/makemhr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<double>{}, _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) |