OSDN Git Service
(root)
/
kde
/
Katie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62a3854
)
use qAtomicAssign() in QDomDocumentType assignment operator
author
Ivailo Monev
<xakepa10@gmail.com>
Thu, 29 Jul 2021 23:18:55 +0000
(
02:18
+0300)
committer
Ivailo Monev
<xakepa10@gmail.com>
Thu, 29 Jul 2021 23:18:55 +0000
(
02:18
+0300)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
src/xml/dom/qdom.cpp
patch
|
blob
|
history
diff --git
a/src/xml/dom/qdom.cpp
b/src/xml/dom/qdom.cpp
index
c4642b7
..
41019d2
100644
(file)
--- a/
src/xml/dom/qdom.cpp
+++ b/
src/xml/dom/qdom.cpp
@@
-3633,9
+3633,10
@@
QDomDocumentType::QDomDocumentType(QDomDocumentTypePrivate* n)
will also change the other. If you want to make a deep copy, use
cloneNode().
*/
-QDomDocumentType& QDomDocumentType::operator=
(const QDomDocumentType& n
)
+QDomDocumentType& QDomDocumentType::operator=
(const QDomDocumentType& x
)
{
- return (QDomDocumentType&) QDomNode::operator=(n);
+ qAtomicAssign(impl, x.impl);
+ return *this;
}
/*!