diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2018-10-09 11:29:37 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2018-10-09 11:29:37 +0800 |
commit | fa0ce6a7e7abd5bbc9bad1dd15f54ea4e9b11f85 (patch) | |
tree | 40d4605d3e6c971f35ae667d5962b8e03b9df144 /libsolidity/codegen | |
parent | 4ab2e03be3e5550a68a2fcf1608cdcb942dd8957 (diff) | |
download | dexon-solidity-fa0ce6a7e7abd5bbc9bad1dd15f54ea4e9b11f85.tar dexon-solidity-fa0ce6a7e7abd5bbc9bad1dd15f54ea4e9b11f85.tar.gz dexon-solidity-fa0ce6a7e7abd5bbc9bad1dd15f54ea4e9b11f85.tar.bz2 dexon-solidity-fa0ce6a7e7abd5bbc9bad1dd15f54ea4e9b11f85.tar.lz dexon-solidity-fa0ce6a7e7abd5bbc9bad1dd15f54ea4e9b11f85.tar.xz dexon-solidity-fa0ce6a7e7abd5bbc9bad1dd15f54ea4e9b11f85.tar.zst dexon-solidity-fa0ce6a7e7abd5bbc9bad1dd15f54ea4e9b11f85.zip |
Use empty() instead of size() == 0
Diffstat (limited to 'libsolidity/codegen')
-rw-r--r-- | libsolidity/codegen/ContractCompiler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/codegen/ContractCompiler.cpp b/libsolidity/codegen/ContractCompiler.cpp index e26bc13a..3a0fccfb 100644 --- a/libsolidity/codegen/ContractCompiler.cpp +++ b/libsolidity/codegen/ContractCompiler.cpp @@ -965,7 +965,7 @@ void ContractCompiler::popScopedVariables(ASTNode const* _node) unsigned stackDiff = m_context.stackHeight() - blockHeight; CompilerUtils(m_context).popStackSlots(stackDiff); m_scopeStackHeight[m_modifierDepth].erase(_node); - if (m_scopeStackHeight[m_modifierDepth].size() == 0) + if (m_scopeStackHeight[m_modifierDepth].empty()) m_scopeStackHeight.erase(m_modifierDepth); } |