use qAtomicAssign() in QDomDocumentType assignment operator

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2021-07-30 02:18:55 +03:00
parent 62a3854876
commit e6ab2f5350

View file

@ -3633,9 +3633,10 @@ QDomDocumentType::QDomDocumentType(QDomDocumentTypePrivate* n)
will also change the other. If you want to make a deep copy, use will also change the other. If you want to make a deep copy, use
cloneNode(). cloneNode().
*/ */
QDomDocumentType& QDomDocumentType::operator= (const QDomDocumentType& n) QDomDocumentType& QDomDocumentType::operator=(const QDomDocumentType& x)
{ {
return (QDomDocumentType&) QDomNode::operator=(n); qAtomicAssign(impl, x.impl);
return *this;
} }
/*! /*!