mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Move operator==(const GncGUID&, const GncGUID&) to guid.[ch]pp.
This commit is contained in:
parent
352ab8a0e5
commit
00c560d8f5
@ -223,12 +223,6 @@ GncOptionQofInstanceValue::reset_default_value()
|
||||
m_value = m_default_value;
|
||||
}
|
||||
|
||||
static bool
|
||||
operator==(const GncGUID& l, const GncGUID& r)
|
||||
{
|
||||
return guid_equal(&l, &r);
|
||||
}
|
||||
|
||||
bool
|
||||
GncOptionQofInstanceValue::is_changed() const noexcept
|
||||
{
|
||||
|
@ -23,6 +23,7 @@
|
||||
\********************************************************************/
|
||||
|
||||
#include "guid.hpp"
|
||||
#include "guid.h"
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include <config.h>
|
||||
@ -431,3 +432,9 @@ GUID::operator GncGUID () const noexcept
|
||||
}
|
||||
|
||||
} // namespace gnc
|
||||
|
||||
bool
|
||||
operator==(const GncGUID& lhs, const GncGUID& rhs)
|
||||
{
|
||||
return gnc::GUID{lhs} == gnc::GUID{rhs};
|
||||
}
|
||||
|
@ -62,5 +62,7 @@ bool operator != (GUID const &, GUID const &) noexcept;
|
||||
bool operator == (GUID const &, GncGUID const &) noexcept;
|
||||
|
||||
|
||||
}
|
||||
} // namespace gnc
|
||||
|
||||
bool operator== (const GncGUID&, const GncGUID&);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user