mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
size()!=0 -> !empty()
This commit is contained in:
parent
beba2705ba
commit
52a442a100
2
AST.cpp
2
AST.cpp
@ -323,7 +323,7 @@ void InheritanceSpecifier::checkTypeRequirements()
|
||||
ContractDefinition const* base = dynamic_cast<ContractDefinition const*>(m_baseName->getReferencedDeclaration());
|
||||
solAssert(base, "Base contract not available.");
|
||||
TypePointers parameterTypes = ContractType(*base).getConstructorType()->getParameterTypes();
|
||||
if (m_arguments.size() != 0 && parameterTypes.size() != m_arguments.size())
|
||||
if (!m_arguments.empty() && parameterTypes.size() != m_arguments.size())
|
||||
BOOST_THROW_EXCEPTION(createTypeError("Wrong argument count for constructor call."));
|
||||
for (size_t i = 0; i < m_arguments.size(); ++i)
|
||||
if (!m_arguments[i]->getType()->isImplicitlyConvertibleTo(*parameterTypes[i]))
|
||||
|
Loading…
Reference in New Issue
Block a user