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 /AST.h | |
parent | 1ae1fc66e2d02fc17d4148a553a59ead402b9f54 (diff) | |
download | dexon-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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |