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 /examples/example_1_echoClient/example_1_echoClient.cpp | |
| parent | 38d0769c80c47627225d6278ef17453915b3a854 (diff) | |
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 'examples/example_1_echoClient/example_1_echoClient.cpp')
0 files changed, 0 insertions, 0 deletions
