mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 20:28:56 +00:00
Use const reference, explicit, final, and override in DQt2.
This commit is contained in:
parent
ce6de78854
commit
21032d76a8
14 changed files with 38 additions and 33 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue