diff options
| author | 2022-09-04 11:20:16 +0100 | |
|---|---|---|
| committer | 2022-09-04 11:28:10 +0100 | |
| commit | 7076a766db6759ac698fea880616ede9545207cc (patch) | |
| tree | 24b03370daca1f5ff92a728d9e6abe135a3a2359 /src/modules/m_sslinfo.cpp | |
| parent | Fix some warnings noticed by the readability-* clang-tidy checkers. (diff) | |
Use auto in places where it is really obvious what the type is.
Diffstat (limited to 'src/modules/m_sslinfo.cpp')
| -rw-r--r-- | src/modules/m_sslinfo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<User*>(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); |
