diff options
author | Florent Le Coz <louiz@louiz.org> | 2014-04-15 04:11:27 +0200 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2014-04-15 04:11:27 +0200 |
commit | 7f74f62e56483bae6796be82d279c5180642d53b (patch) | |
tree | d0e98105c52531ae0df3931175e8b185c50e187e /src/xmpp/xmpp_stanza.cpp | |
parent | 020325dbb071f1735bceb80de9f982aefcd2de47 (diff) | |
parent | c64bb0bde9dbf572bd4d3bbaf478ec812a2f12d6 (diff) | |
download | biboumi-7f74f62e56483bae6796be82d279c5180642d53b.tar.gz biboumi-7f74f62e56483bae6796be82d279c5180642d53b.tar.bz2 biboumi-7f74f62e56483bae6796be82d279c5180642d53b.tar.xz biboumi-7f74f62e56483bae6796be82d279c5180642d53b.zip |
Merge branch 'master' into dummy_chan
Diffstat (limited to 'src/xmpp/xmpp_stanza.cpp')
-rw-r--r-- | src/xmpp/xmpp_stanza.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xmpp/xmpp_stanza.cpp b/src/xmpp/xmpp_stanza.cpp index 23b2d25..948e5f5 100644 --- a/src/xmpp/xmpp_stanza.cpp +++ b/src/xmpp/xmpp_stanza.cpp @@ -216,7 +216,7 @@ bool XmlNode::has_children() const return !this->children.empty(); } -const std::string& XmlNode::operator[](const std::string& name) const +const std::string XmlNode::get_tag(const std::string& name) const { try { @@ -225,7 +225,7 @@ const std::string& XmlNode::operator[](const std::string& name) const } catch (const std::out_of_range& e) { - throw AttributeNotFound(); + return ""; } } |