summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Lioncash2016-12-10 21:27:38 -0500
committerGravatar linkmauve2016-12-11 11:45:50 +0000
commitdb33d7668e1bc0308fa06346e25bd01cfa3f420b (patch)
tree67fad36b889d131d1e7ea2997df7372cac605dff /src
parentgame_list: Replace 0 literals with nullptr (diff)
downloadyuzu-db33d7668e1bc0308fa06346e25bd01cfa3f420b.tar.gz
yuzu-db33d7668e1bc0308fa06346e25bd01cfa3f420b.tar.xz
yuzu-db33d7668e1bc0308fa06346e25bd01cfa3f420b.zip
game_list: Make the AddEntry argument a const reference
appendRow takes a QList by const reference, so it doesn't need to be modifiable.
Diffstat (limited to 'src')
-rw-r--r--src/citra_qt/game_list.cpp2
-rw-r--r--src/citra_qt/game_list.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/citra_qt/game_list.cpp b/src/citra_qt/game_list.cpp
index ad6c3e334..e536628dd 100644
--- a/src/citra_qt/game_list.cpp
+++ b/src/citra_qt/game_list.cpp
@@ -49,7 +49,7 @@ GameList::~GameList() {
49 emit ShouldCancelWorker(); 49 emit ShouldCancelWorker();
50} 50}
51 51
52void GameList::AddEntry(QList<QStandardItem*> entry_items) { 52void GameList::AddEntry(const QList<QStandardItem*>& entry_items) {
53 item_model->invisibleRootItem()->appendRow(entry_items); 53 item_model->invisibleRootItem()->appendRow(entry_items);
54} 54}
55 55
diff --git a/src/citra_qt/game_list.h b/src/citra_qt/game_list.h
index a22e9bc60..8be951395 100644
--- a/src/citra_qt/game_list.h
+++ b/src/citra_qt/game_list.h
@@ -34,7 +34,7 @@ public:
34 void LoadInterfaceLayout(); 34 void LoadInterfaceLayout();
35 35
36public slots: 36public slots:
37 void AddEntry(QList<QStandardItem*> entry_items); 37 void AddEntry(const QList<QStandardItem*>& entry_items);
38 38
39private slots: 39private slots:
40 void ValidateEntry(const QModelIndex& item); 40 void ValidateEntry(const QModelIndex& item);