summaryrefslogtreecommitdiff
path: root/src/xmlpatterns
diff options
context:
space:
mode:
Diffstat (limited to 'src/xmlpatterns')
-rw-r--r--src/xmlpatterns/api/qxmlname.cpp14
-rw-r--r--src/xmlpatterns/api/qxmlname.h1
-rw-r--r--src/xmlpatterns/configure.json5
3 files changed, 13 insertions, 7 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);
diff --git a/src/xmlpatterns/configure.json b/src/xmlpatterns/configure.json
index 851ebf8..a37909f 100644
--- a/src/xmlpatterns/configure.json
+++ b/src/xmlpatterns/configure.json
@@ -4,8 +4,9 @@
"features": {
"xml-schema": {
"label": "XML schema support",
- "purpose": "Support for XML schema validation",
- "output": [ "privateFeature" ]
+ "purpose": "Provides XML schema validation.",
+ "section": "QtXmlPatterns",
+ "output": [ "publicFeature" ]
}
},