From db33d7668e1bc0308fa06346e25bd01cfa3f420b Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 10 Dec 2016 21:27:38 -0500 Subject: game_list: Make the AddEntry argument a const reference appendRow takes a QList by const reference, so it doesn't need to be modifiable. --- src/citra_qt/game_list.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/citra_qt/game_list.cpp') 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 entry_items) { +void GameList::AddEntry(const QList& entry_items) { item_model->invisibleRootItem()->appendRow(entry_items); } -- cgit v1.2.3