diff options
author | Florent Le Coz <louiz@louiz.org> | 2015-09-01 14:47:57 +0200 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2015-09-01 14:47:57 +0200 |
commit | f3b3d937ae274d0eec4a737d11ba19a7f4ceef03 (patch) | |
tree | c8dbd17073d8247c1d292050c1fff2f12c2114b1 /louloulibs/xmpp/xmpp_parser.hpp | |
parent | 38564d77c7679dd4de4562d321146322b6211d61 (diff) | |
download | biboumi-f3b3d937ae274d0eec4a737d11ba19a7f4ceef03.tar.gz biboumi-f3b3d937ae274d0eec4a737d11ba19a7f4ceef03.tar.bz2 biboumi-f3b3d937ae274d0eec4a737d11ba19a7f4ceef03.tar.xz biboumi-f3b3d937ae274d0eec4a737d11ba19a7f4ceef03.zip |
Use unique_ptr to store the XmlNode’s children
Also fix some constness things
Diffstat (limited to 'louloulibs/xmpp/xmpp_parser.hpp')
-rw-r--r-- | louloulibs/xmpp/xmpp_parser.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/louloulibs/xmpp/xmpp_parser.hpp b/louloulibs/xmpp/xmpp_parser.hpp index 79c9f8f..4de639d 100644 --- a/louloulibs/xmpp/xmpp_parser.hpp +++ b/louloulibs/xmpp/xmpp_parser.hpp @@ -112,6 +112,11 @@ private: */ XmlNode* current_node; /** + * The root node has no parent, so we keep it here: the XmppParser object + * is its owner. + */ + std::unique_ptr<XmlNode> root; + /** * A list of callbacks to be called on an *_event, receiving the * concerned Stanza/XmlNode. */ |