registrar: use the correct member name during move construction
This fixes a build error under clang-19
This commit is contained in:
parent
4ffe636c30
commit
379837bbc7
@ -19,6 +19,10 @@ namespace cruft {
|
|||||||
class registry {
|
class registry {
|
||||||
public:
|
public:
|
||||||
struct cookie {
|
struct cookie {
|
||||||
|
private:
|
||||||
|
KeyT m_key;
|
||||||
|
|
||||||
|
public:
|
||||||
explicit cookie (KeyT const &_key)
|
explicit cookie (KeyT const &_key)
|
||||||
: m_key (_key)
|
: m_key (_key)
|
||||||
{ ; }
|
{ ; }
|
||||||
@ -28,7 +32,7 @@ namespace cruft {
|
|||||||
{ ; }
|
{ ; }
|
||||||
|
|
||||||
cookie (cookie &&rhs) noexcept
|
cookie (cookie &&rhs) noexcept
|
||||||
: m_key (std::move (rhs.key))
|
: m_key (std::move (rhs.m_key))
|
||||||
{ ; }
|
{ ; }
|
||||||
|
|
||||||
cookie& operator= (cookie &&rhs) noexcept
|
cookie& operator= (cookie &&rhs) noexcept
|
||||||
@ -48,9 +52,6 @@ namespace cruft {
|
|||||||
LOG_ERROR ("Unable to remove registration for {}", m_key);
|
LOG_ERROR ("Unable to remove registration for {}", m_key);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
|
||||||
KeyT m_key;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user