aboutsummaryrefslogtreecommitdiff
path: root/src/base/QXmppConstants.cpp
diff options
context:
space:
mode:
authorLinus Jahn <lnj@kaidan.im>2019-06-16 08:31:15 +0200
committerLNJ <lnj@kaidan.im>2019-10-19 16:43:36 +0200
commit98f2fd04b0a95840584320858ff54cd5caff8f70 (patch)
treed7f3e2bc8be6b6c63bb31214ec84b1737a4288b8 /src/base/QXmppConstants.cpp
parent38d0769c80c47627225d6278ef17453915b3a854 (diff)
downloadqxmpp-98f2fd04b0a95840584320858ff54cd5caff8f70.tar.gz
Refactor & clean up QXmppMessage
This simplifies parsing and fixes a possible bug: The bug case looks like this: - We have one element we want to parse (e,g, "attachment" with namespace xyz) - There is another element called "attachment" in the stanza and it's located before the other element. - QXmppMessage tries to parse the attachment element using firstChildElement("attachment") and checks the namespace - The namespace (of the first) element doesn't match - The actual "attachment" element is not parsed This also fixes the "constructor does not initialize these fields: […]" warnings for QXmppMessagePrivate.
Diffstat (limited to 'src/base/QXmppConstants.cpp')
-rw-r--r--src/base/QXmppConstants.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/base/QXmppConstants.cpp b/src/base/QXmppConstants.cpp
index 92ff8689..a7073c4a 100644
--- a/src/base/QXmppConstants.cpp
+++ b/src/base/QXmppConstants.cpp
@@ -62,6 +62,7 @@ const char* ns_bytestreams = "http://jabber.org/protocol/bytestreams";
// XEP-0066: Out of Band Data
const char* ns_oob = "jabber:x:oob";
// XEP-0071: XHTML-IM
+const char *ns_xhtml = "http://www.w3.org/1999/xhtml";
const char *ns_xhtml_im = "http://jabber.org/protocol/xhtml-im";
// XEP-0077: In-Band Registration
const char* ns_register = "jabber:iq:register";