diff options
| author | 2018-09-17 05:30:09 -0400 | |
|---|---|---|
| committer | 2018-09-17 05:30:11 -0400 | |
| commit | 51b561907962906ce916708feba8226665d33d7f (patch) | |
| tree | d951733a8613378448b65cc4cb1275b5aeeb6eaf /src | |
| parent | Merge pull request #1308 from valentinvanelslande/ipc (diff) | |
| download | yuzu-51b561907962906ce916708feba8226665d33d7f.tar.gz yuzu-51b561907962906ce916708feba8226665d33d7f.tar.xz yuzu-51b561907962906ce916708feba8226665d33d7f.zip | |
game_list_p: Take map iterator contents by const reference
We don't need to copy the whole struct in this instance, we can just
utilize a reference instead.
Diffstat (limited to 'src')
| -rw-r--r-- | src/yuzu/game_list_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/yuzu/game_list_p.h b/src/yuzu/game_list_p.h index f22e422e5..094437090 100644 --- a/src/yuzu/game_list_p.h +++ b/src/yuzu/game_list_p.h | |||
| @@ -128,7 +128,7 @@ public: | |||
| 128 | LOG_WARNING(Frontend, "Invalid compatibility number {}", compatiblity.toStdString()); | 128 | LOG_WARNING(Frontend, "Invalid compatibility number {}", compatiblity.toStdString()); |
| 129 | return; | 129 | return; |
| 130 | } | 130 | } |
| 131 | CompatStatus status = iterator->second; | 131 | const CompatStatus& status = iterator->second; |
| 132 | setData(compatiblity, CompatNumberRole); | 132 | setData(compatiblity, CompatNumberRole); |
| 133 | setText(QObject::tr(status.text)); | 133 | setText(QObject::tr(status.text)); |
| 134 | setToolTip(QObject::tr(status.tooltip)); | 134 | setToolTip(QObject::tr(status.tooltip)); |