diff options
author | Lars Knoll <lars.knoll@qt.io> | 2020-07-29 15:04:23 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2020-08-24 00:19:42 +0200 |
commit | 02dfec920951afc1c512aa41fd10b025ae1fbbb2 (patch) | |
tree | 9cd6e85b330b85452faf1315f032b8eca5baf23b /src/corelib/kernel/qvariant.h | |
parent | 0161f00e5043090f22b23de9822c09062b17d675 (diff) |
Remove QVariant(QDataStream) constructor
The constructor wasn't constructing a QVariant holding a
QDataStream, bug loading the variant from the datastream.
This is opposed to how QDataStream works in all other places,
and also not in line with all other constructors for QVariant.
[ChangeLog][QtCore][QVariant] Removed the QVariant(QDataStream)
constructor. Use QVariant().load(datastream) instead.
Change-Id: I6ac54e12166b9383c09c3940eef2516f896fd359
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/kernel/qvariant.h')
-rw-r--r-- | src/corelib/kernel/qvariant.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/corelib/kernel/qvariant.h b/src/corelib/kernel/qvariant.h index ae4c26ed7a..e2394fc469 100644 --- a/src/corelib/kernel/qvariant.h +++ b/src/corelib/kernel/qvariant.h @@ -177,10 +177,6 @@ class Q_CORE_EXPORT QVariant explicit QVariant(QMetaType type, const void *copy = nullptr); QVariant(const QVariant &other); -#ifndef QT_NO_DATASTREAM - explicit QVariant(QDataStream &s); -#endif - QVariant(int i); QVariant(uint ui); QVariant(qlonglong ll); |