summaryrefslogtreecommitdiff
path: root/Tests
diff options
context:
space:
mode:
authorMacDue <macdue@dueutil.tech>2023-02-05 19:02:54 +0000
committerLinus Groh <mail@linusgroh.de>2023-02-08 19:15:45 +0000
commit63b11030f03e5a0fd06d9c8cfa788da0388096d8 (patch)
tree3ea0fa1e751683b643c71da95b6ecf98a97508cf /Tests
parent1c92e6ee9d1f686f20f37445150d63ae474b7e9b (diff)
downloadserenity-63b11030f03e5a0fd06d9c8cfa788da0388096d8.zip
Everywhere: Use ReadonlySpan<T> instead of Span<T const>
Diffstat (limited to 'Tests')
-rw-r--r--Tests/AK/TestArray.cpp2
-rw-r--r--Tests/AK/TestSpan.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/Tests/AK/TestArray.cpp b/Tests/AK/TestArray.cpp
index 03038a9958..12aefe5455 100644
--- a/Tests/AK/TestArray.cpp
+++ b/Tests/AK/TestArray.cpp
@@ -8,7 +8,7 @@
#include <AK/Array.h>
-static constexpr int constexpr_sum(Span<int const> const span)
+static constexpr int constexpr_sum(ReadonlySpan<int> const span)
{
int sum = 0;
for (auto value : span)
diff --git a/Tests/AK/TestSpan.cpp b/Tests/AK/TestSpan.cpp
index cb0eb626d3..098b34bd47 100644
--- a/Tests/AK/TestSpan.cpp
+++ b/Tests/AK/TestSpan.cpp
@@ -102,7 +102,7 @@ TEST_CASE(can_subspan_as_intended)
{
static constexpr u16 buffer[8] { 1, 2, 3, 4, 5, 6, 7, 8 };
- constexpr Span<u16 const> span { buffer, 8 };
+ constexpr ReadonlySpan<u16> span { buffer, 8 };
constexpr auto slice = span.slice(3, 2);
static_assert(slice.size() == 2u);