diff options
Diffstat (limited to 'src/ini.cpp')
-rw-r--r-- | src/ini.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ini.cpp b/src/ini.cpp index dc3f452a5..e8781faab 100644 --- a/src/ini.cpp +++ b/src/ini.cpp @@ -77,6 +77,13 @@ IniItem *IniGroup::GetItem(const char *name, bool create) return new IniItem(this, name, len); } +void IniGroup::Clear() +{ + delete this->item; + this->item = NULL; + this->last_item = &this->item; +} + IniFile::IniFile(const char **list_group_names) : group(NULL), comment(NULL), list_group_names(list_group_names) { this->last_group = &this->group; |