diff options
author | Vicent Marti | 2008-08-08 18:48:12 +0000 |
---|---|---|
committer | Vicent Marti | 2008-08-08 18:48:12 +0000 |
commit | f546aa9dc8d3bc811a4a356271022c29d121711d (patch) | |
tree | 286cd99dba9c85b011aac00d87e03978d01bcf26 /common/xmlparser.h | |
parent | dab1fa0942cffa82c1944170774b659b8bcfb6b2 (diff) | |
download | scummvm-rg350-f546aa9dc8d3bc811a4a356271022c29d121711d.tar.gz scummvm-rg350-f546aa9dc8d3bc811a4a356271022c29d121711d.tar.bz2 scummvm-rg350-f546aa9dc8d3bc811a4a356271022c29d121711d.zip |
BUGFIX: XMLParser issuing key-close callbacks on ignored keys.
svn-id: r33706
Diffstat (limited to 'common/xmlparser.h')
-rw-r--r-- | common/xmlparser.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/common/xmlparser.h b/common/xmlparser.h index e26ea1eb53..d1abd321e7 100644 --- a/common/xmlparser.h +++ b/common/xmlparser.h @@ -423,12 +423,21 @@ protected: * The closedKeyCallback is issued once a key has been finished parsing, to let * the parser verify that all the required subkeys, etc, were included. * + * Unlike the keyCallbacks(), there's just a closedKeyCallback() for all keys. + * Use "node->name" to distinguish between each key type. + * * Returns true if the key was properly closed, false otherwise. * By default, all keys are properly closed. */ virtual bool closedKeyCallback(ParserNode *node) { return true; } + + /** + * Called when a node is closed. Manages its cleanup and calls the + * closing callback function if needed. + */ + bool closeKey(); /** * Parses the value of a given key. There's no reason to overload this. |