GameListModel: make UpdateGame take a const ref
This commit is contained in:
parent
f724a06108
commit
6bfb280cec
|
@ -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();
|
||||
|
||||
|
|
|
@ -45,7 +45,7 @@ public:
|
|||
NUM_COLS
|
||||
};
|
||||
|
||||
void UpdateGame(QSharedPointer<GameFile> game);
|
||||
void UpdateGame(const QSharedPointer<GameFile>& game);
|
||||
void RemoveGame(const QString& path);
|
||||
|
||||
signals:
|
||||
|
|
Loading…
Reference in New Issue