mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-09 10:39:02 -04:00
Make Cullable::Deleter const.
This commit is contained in:
parent
a6ea949d4d
commit
bf53ff5084
@ -36,7 +36,7 @@ public:
|
||||
/** Deleter that queues an object for deletion at the end of the current main loop iteration. */
|
||||
struct Deleter final
|
||||
{
|
||||
void operator()(Cullable* item);
|
||||
void operator()(Cullable* item) const;
|
||||
};
|
||||
|
||||
/** Dummy class to help ensure all superclasses get culled. */
|
||||
|
@ -458,7 +458,7 @@ public:
|
||||
void UpdateTime();
|
||||
};
|
||||
|
||||
inline void Cullable::Deleter::operator()(Cullable* item)
|
||||
inline void Cullable::Deleter::operator()(Cullable* item) const
|
||||
{
|
||||
if (item)
|
||||
ServerInstance->GlobalCulls.AddItem(item);
|
||||
|
Loading…
x
Reference in New Issue
Block a user