From: Fred Morcos Date: Tue, 2 Jul 2024 20:19:17 +0000 (+0200) Subject: Formatting and minor fix in misc.hh X-Git-Tag: rec-5.2.0-alpha1~199^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c9390aaaf0aa18e994d64c09b166b5b4d83b5f3b;p=thirdparty%2Fpdns.git Formatting and minor fix in misc.hh --- 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 { /**