diff options
author | Christian <c@ethdev.com> | 2014-10-24 22:43:11 +0800 |
---|---|---|
committer | Christian <c@ethdev.com> | 2014-10-24 22:43:11 +0800 |
commit | f8038792cab8ed7ffb75b12d01cbe8f5a93555fc (patch) | |
tree | 86a6f5e8638199bb78150918d9c228a7cfa54ffe /ASTPrinter.cpp | |
parent | 1ae1fc66e2d02fc17d4148a553a59ead402b9f54 (diff) | |
download | dexon-solidity-f8038792cab8ed7ffb75b12d01cbe8f5a93555fc.tar.gz dexon-solidity-f8038792cab8ed7ffb75b12d01cbe8f5a93555fc.tar.zst dexon-solidity-f8038792cab8ed7ffb75b12d01cbe8f5a93555fc.zip |
Remove nullptr comparisons.
Diffstat (limited to 'ASTPrinter.cpp')
-rw-r--r-- | ASTPrinter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ASTPrinter.cpp b/ASTPrinter.cpp index c512bd3f..6d782f27 100644 --- a/ASTPrinter.cpp +++ b/ASTPrinter.cpp @@ -243,7 +243,7 @@ bool ASTPrinter::visit(ElementaryTypeNameExpression& _node) bool ASTPrinter::visit(Literal& _node) { char const* tokenString = Token::toString(_node.getToken()); - if (tokenString == nullptr) + if (!tokenString) tokenString = "[no token]"; writeLine(std::string("Literal, token: ") + tokenString + " value: " + _node.getValue()); printSourcePart(_node); |