fixed 2 warning-errors on archlinux(gcc 8.1): implicit fallthrough, ignored qualifiers (#3270)
This commit is contained in:
parent
1276c8dd46
commit
91b3c7343d
3 changed files with 6 additions and 2 deletions
|
@ -317,7 +317,7 @@ void CardItem::mouseMoveEvent(QGraphicsSceneMouseEvent *event)
|
||||||
2 * QApplication::startDragDistance())
|
2 * QApplication::startDragDistance())
|
||||||
return;
|
return;
|
||||||
if (zone->getIsView()) {
|
if (zone->getIsView()) {
|
||||||
const ZoneViewZone *const view = static_cast<const ZoneViewZone *const>(zone);
|
const ZoneViewZone *view = static_cast<const ZoneViewZone *>(zone);
|
||||||
if (view->getRevealZone() && !view->getWriteableRevealZone())
|
if (view->getRevealZone() && !view->getWriteableRevealZone())
|
||||||
return;
|
return;
|
||||||
} else if (!owner->getLocal())
|
} else if (!owner->getLocal())
|
||||||
|
|
|
@ -196,6 +196,8 @@ QVariant GamesModel::headerData(int section, Qt::Orientation /*orientation*/, in
|
||||||
return tr("Age");
|
return tr("Age");
|
||||||
case Qt::TextAlignmentRole:
|
case Qt::TextAlignmentRole:
|
||||||
return Qt::AlignCenter;
|
return Qt::AlignCenter;
|
||||||
|
default:
|
||||||
|
return QVariant();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
case DESCRIPTION:
|
case DESCRIPTION:
|
||||||
|
@ -212,6 +214,8 @@ QVariant GamesModel::headerData(int section, Qt::Orientation /*orientation*/, in
|
||||||
return tr("Players");
|
return tr("Players");
|
||||||
case Qt::TextAlignmentRole:
|
case Qt::TextAlignmentRole:
|
||||||
return Qt::AlignCenter;
|
return Qt::AlignCenter;
|
||||||
|
default:
|
||||||
|
return QVariant();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
case SPECTATORS:
|
case SPECTATORS:
|
||||||
|
|
|
@ -1029,7 +1029,7 @@ void TabGame::eventPlayerPropertiesChanged(const Event_PlayerPropertiesChanged &
|
||||||
playerListWidget->updatePlayerProperties(prop, eventPlayerId);
|
playerListWidget->updatePlayerProperties(prop, eventPlayerId);
|
||||||
|
|
||||||
const GameEventContext::ContextType contextType =
|
const GameEventContext::ContextType contextType =
|
||||||
static_cast<const GameEventContext::ContextType>(getPbExtension(context));
|
static_cast<GameEventContext::ContextType>(getPbExtension(context));
|
||||||
switch (contextType) {
|
switch (contextType) {
|
||||||
case GameEventContext::READY_START: {
|
case GameEventContext::READY_START: {
|
||||||
bool ready = prop.ready_start();
|
bool ready = prop.ready_start();
|
||||||
|
|
Loading…
Reference in a new issue