aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGravatar Sadie Powell2024-09-13 15:40:43 +0100
committerGravatar Sadie Powell2024-09-13 15:40:43 +0100
commitbf53ff50847b5a413c16b383fae0241f94874371 (patch)
tree3dd0a96aec90e265fd9b694d85f99491c96e817e /include
parentUse reference<>::ptr() in more places. (diff)
Make Cullable::Deleter const.
Diffstat (limited to 'include')
-rw-r--r--include/cull.h2
-rw-r--r--include/inspircd.h2
2 files changed, 2 insertions, 2 deletions
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);