mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-17 11:24:27 +01:00
[Common Data/Core Dialog HLE/GPU Common Vulkan] Optimize create smart pointer using C++17 std::make_*
This commit is contained in:
1 parent
60402909f8
commit
08070e7f31
6 files changed
+10
-10
No files matched your search
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user