mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Use empty() instead of size() == 0
This commit is contained in:
@@ -97,7 +97,7 @@ assembly::Statement Parser::parseStatement()
|
||||
fatalParserError("Only one default case allowed.");
|
||||
else if (m_scanner->currentToken() == Token::Case)
|
||||
fatalParserError("Case not allowed after default case.");
|
||||
if (_switch.cases.size() == 0)
|
||||
if (_switch.cases.empty())
|
||||
fatalParserError("Switch statement without any cases.");
|
||||
_switch.location.end = _switch.cases.back().body.location.end;
|
||||
return _switch;
|
||||
|
||||
Reference in New Issue
Block a user