Trying to fix more cppcheck messages.
This commit is contained in:
+3
-1
@@ -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
@@ -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;
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
using namespace std;
|
||||
|
||||
MyStatusLabel::MyStatusLabel(QGroupBox* parent)
|
||||
: QLabel(parent) {
|
||||
: QLabel(parent), myW(NULL), mousePress(false) {
|
||||
|
||||
mousePress = FALSE;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
***************************************************************************/
|
||||
|
||||
#include <net/chatcleanermanager.h>
|
||||
#include <net/internalchatcleanerpacket.h>
|
||||
#include <net/encodedpacket.h>
|
||||
#include <boost/bind.hpp>
|
||||
#include <core/loghelper.h>
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user