aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/analysis
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2015-12-15 01:01:40 +0800
committerchriseth <c@ethdev.com>2015-12-15 16:57:05 +0800
commit53da78e6091d9bb0229b4a54a0042e23487550db (patch)
tree7d035c5062719a6678c985573c85ff76a98d7b3b /libsolidity/analysis
parentf8228e8ab116799a1b28ea9cbb01fdd7342b395c (diff)
downloaddexon-solidity-53da78e6091d9bb0229b4a54a0042e23487550db.tar.gz
dexon-solidity-53da78e6091d9bb0229b4a54a0042e23487550db.tar.zst
dexon-solidity-53da78e6091d9bb0229b4a54a0042e23487550db.zip
Style.
Diffstat (limited to 'libsolidity/analysis')
-rw-r--r--libsolidity/analysis/NameAndTypeResolver.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/libsolidity/analysis/NameAndTypeResolver.cpp b/libsolidity/analysis/NameAndTypeResolver.cpp
index ca866ddb..efdb1953 100644
--- a/libsolidity/analysis/NameAndTypeResolver.cpp
+++ b/libsolidity/analysis/NameAndTypeResolver.cpp
@@ -113,7 +113,7 @@ bool NameAndTypeResolver::resolveNamesAndTypes(ContractDefinition& _contract)
if (success)
{
linearizeBaseContracts(_contract);
- std::vector<ContractDefinition const*> properBases(
+ vector<ContractDefinition const*> properBases(
++_contract.annotation().linearizedBaseContracts.begin(),
_contract.annotation().linearizedBaseContracts.end()
);
@@ -380,7 +380,7 @@ void NameAndTypeResolver::reportFatalTypeError(Error const& _e)
}
DeclarationRegistrationHelper::DeclarationRegistrationHelper(
- map<ASTNode const*, std::unique_ptr<DeclarationContainer>>& _scopes,
+ map<ASTNode const*, unique_ptr<DeclarationContainer>>& _scopes,
ASTNode& _astRoot,
ErrorList& _errors
):
@@ -489,9 +489,9 @@ void DeclarationRegistrationHelper::endVisit(EventDefinition&)
void DeclarationRegistrationHelper::enterNewSubScope(Declaration const& _declaration)
{
- map<ASTNode const*, std::unique_ptr<DeclarationContainer>>::iterator iter;
+ map<ASTNode const*, unique_ptr<DeclarationContainer>>::iterator iter;
bool newlyAdded;
- std::unique_ptr<DeclarationContainer> container(new DeclarationContainer(m_currentScope, m_scopes[m_currentScope].get()));
+ unique_ptr<DeclarationContainer> container(new DeclarationContainer(m_currentScope, m_scopes[m_currentScope].get()));
tie(iter, newlyAdded) = m_scopes.emplace(&_declaration, move(container));
solAssert(newlyAdded, "Unable to add new scope.");
m_currentScope = &_declaration;