aboutsummaryrefslogtreecommitdiffstats
path: root/ASTPrinter.cpp
diff options
context:
space:
mode:
authorChristian <c@ethdev.com>2014-10-24 22:43:11 +0800
committerChristian <c@ethdev.com>2014-10-24 22:43:11 +0800
commitf8038792cab8ed7ffb75b12d01cbe8f5a93555fc (patch)
tree86a6f5e8638199bb78150918d9c228a7cfa54ffe /ASTPrinter.cpp
parent1ae1fc66e2d02fc17d4148a553a59ead402b9f54 (diff)
downloaddexon-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.cpp2
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);