diff options
| author | Jordan Woyak <jordan.woyak@gmail.com> | 2025-04-18 22:59:56 -0500 |
|---|---|---|
| committer | Jordan Woyak <jordan.woyak@gmail.com> | 2025-04-19 17:13:40 -0500 |
| commit | f78fa2e9f18304bc0ae03c7c59cf217f599a9de4 (patch) | |
| tree | 980293e55ee83f5f5cc2adbfff37bb46187f427e /Source/Core | |
| parent | 1ae0b232656ccb47b0843b44fae0e4f47a6a2778 (diff) | |
LinearDiskCache: Use make_unique_for_overwrite.
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/Common/LinearDiskCache.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/Core/Common/LinearDiskCache.h b/Source/Core/Common/LinearDiskCache.h index f0a4815143..061f7d4b19 100644 --- a/Source/Core/Common/LinearDiskCache.h +++ b/Source/Core/Common/LinearDiskCache.h @@ -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) && |
