Merge pull request #18546 from GermanAizek/make-smart-ptr

[Common Data/Core Dialog HLE/GPU Common Vulkan] Optimize create smart pointers using C++17 std::make_*
This commit is contained in:
Henrik Rydgård authored and GitHub committed 2023-12-14 14:02:55 +01:00
commit ebaebf5945
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);