mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 21:15:33 +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);
|
||||
if (cs1 && cs2)
|
||||
{
|
||||
uint h1 = cs1->getValueHash();
|
||||
uint h2 = cs2->getValueHash();
|
||||
return h1 == h2;
|
||||
return compare(*cs1, *cs2) == 0;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user