mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-17 18:55:46 -04:00
Qt: Remove usage of QString where possible for settings
This commit is contained in:
@ -98,14 +98,13 @@ std::vector<std::string> INISettingsInterface::GetStringList(const char* section
|
||||
return ret;
|
||||
}
|
||||
|
||||
void INISettingsInterface::SetStringList(const char* section, const char* key,
|
||||
const std::vector<std::string_view>& items)
|
||||
void INISettingsInterface::SetStringList(const char* section, const char* key, const std::vector<std::string>& items)
|
||||
{
|
||||
m_dirty = true;
|
||||
m_ini.Delete(section, key);
|
||||
|
||||
for (const std::string_view& sv : items)
|
||||
m_ini.SetValue(section, key, std::string(sv).c_str(), nullptr, false);
|
||||
for (const std::string& sv : items)
|
||||
m_ini.SetValue(section, key, sv.c_str(), nullptr, false);
|
||||
}
|
||||
|
||||
bool INISettingsInterface::RemoveFromStringList(const char* section, const char* key, const char* item)
|
||||
|
@ -25,7 +25,7 @@ public:
|
||||
void DeleteValue(const char* section, const char* key) override;
|
||||
|
||||
std::vector<std::string> GetStringList(const char* section, const char* key) override;
|
||||
void SetStringList(const char* section, const char* key, const std::vector<std::string_view>& items) override;
|
||||
void SetStringList(const char* section, const char* key, const std::vector<std::string>& items) override;
|
||||
bool RemoveFromStringList(const char* section, const char* key, const char* item) override;
|
||||
bool AddToStringList(const char* section, const char* key, const char* item) override;
|
||||
|
||||
|
Reference in New Issue
Block a user