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:
@@ -223,12 +223,6 @@ GncOptionQofInstanceValue::reset_default_value()
|
|||||||
m_value = m_default_value;
|
m_value = m_default_value;
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool
|
|
||||||
operator==(const GncGUID& l, const GncGUID& r)
|
|
||||||
{
|
|
||||||
return guid_equal(&l, &r);
|
|
||||||
}
|
|
||||||
|
|
||||||
bool
|
bool
|
||||||
GncOptionQofInstanceValue::is_changed() const noexcept
|
GncOptionQofInstanceValue::is_changed() const noexcept
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -23,6 +23,7 @@
|
|||||||
\********************************************************************/
|
\********************************************************************/
|
||||||
|
|
||||||
#include "guid.hpp"
|
#include "guid.hpp"
|
||||||
|
#include "guid.h"
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
# include <config.h>
|
# include <config.h>
|
||||||
@@ -431,3 +432,9 @@ GUID::operator GncGUID () const noexcept
|
|||||||
}
|
}
|
||||||
|
|
||||||
} // namespace gnc
|
} // 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;
|
bool operator == (GUID const &, GncGUID const &) noexcept;
|
||||||
|
|
||||||
|
|
||||||
}
|
} // namespace gnc
|
||||||
|
|
||||||
|
bool operator== (const GncGUID&, const GncGUID&);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user