Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit c1ed1bfd authored by Laurent Montel's avatar Laurent Montel 😁

Consti'fy

parent fc5b18af
......@@ -23,7 +23,7 @@
#include "kreversicomputerplayer.h"
KReversiComputerPlayer::KReversiComputerPlayer(ChipColor color, QString name):
KReversiComputerPlayer::KReversiComputerPlayer(ChipColor color, const QString &name):
KReversiPlayer(color, name, false, false), m_lowestSkill(100) // setting it big enough
{
m_engine = new Engine(1);
......
......@@ -38,7 +38,7 @@ public:
/**
* Constructs AI player of specified @p color and @p name
*/
explicit KReversiComputerPlayer(ChipColor color, QString name);
explicit KReversiComputerPlayer(ChipColor color, const QString &name);
~KReversiComputerPlayer();
/**
......
......@@ -23,7 +23,7 @@
#include "kreversiplayer.h"
KReversiPlayer::KReversiPlayer(ChipColor color, QString name,
KReversiPlayer::KReversiPlayer(ChipColor color, const QString &name,
bool hintAllowed, bool undoAllowed):
m_state(UNKNOWN), m_color(color), m_name(name),
m_hintAllowed(hintAllowed), m_hintCount(0), m_undoAllowed(undoAllowed),
......
......@@ -52,7 +52,7 @@ public:
* @param hintAllowed determines whether hints are allowed for player
* @param undoAllowed determines whether undos are allowed for player
*/
explicit KReversiPlayer(ChipColor color, QString name,
explicit KReversiPlayer(ChipColor color, const QString &name,
bool hintAllowed, bool undoAllowed);
/**
......
......@@ -396,7 +396,7 @@ void KReversiMainWindow::clearPlayers()
}
}
void KReversiMainWindow::receivedGameStartInformation(GameStartInformation info)
void KReversiMainWindow::receivedGameStartInformation(const GameStartInformation &info)
{
clearPlayers();
m_nowPlayingInfo = info;
......
......@@ -72,7 +72,7 @@ private:
void updateHistory();
void startDemo();
void clearPlayers();
void receivedGameStartInformation(GameStartInformation info);
void receivedGameStartInformation(const GameStartInformation &info);
KReversiPlayer *m_player[2];
StartGameDialog *m_startDialog;
......
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