diff options
| author | 2016-12-10 21:27:38 -0500 | |
|---|---|---|
| committer | 2016-12-11 11:45:50 +0000 | |
| commit | db33d7668e1bc0308fa06346e25bd01cfa3f420b (patch) | |
| tree | 67fad36b889d131d1e7ea2997df7372cac605dff /src | |
| 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')
| -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() { | |||
| 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 | ||
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 | ||
| 36 | public slots: | 36 | public slots: |
| 37 | void AddEntry(QList<QStandardItem*> entry_items); | 37 | void AddEntry(const QList<QStandardItem*>& entry_items); |
| 38 | 38 | ||
| 39 | private slots: | 39 | private slots: |
| 40 | void ValidateEntry(const QModelIndex& item); | 40 | void ValidateEntry(const QModelIndex& item); |