diff options
| author | Linus Jahn <lnj@kaidan.im> | 2020-01-29 18:30:46 +0100 |
|---|---|---|
| committer | LNJ <lnj@kaidan.im> | 2020-01-29 19:11:49 +0100 |
| commit | 7472d8d86a1da384104690db2a22977dcc135e24 (patch) | |
| tree | 14c749a5f2b68d9fd62949f8643f3e40eaa12151 /src/base/QXmppNonSASLAuth.cpp | |
| parent | 0a074f6baa11970686c0fdb63903cd167bf3945a (diff) | |
| download | qxmpp-7472d8d86a1da384104690db2a22977dcc135e24.tar.gz | |
Replace manual xmlns writing by writeDefaultNamespace()
This is the result of:
sed -i 's/writeAttribute("xmlns", /writeDefaultNamespace(/g' \
$(find . -iname "*.cpp" -or -iname "*.h")
Diffstat (limited to 'src/base/QXmppNonSASLAuth.cpp')
| -rw-r--r-- | src/base/QXmppNonSASLAuth.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/base/QXmppNonSASLAuth.cpp b/src/base/QXmppNonSASLAuth.cpp index 29337e5e..aa6f8791 100644 --- a/src/base/QXmppNonSASLAuth.cpp +++ b/src/base/QXmppNonSASLAuth.cpp @@ -93,7 +93,7 @@ void QXmppNonSASLAuthIq::parseElementFromChild(const QDomElement &element) void QXmppNonSASLAuthIq::toXmlElementFromChild(QXmlStreamWriter *writer) const { writer->writeStartElement("query"); - writer->writeAttribute("xmlns", ns_auth); + writer->writeDefaultNamespace(ns_auth); if (!m_username.isEmpty()) writer->writeTextElement("username", m_username); if (!m_digest.isEmpty()) |
