mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Speed up GUID equality comparison.
This commit is contained in:
@@ -412,9 +412,7 @@ GUID::operator < (GUID const & other) noexcept
|
||||
|
||||
bool operator == (GUID const & lhs, GncGUID const & rhs) noexcept
|
||||
{
|
||||
auto ret = std::mismatch (lhs.begin (), lhs.end (), rhs.reserved);
|
||||
return ret.first == lhs.end ();
|
||||
|
||||
return lhs.implementation == GUID(rhs).implementation;
|
||||
}
|
||||
|
||||
bool
|
||||
|
||||
Reference in New Issue
Block a user