diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-08-22 05:05:24 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-08-22 17:51:46 +0800 |
commit | 9897c56b2cacf162f8fd41d60e91b7f71863f8d5 (patch) | |
tree | fb0f04a445940004a8a45e03bc98d149c5cc71a7 /libsolidity/codegen | |
parent | 2a5772cff7d03de0d02c5358a6a6755e8f802697 (diff) | |
download | dexon-solidity-9897c56b2cacf162f8fd41d60e91b7f71863f8d5.tar.gz dexon-solidity-9897c56b2cacf162f8fd41d60e91b7f71863f8d5.tar.zst dexon-solidity-9897c56b2cacf162f8fd41d60e91b7f71863f8d5.zip |
Mark a lot of functions static (where possible)
Diffstat (limited to 'libsolidity/codegen')
-rw-r--r-- | libsolidity/codegen/ABIFunctions.cpp | 2 | ||||
-rw-r--r-- | libsolidity/codegen/ABIFunctions.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libsolidity/codegen/ABIFunctions.cpp b/libsolidity/codegen/ABIFunctions.cpp index 2313473f..a2938ed7 100644 --- a/libsolidity/codegen/ABIFunctions.cpp +++ b/libsolidity/codegen/ABIFunctions.cpp @@ -1056,7 +1056,7 @@ string ABIFunctions::createFunction(string const& _name, function<string ()> con return _name; } -size_t ABIFunctions::headSize(TypePointers const& _targetTypes) const +size_t ABIFunctions::headSize(TypePointers const& _targetTypes) { size_t headSize = 0; for (auto const& t: _targetTypes) diff --git a/libsolidity/codegen/ABIFunctions.h b/libsolidity/codegen/ABIFunctions.h index 103df5ae..e43e2323 100644 --- a/libsolidity/codegen/ABIFunctions.h +++ b/libsolidity/codegen/ABIFunctions.h @@ -162,7 +162,7 @@ private: std::string createFunction(std::string const& _name, std::function<std::string()> const& _creator); /// @returns the size of the static part of the encoding of the given types. - size_t headSize(TypePointers const& _targetTypes) const; + static size_t headSize(TypePointers const& _targetTypes); /// Map from function name to code for a multi-use function. std::map<std::string, std::string> m_requestedFunctions; |