diff options
| author | Linus Jahn <lnj@kaidan.im> | 2019-06-16 08:31:15 +0200 |
|---|---|---|
| committer | LNJ <lnj@kaidan.im> | 2019-10-19 16:43:36 +0200 |
| commit | 98f2fd04b0a95840584320858ff54cd5caff8f70 (patch) | |
| tree | d7f3e2bc8be6b6c63bb31214ec84b1737a4288b8 /src/base/QXmppConstants_p.h | |
| parent | 38d0769c80c47627225d6278ef17453915b3a854 (diff) | |
| download | qxmpp-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_p.h')
| -rw-r--r-- | src/base/QXmppConstants_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/base/QXmppConstants_p.h b/src/base/QXmppConstants_p.h index ba39ee05..c54daec7 100644 --- a/src/base/QXmppConstants_p.h +++ b/src/base/QXmppConstants_p.h @@ -74,6 +74,7 @@ extern const char* ns_bytestreams; // XEP-0066: Out of Band Data extern const char* ns_oob; // XEP-0071: XHTML-IM +extern const char *ns_xhtml; extern const char *ns_xhtml_im; // XEP-0077: In-Band Registration extern const char* ns_register; |
