SQL: add missing Q_DECLARE_SHARED to the value types
QSqlField and QSqlRecord implemented all special member functions and the member swap() function, but were missing the Q_DECLARE_SHARED macro. Found during Qt 6.6 API review [ChangeLog][QtSql] QSqlField and QSqlRecord are now relocatable types. Pick-to: 6.6 Change-Id: Ia10f1d3fd9f634864be5b36d1d3903301adfa9ab Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> Reviewed-by: Marc Mutz <marc.mutz@qt.io>
This commit is contained in:
parent
2e340cea88
commit
2f87711913
@ -88,6 +88,8 @@ private:
|
||||
QExplicitlySharedDataPointer<QSqlFieldPrivate> d;
|
||||
};
|
||||
|
||||
Q_DECLARE_SHARED(QSqlField)
|
||||
|
||||
#ifndef QT_NO_DEBUG_STREAM
|
||||
Q_SQL_EXPORT QDebug operator<<(QDebug, const QSqlField &);
|
||||
#endif
|
||||
|
@ -69,6 +69,8 @@ private:
|
||||
QExplicitlySharedDataPointer<QSqlRecordPrivate> d;
|
||||
};
|
||||
|
||||
Q_DECLARE_SHARED(QSqlRecord)
|
||||
|
||||
#ifndef QT_NO_DEBUG_STREAM
|
||||
Q_SQL_EXPORT QDebug operator<<(QDebug, const QSqlRecord &);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user