From cbdcd051c63c4ff98dfb4ff45388e722f8d0a2de Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Fri, 27 Mar 2026 13:10:26 +0000 Subject: Switch the extensible system to using shared pointers. --- modules/dccallow.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'modules/dccallow.cpp') 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(item); + const auto& list = std::static_pointer_cast(item); + std::string buf; for (const auto& entry : *list) { -- cgit v1.3.1-10-gc9f91