diff --git a/file/ini_file.cpp b/file/ini_file.cpp index 714d569dd9..b5351a3751 100644 --- a/file/ini_file.cpp +++ b/file/ini_file.cpp @@ -100,7 +100,7 @@ void IniFile::Section::Set(const char* key, const std::string& newValue, const s bool IniFile::Section::Get(const char* key, std::string* value, const char* defaultValue) { - std::string* line = GetLine(key, value, 0); + const std::string* line = GetLine(key, value, 0); if (!line) { if (defaultValue) diff --git a/file/ini_file.h b/file/ini_file.h index 0205bbf1cf..83626e1552 100644 --- a/file/ini_file.h +++ b/file/ini_file.h @@ -170,7 +170,7 @@ public: bool DeleteSection(const char* sectionName); void SortSections(); - const std::vector
&Sections() { return sections; } + std::vector
&Sections() { return sections; } bool HasSection(const char *section) { return GetSection(section) != 0; }