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

+5
View File
@@ -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);