diff --git a/Source/Core/Common/IniFile.cpp b/Source/Core/Common/IniFile.cpp index 50752aabc1..cf2c89e0f3 100644 --- a/Source/Core/Common/IniFile.cpp +++ b/Source/Core/Common/IniFile.cpp @@ -39,6 +39,12 @@ void IniFile::ParseLine(const std::string& line, std::string* keyOut, std::strin const std::string& IniFile::NULL_STRING = ""; +IniFile::Section::Section() = default; + +IniFile::Section::Section(std::string name_) : name{std::move(name_)} +{ +} + void IniFile::Section::Set(const std::string& key, const std::string& newValue) { auto it = values.find(key); diff --git a/Source/Core/Common/IniFile.h b/Source/Core/Common/IniFile.h index e8902f468a..72f2317a91 100644 --- a/Source/Core/Common/IniFile.h +++ b/Source/Core/Common/IniFile.h @@ -29,8 +29,8 @@ public: friend class IniFile; public: - Section() {} - explicit Section(const std::string& name_) : name(name_) {} + Section(); + explicit Section(std::string name_); bool Exists(const std::string& key) const; bool Delete(const std::string& key);