From 4e956b3ac8fca7f71109d3f3453179a7e4e59bf0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Fri, 5 Nov 2021 16:18:12 +0100 Subject: [PATCH] stratosphere: add a bunch of missing override specifiers --- .../include/stratosphere/sf/cmif/sf_cmif_domain_manager.hpp | 4 ++-- .../include/stratosphere/sf/sf_lmem_utility.hpp | 6 +++--- .../include/stratosphere/sf/sf_mem_utility.hpp | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/libraries/libstratosphere/include/stratosphere/sf/cmif/sf_cmif_domain_manager.hpp b/libraries/libstratosphere/include/stratosphere/sf/cmif/sf_cmif_domain_manager.hpp index b1b687af3..287fd40c0 100644 --- a/libraries/libstratosphere/include/stratosphere/sf/cmif/sf_cmif_domain_manager.hpp +++ b/libraries/libstratosphere/include/stratosphere/sf/cmif/sf_cmif_domain_manager.hpp @@ -54,11 +54,11 @@ namespace ams::sf::cmif { void DisposeImpl(); - virtual void AddReference() { + virtual void AddReference() override { ServiceObjectImplBase2::AddReferenceImpl(); } - virtual void Release() { + virtual void Release() override { if (ServiceObjectImplBase2::ReleaseImpl()) { this->DisposeImpl(); } diff --git a/libraries/libstratosphere/include/stratosphere/sf/sf_lmem_utility.hpp b/libraries/libstratosphere/include/stratosphere/sf/sf_lmem_utility.hpp index 27839e46a..6dcdbca81 100644 --- a/libraries/libstratosphere/include/stratosphere/sf/sf_lmem_utility.hpp +++ b/libraries/libstratosphere/include/stratosphere/sf/sf_lmem_utility.hpp @@ -43,7 +43,7 @@ namespace ams::sf { return lmem::FreeToExpHeap(m_handle, buffer); } - virtual bool IsEqualImpl(const MemoryResource &resource) const { + virtual bool IsEqualImpl(const MemoryResource &resource) const override { return this == std::addressof(resource); } }; @@ -76,9 +76,9 @@ namespace ams::sf { return lmem::FreeToUnitHeap(m_handle, buffer); } - virtual bool IsEqualImpl(const MemoryResource &resource) const { + virtual bool IsEqualImpl(const MemoryResource &resource) const override { return this == std::addressof(resource); } }; -} \ No newline at end of file +} diff --git a/libraries/libstratosphere/include/stratosphere/sf/sf_mem_utility.hpp b/libraries/libstratosphere/include/stratosphere/sf/sf_mem_utility.hpp index c745ca599..7e6f71786 100644 --- a/libraries/libstratosphere/include/stratosphere/sf/sf_mem_utility.hpp +++ b/libraries/libstratosphere/include/stratosphere/sf/sf_mem_utility.hpp @@ -37,9 +37,9 @@ namespace ams::sf { return m_standard_allocator->Free(buffer); } - virtual bool IsEqualImpl(const MemoryResource &resource) const { + virtual bool IsEqualImpl(const MemoryResource &resource) const override { return this == std::addressof(resource); } }; -} \ No newline at end of file +}