diff --git a/src/xml/dom/qdom.cpp b/src/xml/dom/qdom.cpp index 043fd3a6855..64f32030c87 100644 --- a/src/xml/dom/qdom.cpp +++ b/src/xml/dom/qdom.cpp @@ -639,16 +639,11 @@ QDomNodeListPrivate::~QDomNodeListPrivate() delete node_impl; } -bool QDomNodeListPrivate::operator==(const QDomNodeListPrivate &other) const +bool QDomNodeListPrivate::operator==(const QDomNodeListPrivate &other) const noexcept { return (node_impl == other.node_impl) && (tagname == other.tagname); } -bool QDomNodeListPrivate::operator!=(const QDomNodeListPrivate &other) const -{ - return !operator==(other); -} - void QDomNodeListPrivate::createList() const { if (!node_impl) diff --git a/src/xml/dom/qdom_p.h b/src/xml/dom/qdom_p.h index 2a8e2deac0c..507852b89e6 100644 --- a/src/xml/dom/qdom_p.h +++ b/src/xml/dom/qdom_p.h @@ -140,8 +140,7 @@ public: QDomNodeListPrivate(QDomNodePrivate *, const QString &, const QString &); ~QDomNodeListPrivate(); - bool operator==(const QDomNodeListPrivate &) const; - bool operator!=(const QDomNodeListPrivate &) const; + bool operator==(const QDomNodeListPrivate &) const noexcept; void createList() const; bool maybeCreateList() const;