summaryrefslogtreecommitdiff
path: root/src/yuzu/game_list.h
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2020-09-23 11:20:10 -0400
committerLioncash <mathew1800@gmail.com>2020-09-23 11:20:12 -0400
commitd264b7375cd2542ab92137f705af806a8de842fd (patch)
tree7628640ac812263379deba99d85f6ba23e230828 /src/yuzu/game_list.h
parent2b863c9aa34e388f6c64665a2e7d8c808d598c26 (diff)
game_list: Eliminate redundant argument copies
Several functions can be taken by const reference to avoid copies
Diffstat (limited to 'src/yuzu/game_list.h')
-rw-r--r--src/yuzu/game_list.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/yuzu/game_list.h b/src/yuzu/game_list.h
index 78e2ba169..63aae2111 100644
--- a/src/yuzu/game_list.h
+++ b/src/yuzu/game_list.h
@@ -82,7 +82,7 @@ public:
static const QStringList supported_file_extensions;
signals:
- void GameChosen(QString game_path);
+ void GameChosen(const QString& game_path);
void ShouldCancelWorker();
void OpenFolderRequested(u64 program_id, GameListOpenTarget target,
const std::string& game_path);
@@ -108,12 +108,12 @@ private:
void AddDirEntry(GameListDir* entry_items);
void AddEntry(const QList<QStandardItem*>& entry_items, GameListDir* parent);
void ValidateEntry(const QModelIndex& item);
- void DonePopulating(QStringList watch_list);
+ void DonePopulating(const QStringList& watch_list);
void RefreshGameDirectory();
void PopupContextMenu(const QPoint& menu_location);
- void AddGamePopup(QMenu& context_menu, u64 program_id, std::string path);
+ void AddGamePopup(QMenu& context_menu, u64 program_id, const std::string& path);
void AddCustomDirPopup(QMenu& context_menu, QModelIndex selected);
void AddPermDirPopup(QMenu& context_menu, QModelIndex selected);