GameListModel: make UpdateGame take a const ref

This commit is contained in:
Michael M 2017-08-20 13:32:24 -07:00
parent f724a06108
commit 6bfb280cec
2 changed files with 2 additions and 2 deletions

View File

@ -200,7 +200,7 @@ QSharedPointer<GameFile> GameListModel::GetGameFile(int index) const
return m_games[index];
}
void GameListModel::UpdateGame(QSharedPointer<GameFile> game)
void GameListModel::UpdateGame(const QSharedPointer<GameFile>& game)
{
QString path = game->GetFilePath();

View File

@ -45,7 +45,7 @@ public:
NUM_COLS
};
void UpdateGame(QSharedPointer<GameFile> game);
void UpdateGame(const QSharedPointer<GameFile>& game);
void RemoveGame(const QString& path);
signals: