aboutsummaryrefslogtreecommitdiffstats
path: root/NameAndTypeResolver.cpp
diff options
context:
space:
mode:
authorChristian <c@ethdev.com>2014-10-25 01:06:30 +0800
committerChristian <c@ethdev.com>2014-10-25 01:42:38 +0800
commit6a96b6b5ad090ed42aaebafe9ed2dbb922562b37 (patch)
tree3f1a498f427e3711cca12ca30d69f7185a776832 /NameAndTypeResolver.cpp
parent58be273506bf30619952eedf4c469879050c05ed (diff)
downloaddexon-solidity-6a96b6b5ad090ed42aaebafe9ed2dbb922562b37.tar.gz
dexon-solidity-6a96b6b5ad090ed42aaebafe9ed2dbb922562b37.tar.zst
dexon-solidity-6a96b6b5ad090ed42aaebafe9ed2dbb922562b37.zip
Removed std:: where it made sense.
Diffstat (limited to 'NameAndTypeResolver.cpp')
-rw-r--r--NameAndTypeResolver.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/NameAndTypeResolver.cpp b/NameAndTypeResolver.cpp
index edd946df..9626ca84 100644
--- a/NameAndTypeResolver.cpp
+++ b/NameAndTypeResolver.cpp
@@ -25,6 +25,8 @@
#include <libsolidity/AST.h>
#include <libsolidity/Exceptions.h>
+using namespace std;
+
namespace dev
{
namespace solidity
@@ -67,7 +69,7 @@ Declaration* NameAndTypeResolver::getNameFromCurrentScope(ASTString const& _name
}
-DeclarationRegistrationHelper::DeclarationRegistrationHelper(std::map<ASTNode*, Scope>& _scopes,
+DeclarationRegistrationHelper::DeclarationRegistrationHelper(map<ASTNode*, Scope>& _scopes,
ASTNode& _astRoot):
m_scopes(_scopes), m_currentScope(&m_scopes[nullptr])
{
@@ -119,9 +121,9 @@ void DeclarationRegistrationHelper::endVisit(VariableDeclaration&)
void DeclarationRegistrationHelper::enterNewSubScope(ASTNode& _node)
{
- std::map<ASTNode*, Scope>::iterator iter;
+ map<ASTNode*, Scope>::iterator iter;
bool newlyAdded;
- std::tie(iter, newlyAdded) = m_scopes.emplace(&_node, Scope(m_currentScope));
+ tie(iter, newlyAdded) = m_scopes.emplace(&_node, Scope(m_currentScope));
assert(newlyAdded);
m_currentScope = &iter->second;
}