From bb5511e8cc7fc5067c693bc8d12ef2a62ce4074b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Mon, 18 Jul 2022 12:39:30 +0200 Subject: [PATCH] src: use named enum instead of typedef PR-URL: https://github.com/nodejs/node/pull/43880 Reviewed-By: Ben Noordhuis Reviewed-By: Darshan Sen Reviewed-By: Minwoo Jung Reviewed-By: Antoine du Hamel Reviewed-By: Filip Skokan Reviewed-By: Ruben Bridgewater --- src/crypto/crypto_sig.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/crypto/crypto_sig.h b/src/crypto/crypto_sig.h index b6502ba4296f0b..1a4cda42272e51 100644 --- a/src/crypto/crypto_sig.h +++ b/src/crypto/crypto_sig.h @@ -20,7 +20,7 @@ enum DSASigEnc { class SignBase : public BaseObject { public: - typedef enum { + enum Error { kSignOk, kSignUnknownDigest, kSignInit, @@ -29,7 +29,7 @@ class SignBase : public BaseObject { kSignPrivateKey, kSignPublicKey, kSignMalformedSignature - } Error; + }; SignBase(Environment* env, v8::Local wrap);