aboutsummaryrefslogtreecommitdiffstats
path: root/AST.cpp
diff options
context:
space:
mode:
authorLiana Husikyan <liana@ethdev.com>2015-05-04 23:18:01 +0800
committerLiana Husikyan <liana@ethdev.com>2015-05-04 23:19:16 +0800
commit0a15157155ec61d767ade9a9f910c9ba7364c0e6 (patch)
treea5ed8d9c4c80df54beab29168d9ced4154134a0f /AST.cpp
parentebaf3c48a64ce7bbd6643b1d115d1c59005d15ec (diff)
downloaddexon-solidity-0a15157155ec61d767ade9a9f910c9ba7364c0e6.tar
dexon-solidity-0a15157155ec61d767ade9a9f910c9ba7364c0e6.tar.gz
dexon-solidity-0a15157155ec61d767ade9a9f910c9ba7364c0e6.tar.bz2
dexon-solidity-0a15157155ec61d767ade9a9f910c9ba7364c0e6.tar.lz
dexon-solidity-0a15157155ec61d767ade9a9f910c9ba7364c0e6.tar.xz
dexon-solidity-0a15157155ec61d767ade9a9f910c9ba7364c0e6.tar.zst
dexon-solidity-0a15157155ec61d767ade9a9f910c9ba7364c0e6.zip
some more style fixes
Diffstat (limited to 'AST.cpp')
-rw-r--r--AST.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/AST.cpp b/AST.cpp
index 50184fa5..da34f3ab 100644
--- a/AST.cpp
+++ b/AST.cpp
@@ -95,9 +95,10 @@ void ContractDefinition::checkTypeRequirements()
{
FixedHash<4> const& hash = it.first;
if (hashes.count(hash))
- BOOST_THROW_EXCEPTION(createTypeError(
- std::string("Function signature hash collision for ") +
- it.second->externalSignature()));
+ BOOST_THROW_EXCEPTION(
+ createTypeError(
+ string("Function signature hash collision for ") + it.second->externalSignature())
+ );
hashes.insert(hash);
}
}
@@ -311,12 +312,12 @@ void ContractDefinition::checkExternalTypeClashes() const
));
}
-std::vector<ASTPointer<EventDefinition>> const& ContractDefinition::getInterfaceEvents() const
+vector<ASTPointer<EventDefinition>> const& ContractDefinition::getInterfaceEvents() const
{
if (!m_interfaceEvents)
{
set<string> eventsSeen;
- m_interfaceEvents.reset(new std::vector<ASTPointer<EventDefinition>>());
+ m_interfaceEvents.reset(new vector<ASTPointer<EventDefinition>>());
for (ContractDefinition const* contract: getLinearizedBaseContracts())
for (ASTPointer<EventDefinition> const& e: contract->getEvents())
if (eventsSeen.count(e->getName()) == 0)
@@ -956,7 +957,7 @@ void Identifier::overloadResolution(TypePointers const& _argumentTypes)
solAssert(!m_referencedDeclaration, "Referenced declaration should be null before overload resolution.");
solAssert(!m_overloadedDeclarations.empty(), "No candidates for overload resolution found.");
- std::vector<Declaration const*> possibles;
+ vector<Declaration const*> possibles;
if (m_overloadedDeclarations.size() == 1)
m_referencedDeclaration = *m_overloadedDeclarations.begin();