diff options
author | chriseth <c@ethdev.com> | 2015-06-17 18:01:39 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2015-06-17 20:25:00 +0800 |
commit | 1ff8dbebab1aa450e6800fd188e21aa7944b898c (patch) | |
tree | 0b1c58115344a07fd4bced57c66c2907258ac21b /NameAndTypeResolver.cpp | |
parent | 17efc422996979289a9c5aa02959066578b09aa8 (diff) | |
download | dexon-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.cpp | 8 |
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 ); } |