mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-20 03:24:59 +00:00
LinearDiskCache: Use make_unique_for_overwrite.
This commit is contained in:
parent
706f248430
commit
cb974aad38
1 changed files with 1 additions and 2 deletions
|
@ -85,8 +85,7 @@ public:
|
|||
if (next_extent > file_size)
|
||||
break;
|
||||
|
||||
// TODO: use make_unique_for_overwrite in C++20
|
||||
value = std::unique_ptr<V[]>(new V[value_size]);
|
||||
value = std::make_unique_for_overwrite<V[]>(value_size);
|
||||
|
||||
// read key/value and pass to reader
|
||||
if (m_file.ReadArray(&key, 1) && m_file.ReadArray(value.get(), value_size) &&
|
||||
|
|
Loading…
Add table
Reference in a new issue