Move all file specific globals to anonymous namespace

This commit is contained in:
Alex Beregszaszi committed 2017-08-29 11:09:18 +01:00
1 parent b364bd048f
commit 7fb4a64136
8 files changed
+36 -5

No files matched your search

+4
View File
@@ -24,6 +24,8 @@
using namespace std;
using namespace dev;
namespace
{
bytes toLittleEndian(size_t _size)
{
@@ -59,6 +61,8 @@ h256 swarmHashIntermediate(string const& _input, size_t _offset, size_t _length)
return swarmHashSimple(ref, _length);
}
}
h256 dev::swarmHash(string const& _input)
{
return swarmHashIntermediate(_input, 0, _input.size());