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 /Scope.cpp | |
parent | 1ae1fc66e2d02fc17d4148a553a59ead402b9f54 (diff) | |
download | dexon-solidity-f8038792cab8ed7ffb75b12d01cbe8f5a93555fc.tar dexon-solidity-f8038792cab8ed7ffb75b12d01cbe8f5a93555fc.tar.gz dexon-solidity-f8038792cab8ed7ffb75b12d01cbe8f5a93555fc.tar.bz2 dexon-solidity-f8038792cab8ed7ffb75b12d01cbe8f5a93555fc.tar.lz dexon-solidity-f8038792cab8ed7ffb75b12d01cbe8f5a93555fc.tar.xz dexon-solidity-f8038792cab8ed7ffb75b12d01cbe8f5a93555fc.tar.zst dexon-solidity-f8038792cab8ed7ffb75b12d01cbe8f5a93555fc.zip |
Remove nullptr comparisons.
Diffstat (limited to 'Scope.cpp')
-rw-r--r-- | Scope.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -41,7 +41,7 @@ Declaration* Scope::resolveName(ASTString const& _name, bool _recursive) const auto result = m_declarations.find(_name); if (result != m_declarations.end()) return result->second; - if (_recursive && m_outerScope != nullptr) + if (_recursive && m_outerScope) return m_outerScope->resolveName(_name, true); return nullptr; } |