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