From 7d70f0cd14f55ecc0a273d206aa054165edaf6b9 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Wed, 14 Jan 2009 20:23:45 +0000 Subject: (svn r15085) -Fix (r14164): Clearing a settings group did not delete old items nor reset the last_item pointer, causing lists to not be saved unless they started blank. --- src/ini_type.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/ini_type.h') diff --git a/src/ini_type.h b/src/ini_type.h index 7bbc2ca20..eade53fd5 100644 --- a/src/ini_type.h +++ b/src/ini_type.h @@ -64,6 +64,11 @@ struct IniGroup { * @return the requested item or NULL if not found. */ IniItem *GetItem(const char *name, bool create); + + /** + * Clear all items in the group + */ + void Clear(); }; /** The complete ini file. */ -- cgit v1.2.3-54-g00ecf