mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-24 14:24:54 +00:00
DiscIO: Use views::keys
This commit is contained in:
parent
1ae0b23265
commit
efc33c8a3e
1 changed files with 3 additions and 3 deletions
|
@ -11,6 +11,7 @@
|
|||
#include <map>
|
||||
#include <memory>
|
||||
#include <optional>
|
||||
#include <ranges>
|
||||
#include <string>
|
||||
#include <thread>
|
||||
#include <utility>
|
||||
|
@ -252,9 +253,8 @@ bool VolumeWii::HasWiiEncryption() const
|
|||
|
||||
std::vector<Partition> VolumeWii::GetPartitions() const
|
||||
{
|
||||
std::vector<Partition> partitions;
|
||||
for (const auto& pair : m_partitions)
|
||||
partitions.push_back(pair.first);
|
||||
std::vector<Partition> partitions(m_partitions.size());
|
||||
std::ranges::copy(m_partitions | std::views::keys, partitions.begin());
|
||||
return partitions;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue