mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Use const reference, explicit, final, and override in DQt2.
This commit is contained in:
@ -29,7 +29,7 @@ QString Settings::GetLastGame() const
|
||||
return value(QStringLiteral("GameList/LastGame")).toString();
|
||||
}
|
||||
|
||||
void Settings::SetLastGame(QString path)
|
||||
void Settings::SetLastGame(const QString& path)
|
||||
{
|
||||
setValue(QStringLiteral("GameList/LastGame"), path);
|
||||
}
|
||||
@ -39,7 +39,7 @@ QStringList Settings::GetPaths() const
|
||||
return value(QStringLiteral("GameList/Paths")).toStringList();
|
||||
}
|
||||
|
||||
void Settings::SetPaths(QStringList paths)
|
||||
void Settings::SetPaths(const QStringList& paths)
|
||||
{
|
||||
setValue(QStringLiteral("GameList/Paths"), paths);
|
||||
}
|
||||
|
Reference in New Issue
Block a user