Skip to content

Commit

Permalink
src: use named enum instead of typedef
Browse files Browse the repository at this point in the history
PR-URL: #43880
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Darshan Sen <[email protected]>
Reviewed-By: Minwoo Jung <[email protected]>
Reviewed-By: Antoine du Hamel <[email protected]>
Reviewed-By: Filip Skokan <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
  • Loading branch information
tniessen authored and targos committed Jul 31, 2022
1 parent 79afb4d commit 91d5012
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/crypto/crypto_sig.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ enum DSASigEnc {

class SignBase : public BaseObject {
public:
typedef enum {
enum Error {
kSignOk,
kSignUnknownDigest,
kSignInit,
Expand All @@ -29,7 +29,7 @@ class SignBase : public BaseObject {
kSignPrivateKey,
kSignPublicKey,
kSignMalformedSignature
} Error;
};

SignBase(Environment* env, v8::Local<v8::Object> wrap);

Expand Down

0 comments on commit 91d5012

Please sign in to comment.