diff options
author | Lioncash <mathew1800@gmail.com> | 2016-12-10 21:27:38 -0500 |
---|---|---|
committer | linkmauve <linkmauve@linkmauve.fr> | 2016-12-11 11:45:50 +0000 |
commit | db33d7668e1bc0308fa06346e25bd01cfa3f420b (patch) | |
tree | 67fad36b889d131d1e7ea2997df7372cac605dff /src | |
parent | aa05d368233892ab0256d6e9d0af959e15315e41 (diff) |
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.cpp | 2 | ||||
-rw-r--r-- | src/citra_qt/game_list.h | 2 |
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() { emit ShouldCancelWorker(); } -void GameList::AddEntry(QList<QStandardItem*> entry_items) { +void GameList::AddEntry(const QList<QStandardItem*>& entry_items) { item_model->invisibleRootItem()->appendRow(entry_items); } 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: void LoadInterfaceLayout(); public slots: - void AddEntry(QList<QStandardItem*> entry_items); + void AddEntry(const QList<QStandardItem*>& entry_items); private slots: void ValidateEntry(const QModelIndex& item); |