From 7fb4a64136af18f2b61aef71ecc33ccbbc790ec6 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Tue, 29 Aug 2017 01:01:47 +0100 Subject: Move all file specific globals to anonymous namespace --- libdevcore/CommonIO.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libdevcore/CommonIO.cpp') 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 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(_file); -- cgit v1.2.3