Merge pull request #5180 from ethereum/cpp-cleanup

Some C++ cleanup
This commit is contained in:
chriseth
2018-10-10 11:43:42 +02:00
committed by GitHub
13 changed files with 13 additions and 16 deletions
+2 -2
View File
@@ -20,7 +20,7 @@
* Solidity parser.
*/
#include <ctype.h>
#include <cctype>
#include <vector>
#include <libevmasm/SourceLocation.h>
#include <libsolidity/parsing/Parser.h>
@@ -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();