From cbc5431d62e3fe9166f18395dce3ddf2af0906d3 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sat, 28 Mar 2026 21:32:23 +0000 Subject: Switch modules from reference<> to shared_ptr<> and weak_ptr<>. --- modules/httpd_acl.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'modules/httpd_acl.cpp') diff --git a/modules/httpd_acl.cpp b/modules/httpd_acl.cpp index b65b3d954..083fe0b4d 100644 --- a/modules/httpd_acl.cpp +++ b/modules/httpd_acl.cpp @@ -59,8 +59,8 @@ private: public: ModuleHTTPAccessList() : Module(VF_VENDOR, "Allows the server administrator to control who can access resources served over HTTP with the httpd module.") - , HTTPACLEventListener(this) - , API(this) + , HTTPACLEventListener(weak_from_this()) + , API(weak_from_this()) { } @@ -94,7 +94,7 @@ public: } else { - throw ModuleException(this, "Invalid HTTP ACL type '" + type + "'"); + throw ModuleException(weak_from_this(), "Invalid HTTP ACL type '" + type + "'"); } } @@ -117,7 +117,7 @@ public: << "