Minor tweak to ini_file

This commit is contained in:
Henrik Rydgard 2013-10-12 01:29:10 +02:00
parent b16b67d8b6
commit d0476f22a0
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -170,7 +170,7 @@ public:
bool DeleteSection(const char* sectionName);
void SortSections();
const std::vector<Section> &Sections() { return sections; }
std::vector<Section> &Sections() { return sections; }
bool HasSection(const char *section) { return GetSection(section) != 0; }