CppCheck fixes.
This commit is contained in:
@@ -31,7 +31,8 @@ using boost::asio::ip::tcp;
|
||||
|
||||
|
||||
ChatCleanerManager::ChatCleanerManager(ChatCleanerCallback &cb, boost::shared_ptr<boost::asio::io_service> ioService)
|
||||
: m_callback(cb), m_ioService(ioService), m_connected(false), m_curRequestId(0), m_recvBufUsed(0)
|
||||
: m_callback(cb), m_ioService(ioService), m_connected(false), m_curRequestId(0), m_serverPort(0), m_useIpv6(false),
|
||||
m_recvBufUsed(0)
|
||||
{
|
||||
m_resolver.reset(
|
||||
new boost::asio::ip::tcp::resolver(*m_ioService));
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
#include <game.h>
|
||||
#include <playerinterface.h>
|
||||
|
||||
#include "tinyxml.h"
|
||||
#include <tinyxml.h>
|
||||
#include "zlib.h"
|
||||
#include <boost/bind.hpp>
|
||||
#include <boost/iostreams/filtering_streambuf.hpp>
|
||||
|
||||
@@ -92,7 +92,7 @@ SessionManager::GetSessionById(SessionId id) const
|
||||
}
|
||||
|
||||
SessionWrapper
|
||||
SessionManager::GetSessionByPlayerName(const string playerName) const
|
||||
SessionManager::GetSessionByPlayerName(const string &playerName) const
|
||||
{
|
||||
SessionWrapper tmpSession;
|
||||
boost::recursive_mutex::scoped_lock lock(m_sessionMapMutex);
|
||||
|
||||
Reference in New Issue
Block a user