aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/analysis/ReferencesResolver.cpp
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2015-11-26 21:47:28 +0800
committerchriseth <c@ethdev.com>2015-11-26 21:47:28 +0800
commite06768e8b580d009b9a9905f70ae2d8814699115 (patch)
tree1eb3bec6140d9b2e1ee57f62343dbc9c70d84c78 /libsolidity/analysis/ReferencesResolver.cpp
parent6a2a946200f3806d5daefa0220002ae934ea0ee3 (diff)
downloaddexon-solidity-e06768e8b580d009b9a9905f70ae2d8814699115.tar
dexon-solidity-e06768e8b580d009b9a9905f70ae2d8814699115.tar.gz
dexon-solidity-e06768e8b580d009b9a9905f70ae2d8814699115.tar.bz2
dexon-solidity-e06768e8b580d009b9a9905f70ae2d8814699115.tar.lz
dexon-solidity-e06768e8b580d009b9a9905f70ae2d8814699115.tar.xz
dexon-solidity-e06768e8b580d009b9a9905f70ae2d8814699115.tar.zst
dexon-solidity-e06768e8b580d009b9a9905f70ae2d8814699115.zip
Fix MSVC errors and warnings.
Diffstat (limited to 'libsolidity/analysis/ReferencesResolver.cpp')
-rw-r--r--libsolidity/analysis/ReferencesResolver.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/libsolidity/analysis/ReferencesResolver.cpp b/libsolidity/analysis/ReferencesResolver.cpp
index 408212f1..f0afc4f9 100644
--- a/libsolidity/analysis/ReferencesResolver.cpp
+++ b/libsolidity/analysis/ReferencesResolver.cpp
@@ -49,6 +49,7 @@ bool ReferencesResolver::visit(UserDefinedTypeName const& _typeName)
fatalDeclarationError(_typeName.location(), "Identifier not found or not unique.");
_typeName.annotation().referencedDeclaration = declaration;
+
_typeName.annotation().contractScope = m_currentContract;
return true;
}
@@ -59,7 +60,7 @@ bool ReferencesResolver::resolve(ASTNode& _root)
{
_root.accept(*this);
}
- catch (FatalError const& e)
+ catch (FatalError const&)
{
solAssert(m_errorOccurred, "");
}