From f9030497b6196ce2fadb6b6ada5d784be227d9a6 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 1 May 2014 15:14:16 +0300 Subject: Add missing const. --- src/net/ea/network.cpp | 2 +- src/net/ea/network.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/net/ea') diff --git a/src/net/ea/network.cpp b/src/net/ea/network.cpp index 128ca2996..61a9499d0 100644 --- a/src/net/ea/network.cpp +++ b/src/net/ea/network.cpp @@ -86,7 +86,7 @@ Network::~Network() TcpNet::quit(); } -bool Network::connect(ServerInfo server) +bool Network::connect(const ServerInfo &server) { if (mState != IDLE && mState != NET_ERROR) { diff --git a/src/net/ea/network.h b/src/net/ea/network.h index 08f9d7c71..57102d7e3 100644 --- a/src/net/ea/network.h +++ b/src/net/ea/network.h @@ -42,7 +42,7 @@ class Network virtual ~Network(); - bool connect(ServerInfo server); + bool connect(const ServerInfo &server); void disconnect(); -- cgit v1.2.3-70-g09d2