ams: convert to util::ConstructAt where appropriate

This commit is contained in:
Michael Scire 2021-03-21 20:36:49 -07:00
parent d84dcb653d
commit c99ce36d7d
4 changed files with 7 additions and 12 deletions

View file

@ -28,13 +28,13 @@ namespace ams::htcfs {
void InitializeClient(htclow::HtclowManager *manager) {
AMS_ASSERT(!g_initialized);
std::construct_at(GetPointer(g_client_storage), manager);
util::ConstructAt(g_client_storage, manager);
}
void FinalizeClient() {
AMS_ASSERT(g_initialized);
std::destroy_at(GetPointer(g_client_storage));
util::DestroyAt(g_client_storage);
}
Client &GetClient() {