aboutsummaryrefslogtreecommitdiff
path: root/modules/dccallow.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2026-03-27 13:10:26 +0000
committerGravatar Sadie Powell2026-03-27 13:10:26 +0000
commitcbdcd051c63c4ff98dfb4ff45388e722f8d0a2de (patch)
treef2c61a977edce634fc28b9dead3d8bfa5782211c /modules/dccallow.cpp
parentMove CUList to be declared inside User. (diff)
Switch the extensible system to using shared pointers.
Diffstat (limited to 'modules/dccallow.cpp')
-rw-r--r--modules/dccallow.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/dccallow.cpp b/modules/dccallow.cpp
index f52e16851..f17919f75 100644
--- a/modules/dccallow.cpp
+++ b/modules/dccallow.cpp
@@ -168,9 +168,10 @@ public:
Set(user, list);
}
- std::string ToInternal(const Extensible* container, void* item) const noexcept override
+ std::string ToInternal(const Extensible* container, const ExtensionPtr& item) const noexcept override
{
- auto* list = static_cast<dccallowlist*>(item);
+ const auto& list = std::static_pointer_cast<dccallowlist>(item);
+
std::string buf;
for (const auto& entry : *list)
{