summaryrefslogtreecommitdiff
path: root/test/test_utf8.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_utf8.cpp')
-rw-r--r--test/test_utf8.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/test_utf8.cpp b/test/test_utf8.cpp
index 591d1a3..69a1643 100644
--- a/test/test_utf8.cpp
+++ b/test/test_utf8.cpp
@@ -127,17 +127,17 @@ TEST(Utf8Test, Utf8MultiByte)
constexpr size_t bufSize = data.size();
EXPECT_EQ(data[bufSize - 1], '\0');
- class FixedAllocator final : public Allocator {
+ class FixedAllocator : public Allocator {
private:
- Array<utf8, bufSize> m_memory{};
+ Array<std::byte, bufSize> m_memory{};
size_t m_allocated{0};
public:
- virtual ~FixedAllocator() override final = default;
+ virtual ~FixedAllocator() override = default;
- virtual Result<void*, FudStatus> allocate(size_t bytes, size_t alignment) override final
+ virtual Result<std::byte*, FudStatus> allocate(size_t bytes, size_t alignment) override final
{
- using RetType = Result<void*, FudStatus>;
+ using RetType = Result<std::byte*, FudStatus>;
static_cast<void>(alignment);
if (bytes > m_memory.size() - m_allocated) {
return RetType::error(FudStatus::AllocFailure);
@@ -147,7 +147,7 @@ TEST(Utf8Test, Utf8MultiByte)
return RetType::okay(data);
}
- virtual FudStatus deallocate(void* pointer, size_t bytes) override final
+ virtual FudStatus deallocate(std::byte* pointer, size_t bytes) override final
{
static_cast<void>(pointer);
static_cast<void>(bytes);