aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-09-16 22:47:44 -0400
committerDavid Robillard <d@drobilla.net>2022-09-16 22:47:44 -0400
commit314d2d53750cb8b50c8d23f38028ac43f962bd42 (patch)
treeb177c328227cae4fc4b4ca2a0f3bfc081cdd35f8
parent5e6b40bca823d6acf3f9b89d50c7888a96e39d5e (diff)
downloadchilbert-314d2d53750cb8b50c8d23f38028ac43f962bd42.tar.gz
chilbert-314d2d53750cb8b50c8d23f38028ac43f962bd42.tar.bz2
chilbert-314d2d53750cb8b50c8d23f38028ac43f962bd42.zip
Fix prevention of automatic move
-rw-r--r--test/.clang-tidy1
-rw-r--r--test/test_hilbert.cpp3
2 files changed, 2 insertions, 2 deletions
diff --git a/test/.clang-tidy b/test/.clang-tidy
index 77149fb..f0d389e 100644
--- a/test/.clang-tidy
+++ b/test/.clang-tidy
@@ -7,6 +7,5 @@ Checks: >
-cppcoreguidelines-pro-bounds-array-to-pointer-decay,
-hicpp-no-array-decay,
-llvm-header-guard,
- -performance-no-automatic-move,
-readability-identifier-length,
InheritParentConfig: true
diff --git a/test/test_hilbert.cpp b/test/test_hilbert.cpp
index 1ed6f8c..8aacd96 100644
--- a/test/test_hilbert.cpp
+++ b/test/test_hilbert.cpp
@@ -69,7 +69,8 @@ to_big_int(const T& vec)
mpz_t ia;
mpz_init(ia);
mpz_import(ia, vec.num_racks(), -1, sizeof(Rack), 0, 0, vec.data());
- const mpz_class num(ia);
+
+ mpz_class num{ia};
mpz_clear(ia);
return num;
}