aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/ast/AST.cpp
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-09-04 00:44:41 +0800
committerGitHub <noreply@github.com>2018-09-04 00:44:41 +0800
commit2783905babfbe2fd01ff5f7b2a2499bd13754f10 (patch)
tree6373b9ee28cc664018ebb8a1de9ebc95b9ad4e7d /libsolidity/ast/AST.cpp
parent378f69160884ba23f6876d57a3eb6425bfa1d2cf (diff)
parent551e0bf47cd0a1d1cb24a878f2309fd9f3253d00 (diff)
downloaddexon-solidity-2783905babfbe2fd01ff5f7b2a2499bd13754f10.tar.gz
dexon-solidity-2783905babfbe2fd01ff5f7b2a2499bd13754f10.tar.zst
dexon-solidity-2783905babfbe2fd01ff5f7b2a2499bd13754f10.zip
Merge pull request #4837 from chase1745/default-to-unspecified
Rename `Location::Default` to `Location::Unspecified`
Diffstat (limited to 'libsolidity/ast/AST.cpp')
-rw-r--r--libsolidity/ast/AST.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libsolidity/ast/AST.cpp b/libsolidity/ast/AST.cpp
index 635ab024..8e7a81a6 100644
--- a/libsolidity/ast/AST.cpp
+++ b/libsolidity/ast/AST.cpp
@@ -517,7 +517,7 @@ set<VariableDeclaration::Location> VariableDeclaration::allowedDataLocations() c
using Location = VariableDeclaration::Location;
if (!hasReferenceOrMappingType() || isStateVariable() || isEventParameter())
- return set<Location>{ Location::Default };
+ return set<Location>{ Location::Unspecified };
else if (isStateVariable() && isConstant())
return set<Location>{ Location::Memory };
else if (isExternalCallableParameter())
@@ -546,7 +546,7 @@ set<VariableDeclaration::Location> VariableDeclaration::allowedDataLocations() c
}
else
// Struct members etc.
- return set<Location>{ Location::Default };
+ return set<Location>{ Location::Unspecified };
}
TypePointer VariableDeclaration::type() const