summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2014-06-20 16:25:02 -0700
committerThiago Macieira <thiago.macieira@intel.com>2014-06-21 20:47:58 +0200
commit33cc78b8f933a697c5bc6924a55f3a9cfa8b1e56 (patch)
tree40a2f2dc19cefb3028c5b7cf789b932752fb62e1
parent7c9cf1b1b0ae3f2ad561c2ed3a19ab9703efaa94 (diff)
downloadqtxmlpatterns-33cc78b8f933a697c5bc6924a55f3a9cfa8b1e56.tar.gz
Add missing copy assignment operator to QXmlSchema
Found by MSVC 2013 when. Change-Id: I09c23afca4c9045523ae0722751fb27737b1b5f8 Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
-rw-r--r--src/xmlpatterns/api/qxmlschema.cpp11
-rw-r--r--src/xmlpatterns/api/qxmlschema.h1
2 files changed, 12 insertions, 0 deletions
diff --git a/src/xmlpatterns/api/qxmlschema.cpp b/src/xmlpatterns/api/qxmlschema.cpp
index a05708f..2ce6a57 100644
--- a/src/xmlpatterns/api/qxmlschema.cpp
+++ b/src/xmlpatterns/api/qxmlschema.cpp
@@ -94,6 +94,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.
*/
QXmlSchema::~QXmlSchema()
diff --git a/src/xmlpatterns/api/qxmlschema.h b/src/xmlpatterns/api/qxmlschema.h
index dedabfb..6f081ed 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);