diff --git a/AerofoilPortable/GpAllocator_C.h b/AerofoilPortable/GpAllocator_C.h index 8325f31..ab6967b 100644 --- a/AerofoilPortable/GpAllocator_C.h +++ b/AerofoilPortable/GpAllocator_C.h @@ -3,8 +3,8 @@ #include "IGpAllocator.h" class GpAllocator_C final : public IGpAllocator -{ -public: +{ +public: void *Realloc(void *buf, size_t newSize) override; static GpAllocator_C *GetInstance(); diff --git a/GpCommon/IGpAllocator.h b/GpCommon/IGpAllocator.h index 9cc0703..a7eede0 100644 --- a/GpCommon/IGpAllocator.h +++ b/GpCommon/IGpAllocator.h @@ -1,12 +1,12 @@ -#pragma once - -#include -#include - -struct IGpAllocator -{ +#pragma once + +#include +#include + +struct IGpAllocator +{ virtual void *Realloc(void *buf, size_t newSize) = 0; - inline void *Alloc(size_t size) { return this->Realloc(nullptr, size); } - inline void Release(void *ptr) { this->Realloc(ptr, 0); } -}; + inline void *Alloc(size_t size) { return this->Realloc(nullptr, size); } + inline void Release(void *ptr) { this->Realloc(ptr, 0); } +};