diff options
| author | 2016-12-10 21:27:38 -0500 | |
|---|---|---|
| committer | 2016-12-11 11:45:50 +0000 | |
| commit | db33d7668e1bc0308fa06346e25bd01cfa3f420b (patch) | |
| tree | 67fad36b889d131d1e7ea2997df7372cac605dff /src/citra_qt/game_list.cpp | |
| parent | game_list: Replace 0 literals with nullptr (diff) | |
| download | yuzu-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/citra_qt/game_list.cpp')
| -rw-r--r-- | src/citra_qt/game_list.cpp | 2 |
1 files changed, 1 insertions, 1 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 | ||
| 52 | void GameList::AddEntry(QList<QStandardItem*> entry_items) { | 52 | void 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 | ||