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:
parent
382e3cb00f
commit
b3f3ebc2c0
@ -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
|
smaller = std::less<QObject *>()(lhs, rhs); // can't use less all the time because of bool
|
||||||
else
|
else
|
||||||
smaller = lhs < rhs;
|
smaller = lhs < rhs;
|
||||||
if (lhs < rhs)
|
if (smaller)
|
||||||
return -1;
|
return -1;
|
||||||
else if (lhs == rhs)
|
else if (lhs == rhs)
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user