diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/xmlpatterns/api/qxmlname.cpp | 14 | ||||
-rw-r--r-- | src/xmlpatterns/api/qxmlname.h | 1 |
2 files changed, 10 insertions, 5 deletions
diff --git a/src/xmlpatterns/api/qxmlname.cpp b/src/xmlpatterns/api/qxmlname.cpp index 241aa5e..83b72cf 100644 --- a/src/xmlpatterns/api/qxmlname.cpp +++ b/src/xmlpatterns/api/qxmlname.cpp @@ -402,13 +402,17 @@ QString QXmlName::toClarkName(const QXmlNamePool &namePool) const } /*! + Constructs a copy of \a other. + + \sa operator=() + \since 5.9 +*/ +QXmlName::QXmlName(const QXmlName &) = default; // ### Qt 6: remove + +/*! Assigns \a other to \e this and returns \e this. */ -QXmlName &QXmlName::operator=(const QXmlName &other) -{ - m_qNameCode = other.m_qNameCode; - return *this; -} +QXmlName &QXmlName::operator=(const QXmlName &) = default; // ### Qt 6: remove /*! Returns true if \a candidate is an \c NCName. An \c NCName diff --git a/src/xmlpatterns/api/qxmlname.h b/src/xmlpatterns/api/qxmlname.h index 7dad306..0e30b4c 100644 --- a/src/xmlpatterns/api/qxmlname.h +++ b/src/xmlpatterns/api/qxmlname.h @@ -92,6 +92,7 @@ public: QString toClarkName(const QXmlNamePool &query) const; bool operator==(const QXmlName &other) const; bool operator!=(const QXmlName &other) const; + QXmlName(const QXmlName &other); QXmlName &operator=(const QXmlName &other); bool isNull() const; static bool isNCName(const QString &candidate); |