From c061e27155a59d4563003e0f4f7364864f9b51d4 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 11 Sep 2018 21:06:40 -0400 Subject: pl_u: Eliminate mutable file-scope state Converts the PL_U internals to use the PImpl idiom and makes the state part of the Impl struct, eliminating mutable global/file state. --- src/core/hle/service/ns/pl_u.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/core/hle/service/ns/pl_u.h') diff --git a/src/core/hle/service/ns/pl_u.h b/src/core/hle/service/ns/pl_u.h index 296c3db05..253f26a2a 100644 --- a/src/core/hle/service/ns/pl_u.h +++ b/src/core/hle/service/ns/pl_u.h @@ -5,7 +5,6 @@ #pragma once #include -#include "core/hle/kernel/shared_memory.h" #include "core/hle/service/service.h" namespace Service::NS { @@ -23,11 +22,8 @@ private: void GetSharedMemoryNativeHandle(Kernel::HLERequestContext& ctx); void GetSharedFontInOrderOfPriority(Kernel::HLERequestContext& ctx); - /// Handle to shared memory region designated for a shared font - Kernel::SharedPtr shared_font_mem; - - /// Backing memory for the shared font data - std::shared_ptr> shared_font; + struct Impl; + std::unique_ptr impl; }; } // namespace Service::NS -- cgit v1.2.3