QtCore: mark some classes as shared
Change-Id: I811d3eebd87c230883cc579c20f9fa4e14ff9521 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
7e0562c5ff
commit
9fb539085e
@ -127,6 +127,8 @@ public:
|
||||
{ stream->ts << m; return *this; }
|
||||
};
|
||||
|
||||
Q_DECLARE_SHARED(QDebug)
|
||||
|
||||
class QNoDebug
|
||||
{
|
||||
public:
|
||||
|
@ -224,6 +224,7 @@ private:
|
||||
|
||||
};
|
||||
|
||||
Q_DECLARE_SHARED(QDir)
|
||||
Q_DECLARE_OPERATORS_FOR_FLAGS(QDir::Filters)
|
||||
Q_DECLARE_OPERATORS_FOR_FLAGS(QDir::SortFlags)
|
||||
|
||||
|
@ -100,6 +100,8 @@ private:
|
||||
QSharedDataPointer<QProcessEnvironmentPrivate> d;
|
||||
};
|
||||
|
||||
Q_DECLARE_SHARED(QProcessEnvironment)
|
||||
|
||||
class Q_CORE_EXPORT QProcess : public QIODevice
|
||||
{
|
||||
Q_OBJECT
|
||||
|
@ -139,7 +139,7 @@ private:
|
||||
friend Q_CORE_EXPORT QDebug operator<<(QDebug, const QPersistentModelIndex &);
|
||||
#endif
|
||||
};
|
||||
Q_DECLARE_TYPEINFO(QPersistentModelIndex, Q_MOVABLE_TYPE);
|
||||
Q_DECLARE_SHARED(QPersistentModelIndex)
|
||||
|
||||
inline uint qHash(const QPersistentModelIndex &index)
|
||||
{ return qHash(index.d); }
|
||||
|
@ -107,6 +107,8 @@ protected:
|
||||
QExplicitlySharedDataPointer<QMimeTypePrivate> d;
|
||||
};
|
||||
|
||||
Q_DECLARE_SHARED(QMimeType)
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif // QMIMETYPE_H
|
||||
|
@ -271,7 +271,7 @@ private:
|
||||
friend Q_CORE_EXPORT QDataStream &operator>>(QDataStream &, QDateTime &);
|
||||
#endif
|
||||
};
|
||||
Q_DECLARE_TYPEINFO(QDateTime, Q_MOVABLE_TYPE);
|
||||
Q_DECLARE_SHARED(QDateTime)
|
||||
|
||||
#ifndef QT_NO_DATASTREAM
|
||||
Q_CORE_EXPORT QDataStream &operator<<(QDataStream &, const QDate &);
|
||||
|
@ -133,9 +133,9 @@ private:
|
||||
QExplicitlySharedDataPointer<QRegularExpressionPrivate> d;
|
||||
};
|
||||
|
||||
Q_DECLARE_SHARED(QRegularExpression)
|
||||
Q_DECLARE_OPERATORS_FOR_FLAGS(QRegularExpression::PatternOptions)
|
||||
Q_DECLARE_OPERATORS_FOR_FLAGS(QRegularExpression::MatchOptions)
|
||||
Q_DECLARE_TYPEINFO(QRegularExpression, Q_MOVABLE_TYPE);
|
||||
|
||||
#ifndef QT_NO_DATASTREAM
|
||||
Q_CORE_EXPORT QDataStream &operator<<(QDataStream &out, const QRegularExpression &re);
|
||||
@ -198,7 +198,7 @@ private:
|
||||
QSharedDataPointer<QRegularExpressionMatchPrivate> d;
|
||||
};
|
||||
|
||||
Q_DECLARE_TYPEINFO(QRegularExpressionMatch, Q_MOVABLE_TYPE);
|
||||
Q_DECLARE_SHARED(QRegularExpressionMatch)
|
||||
|
||||
#ifndef QT_NO_DEBUG_STREAM
|
||||
Q_CORE_EXPORT QDebug operator<<(QDebug debug, const QRegularExpressionMatch &match);
|
||||
@ -235,7 +235,7 @@ private:
|
||||
QSharedDataPointer<QRegularExpressionMatchIteratorPrivate> d;
|
||||
};
|
||||
|
||||
Q_DECLARE_TYPEINFO(QRegularExpressionMatchIterator, Q_MOVABLE_TYPE);
|
||||
Q_DECLARE_SHARED(QRegularExpressionMatchIterator)
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user