Fix compiler warnings in autotest

Change-Id: I891b31fa86c6e0e8bcbfb6e6760e093d33598b47
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
bb10
Lars Knoll 2020-07-12 12:47:57 +02:00
parent 0e4ae4fbf8
commit a701b0ed30
1 changed files with 2 additions and 1 deletions

View File

@ -351,7 +351,7 @@ void tst_QVariant::constructor_invalid()
QVariant variant(static_cast<QVariant::Type>(typeId));
QVERIFY(!variant.isValid());
QVERIFY(variant.isNull());
QCOMPARE(variant.type(), int(QMetaType::UnknownType));
QCOMPARE(int(variant.type()), int(QMetaType::UnknownType));
QCOMPARE(variant.userType(), int(QMetaType::UnknownType));
}
{
@ -3285,6 +3285,7 @@ struct MyMovable
MyMovable() { v = count++; }
~MyMovable() { count--; }
MyMovable(const MyMovable &o) : v(o.v) { count++; }
MyMovable &operator=(const MyMovable &o) { v = o.v; return *this; }
bool operator==(const MyMovable &o) const
{