summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/xml/dom/qdom.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/xml/dom/qdom.cpp b/src/xml/dom/qdom.cpp
index 557f5c10b4..5928255778 100644
--- a/src/xml/dom/qdom.cpp
+++ b/src/xml/dom/qdom.cpp
@@ -4080,10 +4080,11 @@ void QDomElementPrivate::save(QTextStream& s, int depth, int indent) const
&& ((!value->ownerNode || value->ownerNode->prefix != value->prefix)
&& !outputtedPrefixes.hasSeen(value->prefix)))
{
- attr.prefix = QStringLiteral("xmlns");
- attr.name = value->prefix;
- attr.encodedValue = encodeText(value->namespaceURI, true, true);
- attributesToSave.push_back(std::move(attr));
+ SavedAttribute nsAttr;
+ nsAttr.prefix = QStringLiteral("xmlns");
+ nsAttr.name = value->prefix;
+ nsAttr.encodedValue = encodeText(value->namespaceURI, true, true);
+ attributesToSave.push_back(std::move(nsAttr));
}
}