From a6abeaaf3a68e3b7072f75acae4cfdf720ad20f4 Mon Sep 17 00:00:00 2001 From: Steven Le Rouzic Date: Sat, 13 Apr 2024 00:11:04 +0200 Subject: Re-add gsl::owner on the Allocator API --- deimos/core/allocator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'deimos/core/allocator.cpp') diff --git a/deimos/core/allocator.cpp b/deimos/core/allocator.cpp index cd3de9e..b42861c 100644 --- a/deimos/core/allocator.cpp +++ b/deimos/core/allocator.cpp @@ -8,8 +8,8 @@ namespace deimos class SystemAllocatorImpl : public IAllocator { public: - void* Reallocate( - void* old_ptr, int64_t /* old_size */, int64_t new_size, + gsl::owner Reallocate( + gsl::owner old_ptr, int64_t /* old_size */, int64_t new_size, MemoryScope /* scope */, const SourceLocation& /* source_location */) override { if (old_ptr == nullptr) -- cgit