From 7076a766db6759ac698fea880616ede9545207cc Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sun, 4 Sep 2022 11:20:16 +0100 Subject: Use auto in places where it is really obvious what the type is. --- src/modules/m_sslinfo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/m_sslinfo.cpp') diff --git a/src/modules/m_sslinfo.cpp b/src/modules/m_sslinfo.cpp index 511efe21f..dd054cbf0 100644 --- a/src/modules/m_sslinfo.cpp +++ b/src/modules/m_sslinfo.cpp @@ -88,7 +88,7 @@ public: if (container->extype != this->extype) return; - ssl_cert* cert = new ssl_cert; + auto cert = new ssl_cert(); Set(static_cast(container), cert, false); std::stringstream s(value); @@ -448,7 +448,7 @@ public: } // Create a fake ssl_cert for the user. - ssl_cert* cert = new ssl_cert; + auto cert = new ssl_cert(); if (!hash.empty()) { iter = flags->find("certfp-" + hash); -- cgit v1.3.1-10-gc9f91