mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-03 16:25:54 +08:00
refs #104 using CValueObject::compare in BlackMisc::equalQVariants
This commit is contained in:
@@ -165,9 +165,7 @@ bool BlackMisc::equalQVariants(const QVariant &v1, const QVariant &v2)
|
|||||||
const CValueObject *cs2 = CValueObject::fromQVariant(v2);
|
const CValueObject *cs2 = CValueObject::fromQVariant(v2);
|
||||||
if (cs1 && cs2)
|
if (cs1 && cs2)
|
||||||
{
|
{
|
||||||
uint h1 = cs1->getValueHash();
|
return compare(*cs1, *cs2) == 0;
|
||||||
uint h2 = cs2->getValueHash();
|
|
||||||
return h1 == h2;
|
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user