aboutsummaryrefslogtreecommitdiffstats
path: root/NameAndTypeResolver.cpp
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2015-06-17 18:01:39 +0800
committerchriseth <c@ethdev.com>2015-06-17 20:25:00 +0800
commit1ff8dbebab1aa450e6800fd188e21aa7944b898c (patch)
tree0b1c58115344a07fd4bced57c66c2907258ac21b /NameAndTypeResolver.cpp
parent17efc422996979289a9c5aa02959066578b09aa8 (diff)
downloaddexon-solidity-1ff8dbebab1aa450e6800fd188e21aa7944b898c.tar
dexon-solidity-1ff8dbebab1aa450e6800fd188e21aa7944b898c.tar.gz
dexon-solidity-1ff8dbebab1aa450e6800fd188e21aa7944b898c.tar.bz2
dexon-solidity-1ff8dbebab1aa450e6800fd188e21aa7944b898c.tar.lz
dexon-solidity-1ff8dbebab1aa450e6800fd188e21aa7944b898c.tar.xz
dexon-solidity-1ff8dbebab1aa450e6800fd188e21aa7944b898c.tar.zst
dexon-solidity-1ff8dbebab1aa450e6800fd188e21aa7944b898c.zip
Accessors for strings.
Diffstat (limited to 'NameAndTypeResolver.cpp')
-rw-r--r--NameAndTypeResolver.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/NameAndTypeResolver.cpp b/NameAndTypeResolver.cpp
index e6079796..87f9da7e 100644
--- a/NameAndTypeResolver.cpp
+++ b/NameAndTypeResolver.cpp
@@ -439,7 +439,7 @@ void ReferencesResolver::endVisit(VariableDeclaration& _variable)
"Location has to be calldata for external functions "
"(remove the \"memory\" or \"storage\" keyword)."
));
- type = ref->copyForLocation(ReferenceType::Location::CallData, true);
+ type = ref->copyForLocation(DataLocation::CallData, true);
}
else if (_variable.isCallableParameter() && _variable.getScope()->isPublic())
{
@@ -449,7 +449,7 @@ void ReferencesResolver::endVisit(VariableDeclaration& _variable)
"Location has to be memory for publicly visible functions "
"(remove the \"storage\" keyword)."
));
- type = ref->copyForLocation(ReferenceType::Location::Memory, true);
+ type = ref->copyForLocation(DataLocation::Memory, true);
}
else
{
@@ -458,8 +458,8 @@ void ReferencesResolver::endVisit(VariableDeclaration& _variable)
bool isPointer = !_variable.isStateVariable();
type = ref->copyForLocation(
loc == Location::Memory ?
- ReferenceType::Location::Memory :
- ReferenceType::Location::Storage,
+ DataLocation::Memory :
+ DataLocation::Storage,
isPointer
);
}