diff options
author | LianaHus <liana@ethdev.com> | 2015-09-01 00:44:29 +0800 |
---|---|---|
committer | LianaHus <liana@ethdev.com> | 2015-09-08 19:12:00 +0800 |
commit | 1b5e6fc9e76ad3cf30e6e7bfc0e868dbb5267ff4 (patch) | |
tree | 6ecb1323bec51a67a53d63bfd250f4ccfcee926c /libsolidity/CompilerUtils.h | |
parent | 6f4a39c183a905b8e07da59c17bfd25c2febbf7f (diff) | |
download | dexon-solidity-1b5e6fc9e76ad3cf30e6e7bfc0e868dbb5267ff4.tar dexon-solidity-1b5e6fc9e76ad3cf30e6e7bfc0e868dbb5267ff4.tar.gz dexon-solidity-1b5e6fc9e76ad3cf30e6e7bfc0e868dbb5267ff4.tar.bz2 dexon-solidity-1b5e6fc9e76ad3cf30e6e7bfc0e868dbb5267ff4.tar.lz dexon-solidity-1b5e6fc9e76ad3cf30e6e7bfc0e868dbb5267ff4.tar.xz dexon-solidity-1b5e6fc9e76ad3cf30e6e7bfc0e868dbb5267ff4.tar.zst dexon-solidity-1b5e6fc9e76ad3cf30e6e7bfc0e868dbb5267ff4.zip |
renamed getter functions
Diffstat (limited to 'libsolidity/CompilerUtils.h')
-rw-r--r-- | libsolidity/CompilerUtils.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libsolidity/CompilerUtils.h b/libsolidity/CompilerUtils.h index dbb00a1d..0875ddd2 100644 --- a/libsolidity/CompilerUtils.h +++ b/libsolidity/CompilerUtils.h @@ -131,8 +131,8 @@ public: void popStackSlots(size_t _amount); template <class T> - static unsigned getSizeOnStack(std::vector<T> const& _variables); - static unsigned getSizeOnStack(std::vector<std::shared_ptr<Type const>> const& _variableTypes); + static unsigned sizeOnStack(std::vector<T> const& _variables); + static unsigned sizeOnStack(std::vector<std::shared_ptr<Type const>> const& _variableTypes); /// Appends code that computes tha SHA3 hash of the topmost stack element of 32 byte type. void computeHashStatic(); @@ -166,11 +166,11 @@ private: template <class T> -unsigned CompilerUtils::getSizeOnStack(std::vector<T> const& _variables) +unsigned CompilerUtils::sizeOnStack(std::vector<T> const& _variables) { unsigned size = 0; for (T const& variable: _variables) - size += variable->getType()->getSizeOnStack(); + size += variable->type()->sizeOnStack(); return size; } |