QDom: Use the default for assignment operators in QDom* classes
These classes are all derived from QDomNode, and their assignment operators are directly or indirectly calling the ones from QDomNode by explicitly converting to it. We can just use the default assignment operators instead. Change-Id: I1e3d4eef2188d124e5d54a909eb18bb93ddaa110 Pick-to: 6.4 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
d4f631ce51
commit
23d2d57d92
@ -3139,11 +3139,7 @@ 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 &n) = default;
|
||||||
{
|
|
||||||
return static_cast<QDomDocumentType &>(QDomNode::operator=(n));
|
|
||||||
}
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
Returns the name of the document type as specified in the
|
Returns the name of the document type as specified in the
|
||||||
<!DOCTYPE name> tag.
|
<!DOCTYPE name> tag.
|
||||||
@ -3319,10 +3315,7 @@ QDomDocumentFragment::QDomDocumentFragment(const QDomDocumentFragment& x)
|
|||||||
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().
|
||||||
*/
|
*/
|
||||||
QDomDocumentFragment& QDomDocumentFragment::operator= (const QDomDocumentFragment& x)
|
QDomDocumentFragment &QDomDocumentFragment::operator=(const QDomDocumentFragment &x) = default;
|
||||||
{
|
|
||||||
return static_cast<QDomDocumentFragment &>(QDomNode::operator=(x));
|
|
||||||
}
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\fn QDomNode::NodeType QDomDocumentFragment::nodeType() const
|
\fn QDomNode::NodeType QDomDocumentFragment::nodeType() const
|
||||||
@ -3453,10 +3446,7 @@ QDomCharacterData::QDomCharacterData(QDomCharacterDataPrivate* 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().
|
||||||
*/
|
*/
|
||||||
QDomCharacterData& QDomCharacterData::operator= (const QDomCharacterData& x)
|
QDomCharacterData &QDomCharacterData::operator=(const QDomCharacterData &x) = default;
|
||||||
{
|
|
||||||
return static_cast<QDomCharacterData &>(QDomNode::operator=(x));
|
|
||||||
}
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
Returns the string stored in this object.
|
Returns the string stored in this object.
|
||||||
@ -3762,10 +3752,7 @@ QDomAttr::QDomAttr(QDomAttrPrivate* 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().
|
||||||
*/
|
*/
|
||||||
QDomAttr& QDomAttr::operator= (const QDomAttr& x)
|
QDomAttr &QDomAttr::operator=(const QDomAttr &x) = default;
|
||||||
{
|
|
||||||
return static_cast<QDomAttr &>(QDomNode::operator=(x));
|
|
||||||
}
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
Returns the attribute's name.
|
Returns the attribute's name.
|
||||||
@ -4185,10 +4172,7 @@ QDomElement::QDomElement(QDomElementPrivate* 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().
|
||||||
*/
|
*/
|
||||||
QDomElement& QDomElement::operator= (const QDomElement& x)
|
QDomElement &QDomElement::operator=(const QDomElement &x) = default;
|
||||||
{
|
|
||||||
return static_cast<QDomElement &>(QDomNode::operator=(x));
|
|
||||||
}
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\fn QDomNode::NodeType QDomElement::nodeType() const
|
\fn QDomNode::NodeType QDomElement::nodeType() const
|
||||||
@ -4705,10 +4689,7 @@ QDomText::QDomText(QDomTextPrivate* 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().
|
||||||
*/
|
*/
|
||||||
QDomText& QDomText::operator= (const QDomText& x)
|
QDomText &QDomText::operator=(const QDomText &x) = default;
|
||||||
{
|
|
||||||
return static_cast<QDomText &>(QDomNode::operator=(x));
|
|
||||||
}
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\fn QDomNode::NodeType QDomText::nodeType() const
|
\fn QDomNode::NodeType QDomText::nodeType() const
|
||||||
@ -4836,10 +4817,7 @@ QDomComment::QDomComment(QDomCommentPrivate* 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().
|
||||||
*/
|
*/
|
||||||
QDomComment& QDomComment::operator= (const QDomComment& x)
|
QDomComment &QDomComment::operator=(const QDomComment &x) = default;
|
||||||
{
|
|
||||||
return static_cast<QDomComment &>(QDomNode::operator=(x));
|
|
||||||
}
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\fn QDomNode::NodeType QDomComment::nodeType() const
|
\fn QDomNode::NodeType QDomComment::nodeType() const
|
||||||
@ -4944,10 +4922,7 @@ QDomCDATASection::QDomCDATASection(QDomCDATASectionPrivate* 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().
|
||||||
*/
|
*/
|
||||||
QDomCDATASection& QDomCDATASection::operator= (const QDomCDATASection& x)
|
QDomCDATASection &QDomCDATASection::operator=(const QDomCDATASection &x) = default;
|
||||||
{
|
|
||||||
return static_cast<QDomCDATASection &>(QDomNode::operator=(x));
|
|
||||||
}
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\fn QDomNode::NodeType QDomCDATASection::nodeType() const
|
\fn QDomNode::NodeType QDomCDATASection::nodeType() const
|
||||||
@ -5068,10 +5043,7 @@ QDomNotation::QDomNotation(QDomNotationPrivate* 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().
|
||||||
*/
|
*/
|
||||||
QDomNotation& QDomNotation::operator= (const QDomNotation& x)
|
QDomNotation &QDomNotation::operator=(const QDomNotation &x) = default;
|
||||||
{
|
|
||||||
return static_cast<QDomNotation &>(QDomNode::operator=(x));
|
|
||||||
}
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\fn QDomNode::NodeType QDomNotation::nodeType() const
|
\fn QDomNode::NodeType QDomNotation::nodeType() const
|
||||||
@ -5265,10 +5237,7 @@ QDomEntity::QDomEntity(QDomEntityPrivate* 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().
|
||||||
*/
|
*/
|
||||||
QDomEntity& QDomEntity::operator= (const QDomEntity& x)
|
QDomEntity &QDomEntity::operator=(const QDomEntity &x) = default;
|
||||||
{
|
|
||||||
return static_cast<QDomEntity &>(QDomNode::operator=(x));
|
|
||||||
}
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\fn QDomNode::NodeType QDomEntity::nodeType() const
|
\fn QDomNode::NodeType QDomEntity::nodeType() const
|
||||||
@ -5417,10 +5386,7 @@ QDomEntityReference::QDomEntityReference(QDomEntityReferencePrivate* 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().
|
||||||
*/
|
*/
|
||||||
QDomEntityReference& QDomEntityReference::operator= (const QDomEntityReference& x)
|
QDomEntityReference &QDomEntityReference::operator=(const QDomEntityReference &x) = default;
|
||||||
{
|
|
||||||
return static_cast<QDomEntityReference &>(QDomNode::operator=(x));
|
|
||||||
}
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\fn QDomNode::NodeType QDomEntityReference::nodeType() const
|
\fn QDomNode::NodeType QDomEntityReference::nodeType() const
|
||||||
@ -5534,10 +5500,8 @@ QDomProcessingInstruction::QDomProcessingInstruction(QDomProcessingInstructionPr
|
|||||||
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().
|
||||||
*/
|
*/
|
||||||
QDomProcessingInstruction& QDomProcessingInstruction::operator= (const QDomProcessingInstruction& x)
|
QDomProcessingInstruction &
|
||||||
{
|
QDomProcessingInstruction::operator=(const QDomProcessingInstruction &x) = default;
|
||||||
return static_cast<QDomProcessingInstruction &>(QDomNode::operator=(x));
|
|
||||||
}
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\fn QDomNode::NodeType QDomProcessingInstruction::nodeType() const
|
\fn QDomNode::NodeType QDomProcessingInstruction::nodeType() const
|
||||||
@ -6065,10 +6029,7 @@ QDomDocument::QDomDocument(QDomDocumentPrivate* x)
|
|||||||
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().
|
||||||
*/
|
*/
|
||||||
QDomDocument& QDomDocument::operator= (const QDomDocument& x)
|
QDomDocument &QDomDocument::operator=(const QDomDocument &x) = default;
|
||||||
{
|
|
||||||
return static_cast<QDomDocument &>(QDomNode::operator=(x));
|
|
||||||
}
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
Destroys the object and frees its resources.
|
Destroys the object and frees its resources.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user