From 1415265ef270023dd71f16ac29808aacc7be1826 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 31 Mar 2020 04:50:24 -0400 Subject: [PATCH] Runtime: Default destructors where applicable Same behavior, but allows the destructors to be trivial, etc. --- Runtime/Character/CModelData.cpp | 2 +- Runtime/Graphics/CBooRenderer.cpp | 2 +- Runtime/MP1/CFrontEndUITouchBar.cpp | 2 +- Runtime/MP1/CMFGame.cpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Runtime/Character/CModelData.cpp b/Runtime/Character/CModelData.cpp index 1ac59a504..b035a378b 100644 --- a/Runtime/Character/CModelData.cpp +++ b/Runtime/Character/CModelData.cpp @@ -20,7 +20,7 @@ namespace urde { static logvisor::Module Log("urde::CModelData"); -CModelData::~CModelData() {} +CModelData::~CModelData() = default; CModelData::CModelData() {} CModelData CModelData::CModelDataNull() { return CModelData(); } diff --git a/Runtime/Graphics/CBooRenderer.cpp b/Runtime/Graphics/CBooRenderer.cpp index feb987e97..8c07d64a7 100644 --- a/Runtime/Graphics/CBooRenderer.cpp +++ b/Runtime/Graphics/CBooRenderer.cpp @@ -220,7 +220,7 @@ CBooRenderer::CAreaListItem::CAreaListItem(const std::vector thisLights; diff --git a/Runtime/MP1/CFrontEndUITouchBar.cpp b/Runtime/MP1/CFrontEndUITouchBar.cpp index ccc5ccf2f..6afb30f10 100644 --- a/Runtime/MP1/CFrontEndUITouchBar.cpp +++ b/Runtime/MP1/CFrontEndUITouchBar.cpp @@ -2,7 +2,7 @@ namespace urde { -CFrontEndUITouchBar::~CFrontEndUITouchBar() {} +CFrontEndUITouchBar::~CFrontEndUITouchBar() = default; void CFrontEndUITouchBar::SetPhase(EPhase ph) { m_phase = ph; } CFrontEndUITouchBar::EPhase CFrontEndUITouchBar::GetPhase() { return m_phase; } void CFrontEndUITouchBar::SetFileSelectPhase(const SFileSelectDetail details[3], bool eraseGame, bool galleryActive) { diff --git a/Runtime/MP1/CMFGame.cpp b/Runtime/MP1/CMFGame.cpp index 0c3b11bf3..3b05488a0 100644 --- a/Runtime/MP1/CMFGame.cpp +++ b/Runtime/MP1/CMFGame.cpp @@ -280,7 +280,7 @@ CMFGameLoader::CMFGameLoader() : CMFGameLoaderBase("CMFGameLoader") { } } -CMFGameLoader::~CMFGameLoader() {} +CMFGameLoader::~CMFGameLoader() = default; static const char* LoadDepPAKs[] = {"TestAnim", "SamusGun", "SamGunFx", nullptr};