Sweep Q_DECLARE_SHARED_NOT_MOVABLE_UNTIL_QT6 -> Q_DECLARE_SHARED
This is Qt 6, so Q_DECLARE_SHARED_NOT_MOVABLE_UNTIL_QT6 is the same as Q_DECLARE_SHARED. Let's hope we'll collectively get better at detecting missing Q_DECLARE_SHARED so we won't need a Q_DECLARE_SHARED_NOT_MOVABLE_UNTIL_QT7 in the future. Change-Id: I3da9faff4c66b64a3b257309012a2a10a6c6d027 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
This commit is contained in:
parent
857722ed8f
commit
7c070ac959
@ -257,7 +257,7 @@ public:
|
||||
const QItemSelectionRange &other,
|
||||
QItemSelection *result);
|
||||
};
|
||||
Q_DECLARE_SHARED_NOT_MOVABLE_UNTIL_QT6(QItemSelection)
|
||||
Q_DECLARE_SHARED(QItemSelection)
|
||||
|
||||
#ifndef QT_NO_DEBUG_STREAM
|
||||
Q_CORE_EXPORT QDebug operator<<(QDebug, const QItemSelectionRange &);
|
||||
|
@ -250,7 +250,7 @@ private:
|
||||
QExplicitlySharedDataPointer<QCborContainerPrivate> a;
|
||||
};
|
||||
|
||||
Q_DECLARE_SHARED_NOT_MOVABLE_UNTIL_QT6(QJsonArray)
|
||||
Q_DECLARE_SHARED(QJsonArray)
|
||||
|
||||
Q_CORE_EXPORT size_t qHash(const QJsonArray &array, size_t seed = 0);
|
||||
|
||||
|
@ -172,7 +172,7 @@ private:
|
||||
std::unique_ptr<QJsonDocumentPrivate> d;
|
||||
};
|
||||
|
||||
Q_DECLARE_SHARED_NOT_MOVABLE_UNTIL_QT6(QJsonDocument)
|
||||
Q_DECLARE_SHARED(QJsonDocument)
|
||||
|
||||
#if !defined(QT_NO_DEBUG_STREAM) && !defined(QT_JSON_READONLY)
|
||||
Q_CORE_EXPORT QDebug operator<<(QDebug, const QJsonDocument &);
|
||||
|
@ -300,7 +300,7 @@ private:
|
||||
QExplicitlySharedDataPointer<QCborContainerPrivate> o;
|
||||
};
|
||||
|
||||
Q_DECLARE_SHARED_NOT_MOVABLE_UNTIL_QT6(QJsonObject)
|
||||
Q_DECLARE_SHARED(QJsonObject)
|
||||
|
||||
Q_CORE_EXPORT size_t qHash(const QJsonObject &object, size_t seed = 0);
|
||||
|
||||
|
@ -230,7 +230,7 @@ public:
|
||||
QJsonValueRef* operator->() { return &valueRef; }
|
||||
};
|
||||
|
||||
Q_DECLARE_SHARED_NOT_MOVABLE_UNTIL_QT6(QJsonValue)
|
||||
Q_DECLARE_SHARED(QJsonValue)
|
||||
|
||||
Q_CORE_EXPORT size_t qHash(const QJsonValue &value, size_t seed = 0);
|
||||
|
||||
|
@ -88,7 +88,7 @@ public:
|
||||
inline int position() const { return m_position; }
|
||||
inline int size() const { return m_size; }
|
||||
};
|
||||
Q_DECLARE_SHARED_NOT_MOVABLE_UNTIL_QT6(QXmlStreamStringRef)
|
||||
Q_DECLARE_SHARED(QXmlStreamStringRef)
|
||||
|
||||
|
||||
class QXmlStreamReaderPrivate;
|
||||
|
@ -150,7 +150,7 @@ protected:
|
||||
friend class QDBusArgumentPrivate;
|
||||
mutable QDBusArgumentPrivate *d;
|
||||
};
|
||||
Q_DECLARE_SHARED_NOT_MOVABLE_UNTIL_QT6(QDBusArgument)
|
||||
Q_DECLARE_SHARED(QDBusArgument)
|
||||
|
||||
QT_END_NAMESPACE
|
||||
Q_DECLARE_METATYPE(QDBusArgument)
|
||||
|
@ -212,7 +212,7 @@ private:
|
||||
friend class QDBusConnectionPrivate;
|
||||
QDBusConnectionPrivate *d;
|
||||
};
|
||||
Q_DECLARE_SHARED_NOT_MOVABLE_UNTIL_QT6(QDBusConnection)
|
||||
Q_DECLARE_SHARED(QDBusConnection)
|
||||
|
||||
Q_DECLARE_OPERATORS_FOR_FLAGS(QDBusConnection::RegisterOptions)
|
||||
Q_DECLARE_OPERATORS_FOR_FLAGS(QDBusConnection::VirtualObjectRegisterOptions)
|
||||
|
@ -132,7 +132,7 @@ private:
|
||||
// so the following field cannot be used:
|
||||
void *unused;
|
||||
};
|
||||
Q_DECLARE_SHARED_NOT_MOVABLE_UNTIL_QT6(QDBusError)
|
||||
Q_DECLARE_SHARED(QDBusError)
|
||||
|
||||
#ifndef QT_NO_DEBUG_STREAM
|
||||
Q_DBUS_EXPORT QDebug operator<<(QDebug, const QDBusError &);
|
||||
|
@ -79,7 +79,7 @@ public:
|
||||
private:
|
||||
void doCheck();
|
||||
};
|
||||
Q_DECLARE_SHARED_NOT_MOVABLE_UNTIL_QT6(QDBusObjectPath)
|
||||
Q_DECLARE_SHARED(QDBusObjectPath)
|
||||
|
||||
inline QDBusObjectPath::QDBusObjectPath(const char *objectPath)
|
||||
: m_path(QString::fromLatin1(objectPath))
|
||||
@ -132,7 +132,7 @@ public:
|
||||
private:
|
||||
void doCheck();
|
||||
};
|
||||
Q_DECLARE_SHARED_NOT_MOVABLE_UNTIL_QT6(QDBusSignature)
|
||||
Q_DECLARE_SHARED(QDBusSignature)
|
||||
|
||||
inline QDBusSignature::QDBusSignature(const char *dBusSignature)
|
||||
: m_signature(QString::fromLatin1(dBusSignature))
|
||||
@ -179,7 +179,7 @@ public:
|
||||
inline QVariant variant() const
|
||||
{ return m_variant; }
|
||||
};
|
||||
Q_DECLARE_SHARED_NOT_MOVABLE_UNTIL_QT6(QDBusVariant)
|
||||
Q_DECLARE_SHARED(QDBusVariant)
|
||||
|
||||
inline QDBusVariant::QDBusVariant(const QVariant &dBusVariant)
|
||||
: m_variant(dBusVariant) { }
|
||||
|
@ -129,7 +129,7 @@ private:
|
||||
friend class QDBusMessagePrivate;
|
||||
QDBusMessagePrivate *d_ptr;
|
||||
};
|
||||
Q_DECLARE_SHARED_NOT_MOVABLE_UNTIL_QT6(QDBusMessage)
|
||||
Q_DECLARE_SHARED(QDBusMessage)
|
||||
|
||||
#ifndef QT_NO_DEBUG_STREAM
|
||||
Q_DBUS_EXPORT QDebug operator<<(QDebug, const QDBusMessage &);
|
||||
|
@ -88,7 +88,7 @@ public:
|
||||
static int totalUsed();
|
||||
#endif
|
||||
};
|
||||
Q_DECLARE_SHARED_NOT_MOVABLE_UNTIL_QT6(QPixmapCache::Key)
|
||||
Q_DECLARE_SHARED(QPixmapCache::Key)
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
|
@ -119,7 +119,7 @@ private:
|
||||
friend Q_GUI_EXPORT bool operator==(const QCursor &lhs, const QCursor &rhs) noexcept;
|
||||
QCursorData *d;
|
||||
};
|
||||
Q_DECLARE_SHARED_NOT_MOVABLE_UNTIL_QT6(QCursor)
|
||||
Q_DECLARE_SHARED(QCursor)
|
||||
|
||||
Q_GUI_EXPORT bool operator==(const QCursor &lhs, const QCursor &rhs) noexcept;
|
||||
inline bool operator!=(const QCursor &lhs, const QCursor &rhs) noexcept { return !(lhs == rhs); }
|
||||
|
@ -224,7 +224,7 @@ private:
|
||||
#endif
|
||||
};
|
||||
|
||||
Q_DECLARE_SHARED_NOT_MOVABLE_UNTIL_QT6(QPainterPath)
|
||||
Q_DECLARE_SHARED(QPainterPath)
|
||||
Q_DECLARE_TYPEINFO(QPainterPath::Element, Q_PRIMITIVE_TYPE);
|
||||
|
||||
#ifndef QT_NO_DATASTREAM
|
||||
|
@ -95,7 +95,7 @@ public:
|
||||
|
||||
bool intersects(const QPolygon &r) const;
|
||||
};
|
||||
Q_DECLARE_SHARED_NOT_MOVABLE_UNTIL_QT6(QPolygon)
|
||||
Q_DECLARE_SHARED(QPolygon)
|
||||
|
||||
inline QPolygon::QPolygon(int asize) : QVector<QPoint>(asize) {}
|
||||
|
||||
@ -170,7 +170,7 @@ public:
|
||||
|
||||
bool intersects(const QPolygonF &r) const;
|
||||
};
|
||||
Q_DECLARE_SHARED_NOT_MOVABLE_UNTIL_QT6(QPolygonF)
|
||||
Q_DECLARE_SHARED(QPolygonF)
|
||||
|
||||
inline QPolygonF::QPolygonF(int asize) : QVector<QPointF>(asize) {}
|
||||
|
||||
|
@ -157,7 +157,7 @@ Q_GUI_EXPORT
|
||||
static const struct QRegionData shared_empty;
|
||||
static void cleanUp(QRegionData *x);
|
||||
};
|
||||
Q_DECLARE_SHARED_NOT_MOVABLE_UNTIL_QT6(QRegion)
|
||||
Q_DECLARE_SHARED(QRegion)
|
||||
|
||||
/*****************************************************************************
|
||||
QRegion stream functions
|
||||
|
@ -160,7 +160,7 @@ protected:
|
||||
QExplicitlySharedDataPointer<QHostAddressPrivate> d;
|
||||
};
|
||||
Q_DECLARE_OPERATORS_FOR_FLAGS(QHostAddress::ConversionMode)
|
||||
Q_DECLARE_SHARED_NOT_MOVABLE_UNTIL_QT6(QHostAddress)
|
||||
Q_DECLARE_SHARED(QHostAddress)
|
||||
|
||||
inline bool operator ==(QHostAddress::SpecialAddress address1, const QHostAddress &address2)
|
||||
{ return address2 == address1; }
|
||||
|
@ -156,7 +156,7 @@ private:
|
||||
QtPrivate::QSlotObjectBase *slotObj);
|
||||
};
|
||||
|
||||
Q_DECLARE_SHARED_NOT_MOVABLE_UNTIL_QT6(QHostInfo)
|
||||
Q_DECLARE_SHARED(QHostInfo)
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
|
@ -93,7 +93,7 @@ private:
|
||||
};
|
||||
};
|
||||
|
||||
Q_DECLARE_SHARED_NOT_MOVABLE_UNTIL_QT6(QSqlError)
|
||||
Q_DECLARE_SHARED(QSqlError)
|
||||
|
||||
#ifndef QT_NO_DEBUG_STREAM
|
||||
Q_SQL_EXPORT QDebug operator<<(QDebug, const QSqlError &);
|
||||
|
@ -76,7 +76,7 @@ public:
|
||||
private:
|
||||
QString tName, iColumn, dColumn;
|
||||
};
|
||||
Q_DECLARE_SHARED_NOT_MOVABLE_UNTIL_QT6(QSqlRelation)
|
||||
Q_DECLARE_SHARED(QSqlRelation)
|
||||
|
||||
class QSqlRelationalTableModelPrivate;
|
||||
|
||||
|
@ -188,7 +188,7 @@ private:
|
||||
};
|
||||
|
||||
Q_DECLARE_TYPEINFO(QXmlAttributes::Attribute, Q_MOVABLE_TYPE);
|
||||
Q_DECLARE_SHARED_NOT_MOVABLE_UNTIL_QT6(QXmlAttributes)
|
||||
Q_DECLARE_SHARED(QXmlAttributes)
|
||||
|
||||
//
|
||||
// SAX Input Source
|
||||
|
Loading…
x
Reference in New Issue
Block a user