From d1301063741b3544342e10fcc02f72417000b50e Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 1 Dec 2022 05:39:24 +0000 Subject: Avoid copying a shared_ptr where not actually necessary. --- include/modules/isupport.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/modules') diff --git a/include/modules/isupport.h b/include/modules/isupport.h index 3af8918c3..ef7916d74 100644 --- a/include/modules/isupport.h +++ b/include/modules/isupport.h @@ -45,7 +45,7 @@ protected: public: virtual void OnBuildISupport(TokenMap& tokens) { } - virtual void OnBuildClassISupport(ConnectClass::Ptr klass, TokenMap& tokens) { } + virtual void OnBuildClassISupport(const ConnectClass::Ptr& klass, TokenMap& tokens) { } }; class ISupport::EventProvider final -- cgit v1.3.1-10-gc9f91