diff --git a/src/xmlpatterns/api/qxmlschema.cpp b/src/xmlpatterns/api/qxmlschema.cpp index a05708ff183f7d5f68be9c414d1b343ff9e3beb6..2ce6a5757010ae1f6c015c00dde4c774a2bd6723 100644 --- a/src/xmlpatterns/api/qxmlschema.cpp +++ b/src/xmlpatterns/api/qxmlschema.cpp @@ -93,6 +93,17 @@ QXmlSchema::QXmlSchema(const QXmlSchema &other) { } +/*! + \since 5.4 + Copies the resources of \a other into this instance, sharing + them to the extent possible. + */ +QXmlSchema &QXmlSchema::operator =(const QXmlSchema &other) +{ + d = other.d; + return *this; +} + /*! Destroys this QXmlSchema. */ diff --git a/src/xmlpatterns/api/qxmlschema.h b/src/xmlpatterns/api/qxmlschema.h index dedabfb92d0a33fbdd8dfa7d0f4b53992a434a8e..6f081ed69316c5f7b30f16a282739a0c2f105a6c 100644 --- a/src/xmlpatterns/api/qxmlschema.h +++ b/src/xmlpatterns/api/qxmlschema.h @@ -64,6 +64,7 @@ class Q_XMLPATTERNS_EXPORT QXmlSchema public: QXmlSchema(); QXmlSchema(const QXmlSchema &other); + QXmlSchema &operator=(const QXmlSchema &other); ~QXmlSchema(); bool load(const QUrl &source);