mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-21 03:54:57 +00:00
GameListModel: make UpdateGame take a const ref
This commit is contained in:
parent
f724a06108
commit
6bfb280cec
2 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue