Fix "variable set but unused" in qvariant.cpp

... how did that pass the CI?

Change-Id: I84baaf3632df0410d1fb25f24fd22f65daae13af
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
This commit is contained in:
Ulf Hermann 2020-10-16 08:56:48 +02:00
parent 382e3cb00f
commit b3f3ebc2c0

View File

@ -2265,7 +2265,7 @@ int spaceShip(Numeric lhs, Numeric rhs) {
smaller = std::less<QObject *>()(lhs, rhs); // can't use less all the time because of bool
else
smaller = lhs < rhs;
if (lhs < rhs)
if (smaller)
return -1;
else if (lhs == rhs)
return 0;