summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/xmlpatterns/api/qxmlname.cpp2
-rw-r--r--src/xmlpatterns/api/qxmlname.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/xmlpatterns/api/qxmlname.cpp b/src/xmlpatterns/api/qxmlname.cpp
index 090a122..a631de9 100644
--- a/src/xmlpatterns/api/qxmlname.cpp
+++ b/src/xmlpatterns/api/qxmlname.cpp
@@ -398,7 +398,7 @@ QString QXmlName::toClarkName(const QXmlNamePool &namePool) const
/*!
Assigns \a other to \e this and returns \e this.
*/
-QXmlName &QXmlName::operator=(const QXmlName &other)
+QXmlName &QXmlName::operator=(const QXmlName &other) // ### Qt 6: remove
{
m_qNameCode = other.m_qNameCode;
return *this;
diff --git a/src/xmlpatterns/api/qxmlname.h b/src/xmlpatterns/api/qxmlname.h
index b3d1bc0..c90b526 100644
--- a/src/xmlpatterns/api/qxmlname.h
+++ b/src/xmlpatterns/api/qxmlname.h
@@ -86,6 +86,7 @@ public:
QString toClarkName(const QXmlNamePool &query) const;
bool operator==(const QXmlName &other) const;
bool operator!=(const QXmlName &other) const;
+ Q_ALWAYS_INLINE QXmlName(const QXmlName &other) : m_qNameCode(other.m_qNameCode) {} // ### Qt 6: remove
QXmlName &operator=(const QXmlName &other);
bool isNull() const;
static bool isNCName(const QString &candidate);