diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2017-04-19 16:03:33 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2017-04-20 07:19:30 +0000 |
commit | da19c9882295a8f3216284935c05ad4b89c445bd (patch) | |
tree | b0590022a703d280a06a79ab660b7a8017b5aef5 /src/xmlpatterns/api/qxmlname.h | |
parent | 3a44e86cdceba7acc6b830274968b0dfa482f5a8 (diff) | |
download | qtxmlpatterns-da19c9882295a8f3216284935c05ad4b89c445bd.tar.gz |
QXmlName: Add copy constructor and use default for copy/assignmentv5.9.0-beta3
Fix Clang warning:
95:15: warning: definition of implicit copy constructor for 'QXmlName' is deprecated because it has a user-declared copy assignment operator
qmetatype.h:1684:83: note: in instantiation of member function 'QtMetaTypePrivate::QMetaTypeFunctionHelper<QXmlName, true>::Construct' requested here
qmetatype.h:1712:12: note: in instantiation of function template specialization 'qRegisterNormalizedMetaType<QXmlName>' requested here
134:1: note: in instantiation of function template specialization 'qRegisterMetaType<QXmlName>' requested here
qmetatype.h:1848:34: note: expanded from macro 'Q_DECLARE_METATYPE'
qmetatype.h:1860:35: note: expanded from macro 'Q_DECLARE_METATYPE_IMPL'
qmetatype.h:765:32: note: implicit copy constructor for 'QXmlName' first required here
Change-Id: I5e194201278d2a5d613eac9dc9cd7b36679697b3
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Diffstat (limited to 'src/xmlpatterns/api/qxmlname.h')
-rw-r--r-- | src/xmlpatterns/api/qxmlname.h | 1 |
1 files changed, 1 insertions, 0 deletions
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); |