Commit 4e0eddf2 authored by Laurent Montel's avatar Laurent Montel 😁

Consti'fy

parent 626724a3
......@@ -44,12 +44,12 @@ public slots:
void setRotateDuration();
signals:
void newCell(QVariant cable, QVariant type);
void setSprite(QVariant pos, QVariant cable, QVariant type);
void setSize(QVariant width, QVariant height);
void newCell(const QVariant &cable, const QVariant &type);
void setSprite(const QVariant &pos, const QVariant &cable, const QVariant &type);
void setSize(const QVariant &width, const QVariant &height);
void rotationStarted();
void lock(QVariant);
void gameOver(QVariant msg);
void lock(const QVariant&);
void gameOver(const QVariant &msg);
private slots:
void solve();
......
......@@ -227,7 +227,7 @@ void MainWindow::startNewGame()
updateStatusBar();
}
void MainWindow::gameOver(QVariant msg)
void MainWindow::gameOver(const QVariant &msg)
{
m_gameClock->pause();
Kg::difficulty()->setGameRunning(false);
......
......@@ -45,10 +45,10 @@ private:
};
QSize boardSize();
signals:
void pause(QVariant paused);
void pause(const QVariant &paused);
private slots:
void startNewGame();
void gameOver(QVariant msg);
void gameOver(const QVariant &msg);
void rotationStarted();
void pauseGame(bool paused);
void updateStatusBar();
......
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