Fix sign change warning
The conversion from int to uint is deliberate here, so let's cast and avoid a warning for users compiling with warnings enabled. Change-Id: I7136d6161ace735be49f8d987338f6d401a5c78a Fixes: QTBUG-77245 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
6ce9404a6e
commit
aca43d29f8
@ -173,9 +173,9 @@ class Q_CORE_EXPORT QJsonValueRef
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
QJsonValueRef(QJsonArray *array, int idx)
|
QJsonValueRef(QJsonArray *array, int idx)
|
||||||
: a(array), is_object(false), index(idx) {}
|
: a(array), is_object(false), index(static_cast<uint>(idx)) {}
|
||||||
QJsonValueRef(QJsonObject *object, int idx)
|
QJsonValueRef(QJsonObject *object, int idx)
|
||||||
: o(object), is_object(true), index(idx) {}
|
: o(object), is_object(true), index(static_cast<uint>(idx)) {}
|
||||||
|
|
||||||
inline operator QJsonValue() const { return toValue(); }
|
inline operator QJsonValue() const { return toValue(); }
|
||||||
QJsonValueRef &operator = (const QJsonValue &val);
|
QJsonValueRef &operator = (const QJsonValue &val);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user