Merge pull request #14565 from SuperSamus/cpp-argument-move-reference

Improve usage of std::move and const references parameters
This commit is contained in:
JosJuice
2026-04-18 21:02:30 +02:00
committed by GitHub
140 changed files with 318 additions and 277 deletions

View File

@@ -552,7 +552,7 @@ QString Settings::GetDefaultGame() const
return QString::fromStdString(Config::Get(Config::MAIN_DEFAULT_ISO));
}
void Settings::SetDefaultGame(QString path)
void Settings::SetDefaultGame(const QString& path)
{
if (GetDefaultGame() != path)
{
@@ -851,7 +851,7 @@ void Settings::RefreshWidgetVisibility()
emit GameCountVisibilityChanged(IsGameCountVisible());
}
void Settings::SetDebugFont(QFont font)
void Settings::SetDebugFont(const QFont& font)
{
if (GetDebugFont() != font)
{