From 5e6b40bca823d6acf3f9b89d50c7888a96e39d5e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 16 Sep 2022 21:59:17 -0400 Subject: Remove unnecessary move --- .clang-tidy | 1 - include/chilbert/chilbert.ipp | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.clang-tidy b/.clang-tidy index 1164717..c48319c 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -2,7 +2,6 @@ Checks: > *, -*-avoid-c-arrays, -*-magic-numbers, - -*-move-const-arg, -*-named-parameter, -*-no-malloc, -*-non-private-member-variables-in-classes, diff --git a/include/chilbert/chilbert.ipp b/include/chilbert/chilbert.ipp index f333630..84626fc 100644 --- a/include/chilbert/chilbert.ipp +++ b/include/chilbert/chilbert.ipp @@ -484,9 +484,8 @@ compact_index_to_coords(P& p, if (n <= SmallBitVec::bits_per_rack) { // Intermediate variables will fit in fixed width - SmallBitVec scratch(n); detail::compact_index_to_coords( - p, ms, n, hc, std::move(scratch), M, m); + p, ms, n, hc, SmallBitVec{n}, M, m); } else { // Otherwise, they must be DynamicBitVecs DynamicBitVec scratch(n); -- cgit v1.2.1