mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-17 14:15:47 -04:00
INISettingsInterface: Make constructor parameter a std::string
This commit is contained in:
@ -3,11 +3,11 @@
|
||||
#include <algorithm>
|
||||
Log_SetChannel(INISettingsInterface);
|
||||
|
||||
INISettingsInterface::INISettingsInterface(const char* filename) : m_filename(filename), m_ini(true, true)
|
||||
INISettingsInterface::INISettingsInterface(std::string filename) : m_filename(std::move(filename)), m_ini(true, true)
|
||||
{
|
||||
SI_Error err = m_ini.LoadFile(filename);
|
||||
SI_Error err = m_ini.LoadFile(m_filename.c_str());
|
||||
if (err != SI_OK)
|
||||
Log_WarningPrintf("Settings could not be loaded from '%s', defaults will be used.", filename);
|
||||
Log_WarningPrintf("Settings could not be loaded from '%s', defaults will be used.", m_filename.c_str());
|
||||
}
|
||||
|
||||
INISettingsInterface::~INISettingsInterface()
|
||||
|
@ -6,7 +6,7 @@
|
||||
class INISettingsInterface : public SettingsInterface
|
||||
{
|
||||
public:
|
||||
INISettingsInterface(const char* filename);
|
||||
INISettingsInterface(std::string filename);
|
||||
~INISettingsInterface();
|
||||
|
||||
void Clear() override;
|
||||
|
Reference in New Issue
Block a user