[Common Data/Core Dialog HLE/GPU Common Vulkan] Optimize create smart pointer using C++17 std::make_*

This commit is contained in:
Herman Semenov committed 2023-12-14 15:44:16 +03:00
1 parent 60402909f8
commit 08070e7f31
6 files changed
+10 -10

No files matched your search

+1 -1
View File
@@ -404,7 +404,7 @@ int SavedataParam::DeleteData(SceUtilitySavedataParam* param) {
}
if (changed) {
std::unique_ptr<u8[]> updatedList(new u8[fileListSize]);
auto updatedList = std::make_unique<u8[]> (fileListSize);
memcpy(updatedList.get(), fileList, fileListSize);
sfoFile->SetValue("SAVEDATA_FILE_LIST", updatedList.get(), fileListSize, (int)FILE_LIST_TOTAL_SIZE);