summaryrefslogtreecommitdiff
path: root/asl/tests/buffer_tests.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'asl/tests/buffer_tests.cpp')
-rw-r--r--asl/tests/buffer_tests.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/asl/tests/buffer_tests.cpp b/asl/tests/buffer_tests.cpp
index f3d6446..4c18461 100644
--- a/asl/tests/buffer_tests.cpp
+++ b/asl/tests/buffer_tests.cpp
@@ -364,8 +364,8 @@ ASL_TEST(move_assign_from_heap)
ASL_TEST(move_assign_trivial_heap_to_inline)
{
isize_t alloc_count = 0;
- asl::buffer<int64_t, CounterAllocator> buf{CounterAllocator(&alloc_count)};
- asl::buffer<int64_t, CounterAllocator> buf2{CounterAllocator(&alloc_count)};
+ asl::buffer<int64_t, CounterAllocator> buf{CounterAllocator{&alloc_count}};
+ asl::buffer<int64_t, CounterAllocator> buf2{CounterAllocator{&alloc_count}};
buf.push(1);
buf.push(2);
@@ -389,8 +389,8 @@ ASL_TEST(move_assign_trivial_heap_to_inline)
ASL_TEST(move_assign_trivial_inline_to_heap)
{
isize_t alloc_count = 0;
- asl::buffer<int64_t, CounterAllocator> buf{CounterAllocator(&alloc_count)};
- asl::buffer<int64_t, CounterAllocator> buf2{CounterAllocator(&alloc_count)};
+ asl::buffer<int64_t, CounterAllocator> buf{CounterAllocator{&alloc_count}};
+ asl::buffer<int64_t, CounterAllocator> buf2{CounterAllocator{&alloc_count}};
buf.push(1);
buf.push(2);