diff options
author | David Robillard <d@drobilla.net> | 2022-09-16 21:59:17 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-09-16 22:31:06 -0400 |
commit | 5e6b40bca823d6acf3f9b89d50c7888a96e39d5e (patch) | |
tree | 8097f4c35bb75755b680c09c3928ffce99209ddd | |
parent | a1572052fb6e04107f4beb07662aa20cacbc5533 (diff) | |
download | chilbert-5e6b40bca823d6acf3f9b89d50c7888a96e39d5e.tar.gz chilbert-5e6b40bca823d6acf3f9b89d50c7888a96e39d5e.tar.bz2 chilbert-5e6b40bca823d6acf3f9b89d50c7888a96e39d5e.zip |
Remove unnecessary move
-rw-r--r-- | .clang-tidy | 1 | ||||
-rw-r--r-- | include/chilbert/chilbert.ipp | 3 |
2 files changed, 1 insertions, 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, HC, SmallBitVec>( - 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); |