mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-23 00:28:08 +02:00
c++03 -> c++11 switch:
- use std versions of function, bind and ref - OVERRIDE -> override - NULL -> nullptr - use std versions of random distributions NOTE: this may be last revision that supports gcc-4.5
This commit is contained in:
@ -60,7 +60,7 @@ void CConnection::init()
|
||||
wmx = new boost::mutex;
|
||||
rmx = new boost::mutex;
|
||||
|
||||
handler = NULL;
|
||||
handler = nullptr;
|
||||
receivedStop = sendStop = false;
|
||||
static int cid = 1;
|
||||
connectionID = cid++;
|
||||
@ -199,7 +199,7 @@ void CConnection::close()
|
||||
{
|
||||
socket->close();
|
||||
delete socket;
|
||||
socket = NULL;
|
||||
socket = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
@ -220,7 +220,7 @@ void CConnection::reportState(CLogger * out)
|
||||
|
||||
CPack * CConnection::retreivePack()
|
||||
{
|
||||
CPack *ret = NULL;
|
||||
CPack *ret = nullptr;
|
||||
boost::unique_lock<boost::mutex> lock(*rmx);
|
||||
logNetwork->traceStream() << "Listening... ";
|
||||
*this >> ret;
|
||||
|
Reference in New Issue
Block a user