From 8bbb44a74e74134084475174a96649323fd73123 Mon Sep 17 00:00:00 2001 From: Leystryku Date: Sun, 18 Feb 2024 07:03:50 +0100 Subject: service: Change unique_ptr to make_unique in GetCacheStorageMax --- src/core/hle/service/am/service/application_functions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/core/hle/service/am/service/application_functions.cpp b/src/core/hle/service/am/service/application_functions.cpp index 7507263b2..63dd12a47 100644 --- a/src/core/hle/service/am/service/application_functions.cpp +++ b/src/core/hle/service/am/service/application_functions.cpp @@ -275,7 +275,7 @@ Result IApplicationFunctions::GetCacheStorageMax(Out out_cache_storage_inde std::vector nacp; R_TRY(system.GetARPManager().GetControlProperty(&nacp, m_applet->program_id)); - std::unique_ptr raw_nacp(new FileSys::RawNACP{}); + auto raw_nacp = std::make_unique(); std::memcpy(raw_nacp.get(), nacp.data(), std::min(sizeof(*raw_nacp), nacp.size())); *out_cache_storage_index_max = static_cast(raw_nacp->cache_storage_max_index); -- cgit v1.2.3