From bf53ff50847b5a413c16b383fae0241f94874371 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Fri, 13 Sep 2024 15:40:43 +0100 Subject: Make Cullable::Deleter const. --- include/cull.h | 2 +- include/inspircd.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/cull.h b/include/cull.h index 94797c3cb..f4ed8987d 100644 --- a/include/cull.h +++ b/include/cull.h @@ -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. */ diff --git a/include/inspircd.h b/include/inspircd.h index d9fee746c..9a2fc34f4 100644 --- a/include/inspircd.h +++ b/include/inspircd.h @@ -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); -- cgit v1.3.1-10-gc9f91