diff options
author | Tobias Nießen <tniessen@tnie.de> | 2022-07-18 13:39:30 +0300 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2022-07-31 19:10:44 +0300 |
commit | eaa611c53a7759fb03ba3650104909166c25ebd4 (patch) | |
tree | 86b6d87f82e79f5d41fd07b66338faaad83765f8 /src/crypto | |
parent | 80d562b051ee9d360ad2a957c60c77d3fbe3ec79 (diff) |
src: use named enum instead of typedef
PR-URL: https://github.com/nodejs/node/pull/43880
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Minwoo Jung <nodecorelab@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'src/crypto')
-rw-r--r-- | src/crypto/crypto_sig.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/crypto/crypto_sig.h b/src/crypto/crypto_sig.h index b6502ba4296..1a4cda42272 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<v8::Object> wrap); |