diff options
author | Christian Parpart <christian@parpart.family> | 2018-11-23 20:53:55 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-23 20:53:55 +0800 |
commit | 4fb15c9327c2c4bfae29f0ff23c1ab0b1218f735 (patch) | |
tree | ce0f3568b28b27c2dd57751b34c9f5dcbb52cd23 | |
parent | 616ef8bca8515d565cd9ce24329056c0828e6853 (diff) | |
parent | 58a744f06d407dc9e982b955b794bd8c6f61765c (diff) | |
download | dexon-solidity-4fb15c9327c2c4bfae29f0ff23c1ab0b1218f735.tar.gz dexon-solidity-4fb15c9327c2c4bfae29f0ff23c1ab0b1218f735.tar.zst dexon-solidity-4fb15c9327c2c4bfae29f0ff23c1ab0b1218f735.zip |
Merge pull request #5492 from ethereum/audit-NULL-to-nullptr
Replace all occurrences of NULL with nullptr.
-rw-r--r-- | liblangutil/Token.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/liblangutil/Token.h b/liblangutil/Token.h index 0b7d9f71..d997b138 100644 --- a/liblangutil/Token.h +++ b/liblangutil/Token.h @@ -56,7 +56,7 @@ namespace langutil // TOKEN_LIST takes a list of 3 macros M, all of which satisfy the // same signature M(name, string, precedence), where name is the // symbolic token name, string is the corresponding syntactic symbol -// (or NULL, for literals), and precedence is the precedence (or 0). +// (or nullptr, for literals), and precedence is the precedence (or 0). // The parameters are invoked for token categories as follows: // // T: Non-keyword tokens @@ -211,17 +211,17 @@ namespace langutil T(BytesM, "bytesM", 0) \ T(FixedMxN, "fixedMxN", 0) \ T(UFixedMxN, "ufixedMxN", 0) \ - T(TypesEnd, NULL, 0) /* used as type enum end marker */ \ + T(TypesEnd, nullptr, 0) /* used as type enum end marker */ \ \ /* Literals */ \ K(TrueLiteral, "true", 0) \ K(FalseLiteral, "false", 0) \ - T(Number, NULL, 0) \ - T(StringLiteral, NULL, 0) \ - T(CommentLiteral, NULL, 0) \ + T(Number, nullptr, 0) \ + T(StringLiteral, nullptr, 0) \ + T(CommentLiteral, nullptr, 0) \ \ /* Identifiers (not keywords or future reserved words). */ \ - T(Identifier, NULL, 0) \ + T(Identifier, nullptr, 0) \ \ /* Keywords reserved for future use. */ \ K(Abstract, "abstract", 0) \ @@ -267,7 +267,7 @@ namespace langutil T(IllegalHex, "ILLEGAL_HEX", 0) \ \ /* Scanner-internal use only. */ \ - T(Whitespace, NULL, 0) + T(Whitespace, nullptr, 0) // All token values. // attention! msvc issue: @@ -329,7 +329,7 @@ namespace TokenTraits char const* name(Token tok); // @returns a string corresponding to the JS token string - // (.e., "<" for the token LT) or NULL if the token doesn't + // (.e., "<" for the token LT) or nullptr if the token doesn't // have a (unique) string (e.g. an IDENTIFIER). char const* toString(Token tok); |