CppCheck fixes.

This commit is contained in:
lotodore
2011-02-08 16:00:43 +00:00
parent 48f87f0dd8
commit 2dd18020a7
10 changed files with 11 additions and 10 deletions
+2 -1
View File
@@ -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));
+1 -1
View File
@@ -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>
+1 -1
View File
@@ -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);