aboutsummaryrefslogtreecommitdiff
path: root/src/timedata.cpp
diff options
context:
space:
mode:
authorKarl-Johan Alm <karljohan-alm@garage.co.jp>2017-01-27 17:43:41 +0900
committerKarl-Johan Alm <karljohan-alm@garage.co.jp>2017-01-27 18:13:20 +0900
commitb7b48c8bbdf7a90861610b035d8b0a247ef78c45 (patch)
tree76e6ff7c7547127960ff5e603da95b669cbfdb26 /src/timedata.cpp
parent9b4d2673b7757fd242b13c972c73897c92a90ce1 (diff)
downloadbitcoin-b7b48c8bbdf7a90861610b035d8b0a247ef78c45.tar.xz
Refactor: Remove using namespace <xxx> from src/*.cpp.
Diffstat (limited to 'src/timedata.cpp')
-rw-r--r--src/timedata.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/timedata.cpp b/src/timedata.cpp
index c72252e6d8..2ff6437c73 100644
--- a/src/timedata.cpp
+++ b/src/timedata.cpp
@@ -17,8 +17,6 @@
#include <boost/foreach.hpp>
-using namespace std;
-
static CCriticalSection cs_nTimeOffset;
static int64_t nTimeOffset = 0;
@@ -51,7 +49,7 @@ void AddTimeData(const CNetAddr& ip, int64_t nOffsetSample)
{
LOCK(cs_nTimeOffset);
// Ignore duplicates
- static set<CNetAddr> setKnown;
+ static std::set<CNetAddr> setKnown;
if (setKnown.size() == BITCOIN_TIMEDATA_MAX_SAMPLES)
return;
if (!setKnown.insert(ip).second)