Trying to fix more cppcheck messages.

This commit is contained in:
lotodore
2011-02-10 13:54:53 +00:00
parent c1b1ae2fe0
commit 246c99e62e
9 changed files with 17 additions and 9 deletions
+3 -1
View File
@@ -35,7 +35,9 @@ Game::Game(GuiInterface* gui, boost::shared_ptr<EngineFactory> factory,
const StartData &startData, int gameId, Log* log)
: myFactory(factory), myGui(gui), myLog(log), startQuantityPlayers(startData.numberOfPlayers),
startCash(gameData.startMoney), startSmallBlind(gameData.firstSmallBlind),
myGameID(gameId), currentSmallBlind(gameData.firstSmallBlind), currentHandID(0), dealerPosition(0), lastHandBlindsRaised(1), lastTimeBlindsRaised(0), myGameData(gameData)
myGameID(gameId), currentSmallBlind(gameData.firstSmallBlind), currentHandID(0), dealerPosition(0),
lastHandBlindsRaised(1), lastTimeBlindsRaised(0), myGameData(gameData),
blindsTimer(boost::posix_time::time_duration(0, 0, 0), boost::timers::portable::second_timer::manual_start)
{
blindsList = myGameData.manualBlindsList;
+2 -1
View File
@@ -109,7 +109,8 @@ struct VoteKickData
{
VoteKickData()
: petitionId(0), kickPlayerId(0), numVotesToKick(0),
numVotesInFavourOfKicking(0), numVotesAgainstKicking(0), timeLimitSec(0) {}
numVotesInFavourOfKicking(0), numVotesAgainstKicking(0), timeLimitSec(0),
voteTimer(boost::posix_time::time_duration(0, 0, 0), boost::timers::portable::microsec_timer::auto_start) {}
unsigned petitionId;
unsigned kickPlayerId;
int numVotesToKick;
+1 -1
View File
@@ -16,7 +16,7 @@
using namespace std;
MyStatusLabel::MyStatusLabel(QGroupBox* parent)
: QLabel(parent) {
: QLabel(parent), myW(NULL), mousePress(false) {
mousePress = FALSE;
+1 -1
View File
@@ -24,8 +24,8 @@
#include <boost/asio.hpp>
#include <boost/enable_shared_from_this.hpp>
#include <string>
#include <net/internalchatcleanerpacket.h>
#include <net/chatcleanercallback.h>
#include <net/internalchatcleanerpacket.h>
class EncodedPacket;
-1
View File
@@ -18,7 +18,6 @@
***************************************************************************/
#include <net/chatcleanermanager.h>
#include <net/internalchatcleanerpacket.h>
#include <net/encodedpacket.h>
#include <boost/bind.hpp>
#include <core/loghelper.h>
+1
View File
@@ -34,6 +34,7 @@
using namespace std;
ServerAdminBot::ServerAdminBot()
: m_ircRestartTimer(boost::posix_time::time_duration(0, 0, 0), boost::timers::portable::microsec_timer::auto_start)
{
}
+1
View File
@@ -34,6 +34,7 @@
using namespace std;
ServerLobbyBot::ServerLobbyBot()
: m_ircRestartTimer(boost::posix_time::time_duration(0, 0, 0), boost::timers::portable::microsec_timer::auto_start)
{
}
+5 -3
View File
@@ -23,9 +23,11 @@
using namespace std;
SessionData::SessionData(boost::shared_ptr<boost::asio::ip::tcp::socket> sock, SessionId id, SessionDataCallback &cb)
: m_socket(sock), m_id(id), m_gameId(0), m_state(SessionData::Init), m_readyFlag(false),
m_wantsLobbyMsg(true), m_activityTimeoutNoticeSent(false), m_callback(cb),
m_authSession(NULL), m_curAuthStep(0)
: m_socket(sock), m_id(id), m_gameId(0), m_state(SessionData::Init), m_readyFlag(false), m_wantsLobbyMsg(true),
m_activityTimer(boost::posix_time::time_duration(0, 0, 0), boost::timers::portable::microsec_timer::auto_start),
m_activityTimeoutNoticeSent(false),
m_autoDisconnectTimer(boost::posix_time::time_duration(0, 0, 0), boost::timers::portable::microsec_timer::auto_start),
m_callback(cb), m_authSession(NULL), m_curAuthStep(0)
{
}
+3 -1
View File
@@ -24,7 +24,9 @@
#define CLEANER_PROTOCOL_VERSION 2
#define MAX_CLEANER_PACKET_SIZE 384
typedef struct ChatCleanerMessage ChatCleanerMessage_t;
#ifndef ChatCleanerMessage_t
typedef struct ChatCleanerMessage ChatCleanerMessage_t;
#endif
class InternalChatCleanerPacket
{