diff --git a/src/sql/kernel/qsqlfield.h b/src/sql/kernel/qsqlfield.h index 1b43d41485..d58bda7d86 100644 --- a/src/sql/kernel/qsqlfield.h +++ b/src/sql/kernel/qsqlfield.h @@ -88,6 +88,8 @@ private: QExplicitlySharedDataPointer d; }; +Q_DECLARE_SHARED(QSqlField) + #ifndef QT_NO_DEBUG_STREAM Q_SQL_EXPORT QDebug operator<<(QDebug, const QSqlField &); #endif diff --git a/src/sql/kernel/qsqlrecord.h b/src/sql/kernel/qsqlrecord.h index 2ae7ff38c3..f9812fdc9d 100644 --- a/src/sql/kernel/qsqlrecord.h +++ b/src/sql/kernel/qsqlrecord.h @@ -69,6 +69,8 @@ private: QExplicitlySharedDataPointer d; }; +Q_DECLARE_SHARED(QSqlRecord) + #ifndef QT_NO_DEBUG_STREAM Q_SQL_EXPORT QDebug operator<<(QDebug, const QSqlRecord &); #endif