mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-24 22:34: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 <map>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <optional>
|
#include <optional>
|
||||||
|
#include <ranges>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <thread>
|
#include <thread>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
|
@ -252,9 +253,8 @@ bool VolumeWii::HasWiiEncryption() const
|
||||||
|
|
||||||
std::vector<Partition> VolumeWii::GetPartitions() const
|
std::vector<Partition> VolumeWii::GetPartitions() const
|
||||||
{
|
{
|
||||||
std::vector<Partition> partitions;
|
std::vector<Partition> partitions(m_partitions.size());
|
||||||
for (const auto& pair : m_partitions)
|
std::ranges::copy(m_partitions | std::views::keys, partitions.begin());
|
||||||
partitions.push_back(pair.first);
|
|
||||||
return partitions;
|
return partitions;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue