mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 20:51:16 +00:00
Fixed leak when adding duplicate keys (and actually changed the behavior - now we take the first instance, not the last)
This commit is contained in:
@@ -43,6 +43,8 @@ namespace YAML
|
||||
void ParseFlow(Scanner *pScanner, ParserState& state);
|
||||
void ParseCompact(Scanner *pScanner, ParserState& state);
|
||||
void ParseCompactWithNoKey(Scanner *pScanner, ParserState& state);
|
||||
|
||||
void AddEntry(std::auto_ptr<Node> pKey, std::auto_ptr<Node> pValue);
|
||||
|
||||
private:
|
||||
node_map m_data;
|
||||
|
Reference in New Issue
Block a user