Q*ValueRef: suppress MSVC warning on deriving from non-exported base
Warning C4275 non dll-interface class 'QJsonValueConstRef' used as base for dll-interface class 'QJsonValueRef' UniRemoteAdapter C:\qt\Qt6.5.1\6.5.1\msvc2019_64\include\QtCore\qjsonvalue.h 219 Fixes: QTBUG-114629 Change-Id: I443cf0c8a76243eead33fffd176930f96c43eb47 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> (cherry picked from commit 674aa084c2d561d2377d8f8a8de1e3e7e60666f6) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
c9630e3afa
commit
c63a3a46be
@ -428,6 +428,8 @@ protected:
|
|||||||
qsizetype i;
|
qsizetype i;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
QT_WARNING_PUSH
|
||||||
|
QT6_ONLY(QT_WARNING_DISABLE_MSVC(4275)) // non dll-interface class 'QJsonValueConstRef' used as base for dll-interface class 'QJsonValueRef'
|
||||||
class QT6_ONLY(Q_CORE_EXPORT) QCborValueRef : public QCborValueConstRef
|
class QT6_ONLY(Q_CORE_EXPORT) QCborValueRef : public QCborValueConstRef
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@ -582,6 +584,7 @@ private:
|
|||||||
QT7_ONLY(Q_CORE_EXPORT) static void assign(QCborValueRef that, QCborValue &&other);
|
QT7_ONLY(Q_CORE_EXPORT) static void assign(QCborValueRef that, QCborValue &&other);
|
||||||
QT7_ONLY(Q_CORE_EXPORT) static void assign(QCborValueRef that, const QCborValueRef other);
|
QT7_ONLY(Q_CORE_EXPORT) static void assign(QCborValueRef that, const QCborValueRef other);
|
||||||
};
|
};
|
||||||
|
QT_WARNING_POP
|
||||||
Q_DECLARE_OPERATORS_FOR_FLAGS(QCborValue::EncodingOptions)
|
Q_DECLARE_OPERATORS_FOR_FLAGS(QCborValue::EncodingOptions)
|
||||||
Q_DECLARE_OPERATORS_FOR_FLAGS(QCborValue::DiagnosticNotationOptions)
|
Q_DECLARE_OPERATORS_FOR_FLAGS(QCborValue::DiagnosticNotationOptions)
|
||||||
|
|
||||||
|
@ -215,6 +215,8 @@ protected:
|
|||||||
friend class QJsonPrivate::Value;
|
friend class QJsonPrivate::Value;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
QT_WARNING_PUSH
|
||||||
|
QT6_ONLY(QT_WARNING_DISABLE_MSVC(4275)) // non dll-interface class 'QJsonValueConstRef' used as base for dll-interface class 'QJsonValueRef'
|
||||||
class QT6_ONLY(Q_CORE_EXPORT) QJsonValueRef : public QJsonValueConstRef
|
class QT6_ONLY(Q_CORE_EXPORT) QJsonValueRef : public QJsonValueConstRef
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@ -273,6 +275,7 @@ private:
|
|||||||
friend class QJsonArray;
|
friend class QJsonArray;
|
||||||
friend class QJsonObject;
|
friend class QJsonObject;
|
||||||
};
|
};
|
||||||
|
QT_WARNING_POP
|
||||||
|
|
||||||
inline QJsonValue QCborValueConstRef::toJsonValue() const
|
inline QJsonValue QCborValueConstRef::toJsonValue() const
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user