Fixed some compiler warnings.

This commit is contained in:
lotodore
2007-11-07 14:11:57 +00:00
parent abdd751944
commit 5f5a3d90f5
5 changed files with 8 additions and 7 deletions
@@ -180,7 +180,7 @@ void gameLobbyDialogImpl::refresh(int actionID) {
}
}
void gameLobbyDialogImpl::removedFromGame(int reason)
void gameLobbyDialogImpl::removedFromGame(int /*reason*/)
{
inGame = false;
isAdmin = false;
@@ -151,7 +151,7 @@ void joinNetworkGameDialogImpl::fillServerProfileList() {
treeWidget->resizeColumnToContents ( 3 );
}
void joinNetworkGameDialogImpl::itemFillForm (QTreeWidgetItem* item, int column) {
void joinNetworkGameDialogImpl::itemFillForm (QTreeWidgetItem* item, int /*column*/) {
bool toIntTrue;
@@ -166,7 +166,7 @@ void joinNetworkGameDialogImpl::itemFillForm (QTreeWidgetItem* item, int column)
TiXmlElement* profile = docHandle.FirstChild( "PokerTH" ).FirstChild( "ServerProfiles" ).FirstChild( item->data(0,0).toString().toStdString() ).ToElement();
if ( profile ) {
lineEdit_profileName->setText(QString::fromUtf8(profile->Attribute("Name")));
lineEdit_profileName->setText(QString::fromUtf8(profile->Attribute("Name")));
lineEdit_ipAddress->setText(QString::fromUtf8(profile->Attribute("Address")));
lineEdit_password->setText(QString::fromUtf8(profile->Attribute("Password")));
spinBox_port->setValue(QString::fromUtf8(profile->Attribute("Port")).toInt(&toIntTrue, 10));
@@ -54,7 +54,7 @@ void StartSplash::nextAnimationFrame() {
update();
}
void StartSplash::paintEvent(QPaintEvent * event) {
void StartSplash::paintEvent(QPaintEvent * /*event*/) {
QPainter painter(this);
@@ -196,9 +196,9 @@ void selectAvatarDialogImpl::refreshAvatarView() {
}
}
void selectAvatarDialogImpl::toggleGroupBox1(bool toogleState) { if(groupBox->isChecked()) groupBox_2->setChecked(FALSE); }
void selectAvatarDialogImpl::toggleGroupBox1(bool /*toggleState*/) { if(groupBox->isChecked()) groupBox_2->setChecked(FALSE); }
void selectAvatarDialogImpl::toggleGroupBox2(bool toogleState) { if(groupBox_2->isChecked()) groupBox->setChecked(FALSE); }
void selectAvatarDialogImpl::toggleGroupBox2(bool /*toggleState*/) { if(groupBox_2->isChecked()) groupBox->setChecked(FALSE); }
QString selectAvatarDialogImpl::getAvatarLink() {
@@ -72,8 +72,9 @@ void startNetworkGameDialogImpl::joinedNetworkGame(unsigned playerId, QString pl
addConnectedPlayer(playerId, playerName, rights);
}
void startNetworkGameDialogImpl::addConnectedPlayer(unsigned playerId, QString playerName, int rights) {
void startNetworkGameDialogImpl::addConnectedPlayer(unsigned playerId, QString playerName, int /*rights*/) {
// TODO mark admin
QTreeWidgetItem *item = new QTreeWidgetItem(treeWidget, 0);
item->setData(0, Qt::UserRole, playerId);
item->setData(0, Qt::DisplayRole, playerName);