diff options
author | TheKodeToad <TheKodeToad@proton.me> | 2022-11-02 09:13:44 +0000 |
---|---|---|
committer | TheKodeToad <TheKodeToad@proton.me> | 2022-11-02 09:13:44 +0000 |
commit | 6c45a990ef6b50e909368c3dfd41566ec5ca6986 (patch) | |
tree | 2f992b8b75f04c25ec63a9ef9a870119c57c6d38 /launcher/ui/pages | |
parent | 8dfa3393dc59a386123c84dd30287bf9f1d17faf (diff) | |
download | PrismLauncher-6c45a990ef6b50e909368c3dfd41566ec5ca6986.tar.gz PrismLauncher-6c45a990ef6b50e909368c3dfd41566ec5ca6986.tar.bz2 PrismLauncher-6c45a990ef6b50e909368c3dfd41566ec5ca6986.zip |
A good use of auto
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
Diffstat (limited to 'launcher/ui/pages')
-rw-r--r-- | launcher/ui/pages/modplatform/ModPage.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/launcher/ui/pages/modplatform/ModPage.cpp b/launcher/ui/pages/modplatform/ModPage.cpp index af16eaef..f245bfc2 100644 --- a/launcher/ui/pages/modplatform/ModPage.cpp +++ b/launcher/ui/pages/modplatform/ModPage.cpp @@ -291,7 +291,7 @@ void ModPage::openUrl(const QUrl& url) connect(model->activeJob(), &Task::finished, [url, slug, model, view] { for (int row = 0; row < model->rowCount({}); row++) { QModelIndex index = model->index(row); - ModPlatform::IndexedPack pack = model->data(index, Qt::UserRole).value<ModPlatform::IndexedPack>(); + auto pack = model->data(index, Qt::UserRole).value<ModPlatform::IndexedPack>(); if (pack.slug == slug) { view->setCurrentIndex(index); return; |