mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-02 14:19:02 +00:00
StringUtil: Make SplitString return by value
Simpler usage.
This commit is contained in:
parent
937d72e591
commit
17ef4c8046
11 changed files with 19 additions and 34 deletions
|
@ -686,10 +686,8 @@ void SConfig::LoadUSBPassthroughSettings(IniFile& ini)
|
|||
IniFile::Section* section = ini.GetOrCreateSection("USBPassthrough");
|
||||
m_usb_passthrough_devices.clear();
|
||||
std::string devices_string;
|
||||
std::vector<std::string> pairs;
|
||||
section->Get("Devices", &devices_string, "");
|
||||
SplitString(devices_string, ',', pairs);
|
||||
for (const auto& pair : pairs)
|
||||
for (const auto& pair : SplitString(devices_string, ','))
|
||||
{
|
||||
const auto index = pair.find(':');
|
||||
if (index == std::string::npos)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue