From 08c6fd5108e7c8b41f07ba441c8faa6bb2a06697 Mon Sep 17 00:00:00 2001 From: elasota Date: Fri, 7 May 2021 20:11:58 -0400 Subject: [PATCH] EOL fix --- AerofoilPortable/GpAllocator_C.h | 4 ++-- GpCommon/IGpAllocator.h | 20 ++++++++++---------- 2 files changed, 12 insertions(+), 12 deletions(-) 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); } +};