summaryrefslogtreecommitdiff
path: root/src/SocketCore.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2006-04-19 17:49:03 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2006-04-19 17:49:03 +0000
commitb1d46227d4ed9e86952e4d2d6059ecbde2d248e0 (patch)
treeabba06d5ecd01b9210f70130d3a36c8747c36d8f /src/SocketCore.cc
parent1457d7f660ee83fca44730b38a3f2af800684f2a (diff)
make string type argument const string& where possible
Diffstat (limited to 'src/SocketCore.cc')
-rw-r--r--src/SocketCore.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SocketCore.cc b/src/SocketCore.cc
index 0f265fc9..3adcc94c 100644
--- a/src/SocketCore.cc
+++ b/src/SocketCore.cc
@@ -130,7 +130,7 @@ void SocketCore::getPeerInfo(pair<string, int>& peerinfo) const {
peerinfo.second = ntohs(peerin.sin_port);
}
-void SocketCore::establishConnection(string host, int port) {
+void SocketCore::establishConnection(const string& host, int port) {
closeConnection();
sockfd = socket(AF_INET, SOCK_STREAM, 0);
if(sockfd == -1) {