Fixed some compiler warnings
This commit is contained in:
1 parent
a4f7211aed
commit
f6962f9c68
4 files changed
+5
-5
No files matched your search
@@ -45,7 +45,7 @@ class MapUpdateRequest
|
||||
}
|
||||
};
|
||||
|
||||
MapUpdater::MapUpdater() : pending_requests(0), _cancelationToken(false) {}
|
||||
MapUpdater::MapUpdater() : _cancelationToken(false), pending_requests(0) {}
|
||||
|
||||
MapUpdater::~MapUpdater()
|
||||
{
|
||||
|
||||
@@ -30,7 +30,7 @@ using boost::asio::ip::tcp;
|
||||
using boost::asio::streambuf;
|
||||
|
||||
WorldSocket::WorldSocket(tcp::socket&& socket)
|
||||
: _socket(std::move(socket)), _authSeed(static_cast<uint32>(rand32())), _worldSession(nullptr), _OverSpeedPings(0)
|
||||
: _socket(std::move(socket)), _authSeed(static_cast<uint32>(rand32())), _OverSpeedPings(0), _worldSession(nullptr)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -27,8 +27,8 @@ class AsyncAcceptor
|
||||
{
|
||||
public:
|
||||
AsyncAcceptor(boost::asio::io_service& ioService, std::string bindIp, int port) :
|
||||
_socket(ioService),
|
||||
_acceptor(ioService, tcp::endpoint(boost::asio::ip::address::from_string(bindIp), port))
|
||||
_acceptor(ioService, tcp::endpoint(boost::asio::ip::address::from_string(bindIp), port)),
|
||||
_socket(ioService)
|
||||
{
|
||||
AsyncAccept();
|
||||
};
|
||||
|
||||
@@ -40,7 +40,7 @@ void RASession::Start()
|
||||
{
|
||||
// Handle subnegotiation
|
||||
boost::array<char, 1024> buf;
|
||||
std::size_t length = _socket.read_some(boost::asio::buffer(buf));
|
||||
_socket.read_some(boost::asio::buffer(buf));
|
||||
|
||||
// Send the end-of-negotiation packet
|
||||
uint8 const reply[2] = { 0xFF, 0xF0 };
|
||||
|
||||
Reference in new issue
Block a user