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/parsing | |
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/parsing')
-rw-r--r-- | libsolidity/parsing/Parser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/parsing/Parser.cpp b/libsolidity/parsing/Parser.cpp index 1228b833..f81e70a0 100644 --- a/libsolidity/parsing/Parser.cpp +++ b/libsolidity/parsing/Parser.cpp @@ -554,7 +554,7 @@ ASTPointer<EnumDefinition> Parser::parseEnumDefinition() if (m_scanner->currentToken() != Token::Identifier) fatalParserError(string("Expected identifier after ','")); } - if (members.size() == 0) + if (members.empty()) parserError({"enum with no members is not allowed."}); nodeFactory.markEndPosition(); |