aboutsummaryrefslogtreecommitdiff
path: root/src/netbase.cpp
diff options
context:
space:
mode:
authorPhilip Kaufmann <[email protected]>2015-05-31 15:48:23 +0200
committerPhilip Kaufmann <[email protected]>2015-05-31 15:48:23 +0200
commitd6922aad2c054667efede271c4198247edd6f6ad (patch)
tree591410fe0d104781d9b2c7925c919356781a258e /src/netbase.cpp
parent[net, trivial] explicitly use std::string for FindNode (diff)
downloaddiscoin-d6922aad2c054667efede271c4198247edd6f6ad.tar.xz
discoin-d6922aad2c054667efede271c4198247edd6f6ad.zip
[net, trivial] remove using namespace std pollution in netbase.cpp
Diffstat (limited to 'src/netbase.cpp')
-rw-r--r--src/netbase.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/netbase.cpp b/src/netbase.cpp
index 41cc18d3c..e3cb4e706 100644
--- a/src/netbase.cpp
+++ b/src/netbase.cpp
@@ -35,8 +35,6 @@
#define MSG_NOSIGNAL 0
#endif
-using namespace std;
-
// Settings
static proxyType proxyInfo[NET_MAX];
static proxyType nameProxy;
@@ -597,13 +595,13 @@ bool ConnectSocket(const CService &addrDest, SOCKET& hSocketRet, int nTimeout, b
bool ConnectSocketByName(CService &addr, SOCKET& hSocketRet, const char *pszDest, int portDefault, int nTimeout, bool *outProxyConnectionFailed)
{
- string strDest;
+ std::string strDest;
int port = portDefault;
if (outProxyConnectionFailed)
*outProxyConnectionFailed = false;
- SplitHostPort(string(pszDest), port, strDest);
+ SplitHostPort(std::string(pszDest), port, strDest);
proxyType nameProxy;
GetNameProxy(nameProxy);