]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Formatting and minor fix in misc.hh
authorFred Morcos <fred.morcos@open-xchange.com>
Tue, 2 Jul 2024 20:19:17 +0000 (22:19 +0200)
committerFred Morcos <fred.morcos@open-xchange.com>
Tue, 2 Jul 2024 20:24:28 +0000 (22:24 +0200)
pdns/misc.cc
pdns/misc.hh

index 8b206295177dfe4a66c11063f300478e0afff827..29adfc51fa1cd7d73ff2f4f48bd9535b317bd474 100644 (file)
@@ -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
index 86e620b8f99c59afd177f05b3f77fe45843d38e5..39fdb6c086807e81f4280ec312545b7d36259201 100644 (file)
 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
 {
 /**