aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/parsing
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-10-10 17:43:42 +0800
committerGitHub <noreply@github.com>2018-10-10 17:43:42 +0800
commit06200b4b64c911ea2e0b12076e0fa02093dacbf8 (patch)
tree5465e3be065998e506145d8e7272cc783d185427 /libsolidity/parsing
parentf6f0cecc2f64f4fcda3da467bbe306b5859729aa (diff)
parent6c3d12d85bc7977817e8dc1c5bd0af4b29406b58 (diff)
downloaddexon-solidity-06200b4b64c911ea2e0b12076e0fa02093dacbf8.tar.gz
dexon-solidity-06200b4b64c911ea2e0b12076e0fa02093dacbf8.tar.zst
dexon-solidity-06200b4b64c911ea2e0b12076e0fa02093dacbf8.zip
Merge pull request #5180 from ethereum/cpp-cleanup
Some C++ cleanup
Diffstat (limited to 'libsolidity/parsing')
-rw-r--r--libsolidity/parsing/Parser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libsolidity/parsing/Parser.cpp b/libsolidity/parsing/Parser.cpp
index b390459a..ca9a9b57 100644
--- a/libsolidity/parsing/Parser.cpp
+++ b/libsolidity/parsing/Parser.cpp
@@ -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();