mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-30 01:33:45 +01:00
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:
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