diff options
author | Gav Wood <i@gavwood.com> | 2014-09-05 23:09:58 +0800 |
---|---|---|
committer | Gav Wood <i@gavwood.com> | 2014-09-05 23:09:58 +0800 |
commit | 38dd3fb050cae0bc28205ecff8591fa44605efc7 (patch) | |
tree | a7a8c238e98f1ec02fe02aaf51c645bb494a27d3 /MemTrie.cpp | |
parent | d0d1e91a685dda428af9dd41a3afd83424dc5775 (diff) | |
download | dexon-solidity-38dd3fb050cae0bc28205ecff8591fa44605efc7.tar dexon-solidity-38dd3fb050cae0bc28205ecff8591fa44605efc7.tar.gz dexon-solidity-38dd3fb050cae0bc28205ecff8591fa44605efc7.tar.bz2 dexon-solidity-38dd3fb050cae0bc28205ecff8591fa44605efc7.tar.lz dexon-solidity-38dd3fb050cae0bc28205ecff8591fa44605efc7.tar.xz dexon-solidity-38dd3fb050cae0bc28205ecff8591fa44605efc7.tar.zst dexon-solidity-38dd3fb050cae0bc28205ecff8591fa44605efc7.zip |
Project-wide reorganisation of namespaces.
Diffstat (limited to 'MemTrie.cpp')
-rw-r--r-- | MemTrie.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/MemTrie.cpp b/MemTrie.cpp index 5c819ffb..b5d875ac 100644 --- a/MemTrie.cpp +++ b/MemTrie.cpp @@ -25,9 +25,10 @@ #include <libethcore/SHA3.h> #include <libethcore/CommonEth.h> using namespace std; -using namespace eth; +using namespace dev; +using namespace dev::eth; -namespace eth +namespace dev { #define ENABLE_DEBUG_PRINT 0 @@ -54,7 +55,7 @@ public: #endif /// 256-bit hash of the node - this is a SHA-3/256 hash of the RLP of the node. - h256 hash256() const { RLPStream s; makeRLP(s); return eth::sha3(s.out()); } + h256 hash256() const { RLPStream s; makeRLP(s); return dev::eth::sha3(s.out()); } bytes rlp() const { RLPStream s; makeRLP(s); return s.out(); } void mark() { m_hash256 = h256(); } @@ -199,7 +200,7 @@ void MemTrieNode::putRLP(RLPStream& _parentStream) const if (s.out().size() < 32) _parentStream.APPEND_CHILD(s.out()); else - _parentStream << eth::sha3(s.out()); + _parentStream << dev::eth::sha3(s.out()); } void TrieBranchNode::makeRLP(RLPStream& _intoStream) const @@ -228,7 +229,7 @@ void TrieInfixNode::makeRLP(RLPStream& _intoStream) const MemTrieNode* MemTrieNode::newBranch(bytesConstRef _k1, std::string const& _v1, bytesConstRef _k2, std::string const& _v2) { - uint prefix = commonPrefix(_k1, _k2); + unsigned prefix = commonPrefix(_k1, _k2); MemTrieNode* ret; if (_k1.size() == prefix) @@ -347,7 +348,7 @@ MemTrieNode* TrieInfixNode::insert(bytesConstRef _key, std::string const& _value } else { - uint prefix = commonPrefix(_key, m_ext); + unsigned prefix = commonPrefix(_key, m_ext); if (prefix) { // one infix becomes two infixes, then insert into the second @@ -478,3 +479,4 @@ void MemTrie::remove(std::string const& _key) } } + |