mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-10 22:49:00 +01:00
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…
x
Reference in New Issue
Block a user