aboutsummaryrefslogtreecommitdiffstats
path: root/libdevcore/CommonIO.cpp
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2017-08-29 20:07:24 +0800
committerGitHub <noreply@github.com>2017-08-29 20:07:24 +0800
commit2d39a42d37cd03e62d0295e8137f2c411b9b1b9f (patch)
tree40f0db81ff5be70cf999708b8094b1cd896cd66f /libdevcore/CommonIO.cpp
parent21bc6fd3051e2a751767ebd7ac3acaa9ed8ba112 (diff)
parent7fb4a64136af18f2b61aef71ecc33ccbbc790ec6 (diff)
downloaddexon-solidity-2d39a42d37cd03e62d0295e8137f2c411b9b1b9f.tar
dexon-solidity-2d39a42d37cd03e62d0295e8137f2c411b9b1b9f.tar.gz
dexon-solidity-2d39a42d37cd03e62d0295e8137f2c411b9b1b9f.tar.bz2
dexon-solidity-2d39a42d37cd03e62d0295e8137f2c411b9b1b9f.tar.lz
dexon-solidity-2d39a42d37cd03e62d0295e8137f2c411b9b1b9f.tar.xz
dexon-solidity-2d39a42d37cd03e62d0295e8137f2c411b9b1b9f.tar.zst
dexon-solidity-2d39a42d37cd03e62d0295e8137f2c411b9b1b9f.zip
Merge pull request #2843 from ethereum/anonymous-cleanup
Move all file specific globals to anonymous namespace
Diffstat (limited to 'libdevcore/CommonIO.cpp')
-rw-r--r--libdevcore/CommonIO.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/libdevcore/CommonIO.cpp b/libdevcore/CommonIO.cpp
index 52829455..5d47937b 100644
--- a/libdevcore/CommonIO.cpp
+++ b/libdevcore/CommonIO.cpp
@@ -35,6 +35,9 @@
using namespace std;
using namespace dev;
+namespace
+{
+
template <typename _T>
inline _T contentsGeneric(std::string const& _file)
{
@@ -56,6 +59,8 @@ inline _T contentsGeneric(std::string const& _file)
return ret;
}
+}
+
string dev::contentsString(string const& _file)
{
return contentsGeneric<string>(_file);