diff options
author | Marc Mutz <marc.mutz@qt.io> | 2024-04-15 09:12:56 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@qt.io> | 2024-04-24 22:31:25 +0200 |
commit | ef2b55ee65a971e02c953aff018a74137ba80492 (patch) | |
tree | d23af72479103c759cb586625273c027771ea2e0 /src | |
parent | 8ab63278ef2cd0d4ffff1391b5a93fee7a9f300a (diff) |
QXmlStreamEntityResolver: disable copying
It's a polymorphic class, so disable copying as we do for all other
interfaces, too.
Disabling the copy/move SMFs requires manually restoring the default
ctor.
[ChangeLog][QtCore][Potentially Source-Incompatible
Changes][QXmlStreamEntityResolver] Disabled the copy and move
constructors and assignment operators. You can still provide them for
your own subclasses, but you must do so explicitly.
Change-Id: Ie2460f88664198707fdd4119376503f81a0f2a8d
Reviewed-by: Ahmad Samir <a.samirh78@gmail.com>
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/corelib/serialization/qxmlstream.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/corelib/serialization/qxmlstream.h b/src/corelib/serialization/qxmlstream.h index 7eeaa1c1cc..8a12c6d611 100644 --- a/src/corelib/serialization/qxmlstream.h +++ b/src/corelib/serialization/qxmlstream.h @@ -206,7 +206,9 @@ typedef QList<QXmlStreamEntityDeclaration> QXmlStreamEntityDeclarations; class Q_CORE_EXPORT QXmlStreamEntityResolver { + Q_DISABLE_COPY_MOVE(QXmlStreamEntityResolver) public: + QXmlStreamEntityResolver() = default; virtual ~QXmlStreamEntityResolver(); virtual QString resolveEntity(const QString& publicId, const QString& systemId); virtual QString resolveUndeclaredEntity(const QString &name); |