From c9390aaaf0aa18e994d64c09b166b5b4d83b5f3b Mon Sep 17 00:00:00 2001 From: Fred Morcos Date: Tue, 2 Jul 2024 22:19:17 +0200 Subject: [PATCH] Formatting and minor fix in misc.hh --- pdns/misc.cc | 2 +- pdns/misc.hh | 12 +++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/pdns/misc.cc b/pdns/misc.cc index 8b20629517..29adfc51fa 100644 --- a/pdns/misc.cc +++ b/pdns/misc.cc @@ -284,7 +284,7 @@ auto pdns::OpenSSL::error(const std::string& errorMessage) -> std::runtime_error } } #endif - return std::runtime_error(fullErrorMessage); + return std::runtime_error{fullErrorMessage}; } auto pdns::OpenSSL::error(const std::string& componentName, const std::string& errorMessage) -> std::runtime_error diff --git a/pdns/misc.hh b/pdns/misc.hh index 86e620b8f9..39fdb6c086 100644 --- a/pdns/misc.hh +++ b/pdns/misc.hh @@ -46,7 +46,17 @@ class DNSName; // Do not change to "using TSIGHashEnum ..." until you know CodeQL does not choke on it -typedef enum { TSIG_MD5, TSIG_SHA1, TSIG_SHA224, TSIG_SHA256, TSIG_SHA384, TSIG_SHA512, TSIG_GSS } TSIGHashEnum; +typedef enum +{ + TSIG_MD5, + TSIG_SHA1, + TSIG_SHA224, + TSIG_SHA256, + TSIG_SHA384, + TSIG_SHA512, + TSIG_GSS, +} TSIGHashEnum; + namespace pdns { /** -- 2.47.2