Commit 194368d5 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix clazy warning

parent 76dee3ce
......@@ -29,7 +29,7 @@ const qreal DEFAULT_VELOCITY = 0.2;
const qreal Bomb::BOMB_RELATIVE_SIZE_H = 0.7;
const qreal Bomb::BOMB_RELATIVE_SIZE_W = 0.2;
Bomb::Bomb(KGameRenderer * renderer, BomberBoard * board, qreal xPos, qreal yPos, const QSize & tileSize)
Bomb::Bomb(KGameRenderer * renderer, BomberBoard * board, qreal xPos, qreal yPos, QSize tileSize)
: Explodable(QStringLiteral("bomb"), QStringLiteral("bomb_explode"), BOMB_RELATIVE_SIZE_W,
BOMB_RELATIVE_SIZE_H, renderer, board)
{
......
......@@ -34,7 +34,7 @@ public:
static const qreal BOMB_RELATIVE_SIZE_H;
Bomb(KGameRenderer * renderer, BomberBoard * board, qreal xPos, qreal yPos,
const QSize & tileSize);
QSize tileSize);
~Bomb();
/**
......
......@@ -211,7 +211,7 @@ void Bomber::gameStateChanged(BomberGameWidget::State state)
break;
case BomberGameWidget::State::GameOver:
m_statusBar->showMessage(i18nc("Game over messaged displayed in the status bar", "Game over. Press '%1' for a new game",
m_newAction->shortcuts().first().toString(QKeySequence::NativeText)));
m_newAction->shortcuts().constFirst().toString(QKeySequence::NativeText)));
highscore();
break;
default:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment