Move all file specific globals to anonymous namespace

This commit is contained in:
Alex Beregszaszi
2017-08-29 11:09:18 +01:00
parent b364bd048f
commit 7fb4a64136
8 changed files with 36 additions and 5 deletions
+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);