summaryrefslogtreecommitdiffstats
path: root/test/maid_test.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2023-02-03 14:42:49 -0500
committerDavid Robillard <d@drobilla.net>2023-02-03 14:42:49 -0500
commitc4f719b1831e35663163e09a0d692c909c09d95f (patch)
tree678034df92cd373e8719b9b99506ea1e6a38fcff /test/maid_test.cpp
parent3d685246480d5bd813f5d5f15a9352a9f4a1600c (diff)
downloadraul-c4f719b1831e35663163e09a0d692c909c09d95f.tar.gz
raul-c4f719b1831e35663163e09a0d692c909c09d95f.tar.bz2
raul-c4f719b1831e35663163e09a0d692c909c09d95f.zip
Suppress/fix new warnings in clang-tidy 15
Diffstat (limited to 'test/maid_test.cpp')
-rw-r--r--test/maid_test.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/maid_test.cpp b/test/maid_test.cpp
index ba9867e..286be2a 100644
--- a/test/maid_test.cpp
+++ b/test/maid_test.cpp
@@ -62,9 +62,9 @@ test()
// Check basic single-threaded correctness
{
assert(n_junk == 0);
- Maid::managed_ptr<Junk> a = maid.make_managed<Junk>(1U);
+ const Maid::managed_ptr<Junk> a = maid.make_managed<Junk>(1U);
assert(n_junk == 1);
- Maid::managed_ptr<Junk> b = maid.make_managed<Junk>(2U);
+ const Maid::managed_ptr<Junk> b = maid.make_managed<Junk>(2U);
assert(n_junk == 2);
}
@@ -116,7 +116,7 @@ test()
assert(n_junk == 0);
// Allocate a new object, then let it and the Maid go out of scope
- Maid::managed_ptr<Junk> c = maid.make_managed<Junk>(5U);
+ const Maid::managed_ptr<Junk> c = maid.make_managed<Junk>(5U);
assert(n_junk == 1);
}