Move operator==(const GncGUID&, const GncGUID&) to guid.[ch]pp.

This commit is contained in:
John Ralls 2023-03-18 13:53:49 -07:00
parent 352ab8a0e5
commit 00c560d8f5
3 changed files with 10 additions and 7 deletions

View File

@ -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
{

View File

@ -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};
}

View File

@ -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