aboutsummaryrefslogtreecommitdiffstats
path: root/AST.h
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 /AST.h
parent1ae1fc66e2d02fc17d4148a553a59ead402b9f54 (diff)
downloaddexon-solidity-f8038792cab8ed7ffb75b12d01cbe8f5a93555fc.tar.gz
dexon-solidity-f8038792cab8ed7ffb75b12d01cbe8f5a93555fc.tar.zst
dexon-solidity-f8038792cab8ed7ffb75b12d01cbe8f5a93555fc.zip
Remove nullptr comparisons.
Diffstat (limited to 'AST.h')
-rw-r--r--AST.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/AST.h b/AST.h
index e94137a8..df146ab1 100644
--- a/AST.h
+++ b/AST.h
@@ -169,7 +169,7 @@ public:
Declaration(_location, _name), m_typeName(_type) {}
virtual void accept(ASTVisitor& _visitor) override;
- bool isTypeGivenExplicitly() const { return m_typeName.get() != nullptr; }
+ bool isTypeGivenExplicitly() const { return bool(m_typeName); }
TypeName* getTypeName() const { return m_typeName.get(); }
//! Returns the declared or inferred type. Can be an empty pointer if no type was explicitly