mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-27 08:05:41 +00:00
timestamp: Implement operator!= in terms of operator==
Same behavior, less code.
This commit is contained in:
parent
3ca9d578b3
commit
987b11a1d2
|
@ -216,11 +216,7 @@ bool Timestamp::operator==(const Timestamp& other) const
|
||||||
|
|
||||||
bool Timestamp::operator!=(const Timestamp& other) const
|
bool Timestamp::operator!=(const Timestamp& other) const
|
||||||
{
|
{
|
||||||
#if defined(WIN32)
|
return !operator==(other);
|
||||||
return std::memcmp(&m_value, &other.m_value, sizeof(m_value)) != 0;
|
|
||||||
#else
|
|
||||||
return std::memcmp(&m_value, &other.m_value, sizeof(m_value)) != 0;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Timestamp::operator<(const Timestamp& other) const
|
bool Timestamp::operator<(const Timestamp& other) const
|
||||||
|
|
Loading…
Reference in a new issue