From fd145e65aaa4c318d4360d2fb20b71d89376320a Mon Sep 17 00:00:00 2001 From: TellowKrinkle Date: Wed, 3 Nov 2021 22:07:38 -0500 Subject: [PATCH] GS: Remove virtual destructor from GSAlignedClass No point, and made it not a standard layout type --- pcsx2/GS/GSAlignedClass.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pcsx2/GS/GSAlignedClass.h b/pcsx2/GS/GSAlignedClass.h index fec0b82e0f..cafed33482 100644 --- a/pcsx2/GS/GSAlignedClass.h +++ b/pcsx2/GS/GSAlignedClass.h @@ -18,10 +18,11 @@ template class GSAlignedClass { -public: - GSAlignedClass() {} - virtual ~GSAlignedClass() {} +protected: + GSAlignedClass() = default; + ~GSAlignedClass() = default; +public: void* operator new(size_t size) { return _aligned_malloc(size, i);